{"_id":"@autorest/azure-functions-typescript","_rev":"5-a6205e0364242fc48de16ab1565b19fd","name":"@autorest/azure-functions-typescript","dist-tags":{"latest":"0.0.1-preview"},"versions":{"0.0.1-preview":{"name":"@autorest/azure-functions-typescript","version":"0.0.1-preview","scripts":{"build":"tsc -p .","build:test:browser":"tsc -p tsconfig.browser-test.json && webpack --config webpack.config.test.js","check:tree":"ts-node ./test/utils/check-clean-tree.ts","clean":"rimraf test-browser","start":"node ./dist/src/main.js","test":"npm-run-all unit-test integration-test","unit-test":"mocha -r ts-node/register './test/unit/**/*spec.ts'","integration-test":"start-server-and-test start-test-server:v1 http://localhost:3000 generate-and-test","integration-test:new":"npm-run-all start-test-server generate-and-test integration-test:alone stop-test-server","integration-test:browser":"npm run build:test:browser && karma start karma.conf.js","generate-and-test":"npm-run-all -s build generate-swaggers integration-test:alone integration-test:browser","integration-test:alone":"mocha -r ts-node/register './test/integration/**/*spec.ts'","start-test-server":"ts-node test/utils/start-server.ts","start-test-server:v1":"start-autorest-express node","stop-test-server":"stop-autorest-testserver","debug":"node --inspect-brk ./dist/src/main.js","generate-swaggers":"ts-node ./test/utils/test-swagger-gen.ts","clone:specs":"git clone https://github.com/Azure/azure-rest-api-specs.git ./.tmp/specs","smoke-test":"ts-node ./test/utils/smoke-test.ts"},"dependencies":{"@azure-tools/autorest-extension-base":"^3.1.246","@azure-tools/codegen":"^2.4.267","@azure-tools/codemodel":"^4.13.339","@azure/core-http":"^1.1.4","@azure/core-lro":"^1.0.1","@azure/core-paging":"^1.0.0","@azure/logger":"^1.0.0","@types/lodash":"^4.14.149","autorest":"^3.0.6187","build":"^0.1.4","lodash":"^4.17.19","prettier":"^1.19.1","source-map-support":"^0.5.16","ts-morph":"^5.0.0"},"devDependencies":{"@autorest/test-server":"^3.0.27","@azure/abort-controller":"^1.0.1","@microsoft.azure/autorest.testserver":"^2.10.51","@types/chai":"^4.2.8","@types/express":"^4.17.2","@types/js-yaml":"3.12.1","@types/mocha":"^5.2.7","@types/node":"^12.7.12","@types/prettier":"^1.18.4","@types/xmlbuilder":"0.0.34","@types/yargs":"^15.0.4","@typescript-eslint/eslint-plugin":"~2.0.0","@typescript-eslint/parser":"~2.0.0","acorn":"^7.3.1","chai":"^4.2.0","chalk":"^4.0.0","eslint":"~6.2.2","express":"^4.17.1","karma":"^5.0.9","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-source-map-support":"^1.4.0","karma-typescript":"^5.0.3","karma-typescript-es6-transform":"^5.0.3","mocha":"^8.1.3","mocha-typescript":"^1.1.17","moment":"^2.24.0","node-cmd":"^3.0.0","npm-run-all":"^4.1.5","puppeteer":"^3.3.0","rimraf":"^3.0.2","source-map-loader":"^1.0.0","start-server-and-test":"^1.11.2","ts-node":"^8.5.2","typescript":"^3.7.5","wait-port":"^0.2.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","yargs":"^15.4.1"},"_resolved":"","_integrity":"","_from":"file:D:/a/r1/a/artifacts/packages/autorest-azure-functions-typescript-0.0.1-preview.tgz","description":"A simple AutoRest extension that can be used as a template for or documentation about writing such extensions.\r Since this a TypeScript project, we distinguish between language agnostic and language dependent requirements.","_id":"@autorest/azure-functions-typescript@0.0.1-preview","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SnOqjwo3LNCWmp08RLKFJogbNQ2/OqqeVhdCkylMxhEsArL5YFaXGED83eX1nUEcdRtHq6Ckt0ItBxlmGtypRw==","shasum":"3e5debfaa37a1c2ab8d6bd324f7fff06ff5f12d5","tarball":"https://registry.npmjs.org/@autorest/azure-functions-typescript/-/azure-functions-typescript-0.0.1-preview.tgz","fileCount":313,"unpackedSize":686337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTenCCRA9TVsSAnZWagAASx8P/1hkfYi7PAVCJhQ2+m+D\ngMkxrkUPAqKaf7cdaXwoV84KgAI0hM5R5qv2Vy2PUaTgu9Xmh8yVYTqXPoqG\nNnzJYNEXwijfvX4XHrEzFkG6+UiWjoYDSMw/e7RkKA79b+HM9aDDTAc9qAPy\neK/SVMQHRuhf2VQHGlRaiQDLo6BwDPQoe2L9C00JiNP7DOxb01+z6Jjo78ND\nVxR3Oamsxt0BKc6k/9l7TouPU+ANj3RZ+HOqYCzG8hbVlsbbyFWwuXTcDK6d\nAE9fZFAT+56GXrwk42c7bdK/RG4F7r28mdwvqDCqiozSgaLSflWNn7sjX2e3\nb/SPgEAHPvndHuCFJBcI5Baqv6we1To/BHoRdZBB/fd615BbbXjScKp5Uv/Q\nweCdI2njDmLdz9wYiHE5PicvFzDoZcBByIFG7TRK5Aw95u7F5Bo6za5L54fG\nMOpxs0kH0l2kSvXHflggCHTyiqduCHDj0DvOfV5q7FWoI2QoLxJnhgBda83P\n8Kc0Y7mPPL5SH/vj0gRqWe7fIoKvke8eBJrkx6Xm7a/HeXNFXE8qCnfWzZol\n4tgX7Hbwx86SH1doQzJvo64PGlvKO3DwQ6g6rCVMQfFqNBxjs1h4fkkclxgo\nNWz0qeNb8DwSCNTZ3Ab5TQhtmtBPGl19P6rwUjqN+3oCzAQtVMMmo5juLLJz\nJlC+\r\n=GG07\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcq+dkFWpOlnFpjSEV/cGFKWudiU0RGPQVkeY4kQBQ7QIhAKSpphEHCsk1sGIRJo4IbcdLM5w0/oVonx/S5COu7ln5"}]},"maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/azure-functions-typescript_0.0.1-preview_1598941634210_0.6051744115071391"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-01T06:27:14.000Z","0.0.1-preview":"2020-09-01T06:27:14.394Z","modified":"2024-04-04T17:19:33.848Z"},"maintainers":[{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"xidi@microsoft.com","name":"azure-powershell"},{"email":"azure-sdk-npmjs@microsoft.com","name":"azure-sdk"}],"description":"A simple AutoRest extension that can be used as a template for or documentation about writing such extensions.\r Since this a TypeScript project, we distinguish between language agnostic and language dependent requirements.","readme":"# OpenAPI Code Generator for Azure Functions (TypeScript) \r\n\r\n## Simple AutoRest Extension\r\n\r\nA simple AutoRest extension that can be used as a template for or documentation about writing such extensions.\r\nSince this a TypeScript project, we distinguish between language agnostic and language dependent requirements.\r\n\r\n## Usage\r\n\r\nIf you want to use the plugin \r\n```bash\r\nautorest --use:@autorest/azure-functions-typescript\r\n    --input-file:path/to/specs.json \r\n    --output-folder:where/to/generate/typescript-azure-function\r\n```\r\n\r\nIf you clone this repo, and want to use it to generate function apps\r\n```bash\r\nautorest --use:where/this/repo/is/cloned/autorest.azure-functions-typescript\r\n    --input-file:path/to/specs.json \r\n    --output-folder:where/to/generate/typescript-azure-function\r\n```\r\n\r\n## Language Agnostic Requirements\r\n\r\nMore information about these can be found [here](https://github.com/Azure/autorest/tree/master/docs/developer), summary:\r\n\r\n1. Specify the start command of the extension as the `start` script in the `package.json`\r\n2. Implement the AutoRest extension protocol (here: handled by library, see below)\r\n3. Hook up plugins into the AutoRest pipeline DAG, e.g.\r\n\r\n### Autorest plugin configuration\r\n- Please don't edit this section unless you're re-configuring how the azure-functions-python extension plugs in to AutoRest\r\nAutoRest needs the below config to pick this up as a plug-in - see [AutoRest-extension.md](https://github.com/Azure/autorest/blob/master/docs/developer/architecture/AutoRest-extension.md) for more information.\r\n\r\n```yaml\r\nversion: 3.0.6302\r\nuse-extension:\r\n  \"@autorest/modelerfour\": \"4.15.396\"\r\n\r\nmodelerfour:\r\n  # this runs a pre-namer step to clean up names\r\n  prenamer: true\r\n  # this will flatten modelers marked with 'x-ms-client-flatten'\r\n  flatten-models: true\r\n  # this will make the content-type parameter always specified\r\n  always-create-content-type-parameter: true\r\n  # enables parameter grouping via x-ms-parameter-grouping\r\n  group-parameters: true\r\n\r\npipeline:\r\n  typescript: # <- name of plugin\r\n    input: modelerfour/identity\r\n    output-artifact: typescript-files\r\n\r\n  typescript/emitter:\r\n    input: typescript\r\n    scope: typescript-scope/emitter\r\n\r\ntypescript-scope/emitter:\r\n  input-artifact: typescript-files\r\n\r\noutput-artifact: typescript-files\r\n```\r\n\r\n## Language Specific Requirements: TypeScript\r\n\r\nFor TypeScript projects, simply import [autorest-extension-base](https://github.com/olydis/autorest-extension-base) which implements the AutoRest extension protocol and offers a simple API to register plugins.\r\nSee [index.ts](./index.ts).\r\n\r\n## Contributing\r\n\r\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\r\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\r\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\r\n\r\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\r\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\r\nprovided by the bot. You will only need to do this once across all repos using our CLA.\r\n\r\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\r\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\r\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\r\n","readmeFilename":"README.md"}