{"_id":"@alauda/ng-packagr","_rev":"16-5d64b01c91ae0fa88890627611e508a8","name":"@alauda/ng-packagr","dist-tags":{"latest":"9.1.1"},"versions":{"9.1.0":{"name":"@alauda/ng-packagr","version":"9.1.0","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","_id":"@alauda/ng-packagr@9.1.0","maintainers":[{"name":"shuxun.yin","email":"shuxun.yin@gmail.com"},{"name":"alaudafrontend","email":"frontend@alauda.io"},{"name":"maybeeee","email":"lihao19900829@qq.com"},{"name":"frozenwings","email":"pku.liudong@gmail.com"},{"name":"jounqin","email":"admin@1stg.me"},{"name":"edisonqtx","email":"suzhenggangfs@gmail.com"},{"name":"ancientrs","email":"ancientrs@outlook.com"},{"name":"tzfeng","email":"tzfeng@alauda.io"},{"name":"zhangmq","email":"undeadpark@gmail.com"}],"homepage":"https://github.com/ng-packagr/ng-packagr","bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"bin":{"ng-packagr":"cli/main.js"},"dist":{"shasum":"3169da9b8e76381ecc2c254cff9814f095ef7a08","tarball":"https://registry.npmjs.org/@alauda/ng-packagr/-/ng-packagr-9.1.0.tgz","fileCount":181,"integrity":"sha512-jQ/nBC8aFDMIL8Jaq+dbyYS7+GBwX0ZMuAPAH2lBm5lFDv5je9fEm+HrcyP30P9xybcjdKCE/nMImEKiNsqODQ==","signatures":[{"sig":"MEUCIEjaDHnHRuPwj3o3nXagKVt3KYBhL6PZ8IJ+5oa8vBEYAiEAnUQRBrli/1KuF5kJOsJvIp1LvsYWZaTVlEPLiqRmbgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":518135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeevQcCRA9TVsSAnZWagAAQKQP/27Z/oaNRZ9y3tF2zJba\np3B8GOeL78I/j47cVlcRKzW1xXG8rKe5o45TjPJVBwnKR5ESeCV0iyIyxgmS\nuUgVjPfX2UmWWYDP0dlQJsnMwQbcful4H0AHPbl5YDr35zoEpwPGp0S/r3IW\nyNVw1RgIKUFj6LPzQ0zpEgV6WJ91efCtqDTirckOpMYLqOwmNhXLZxwoE4j0\n3q/wmu2g1d9C3MMzBbXG4ROIZ/x2cKibbZ4BmcOUWXdPOm3eBpTlzebsGCDd\nCdLE3X0ELFxH64VBlnuApJELG3mDB3o49LPyCn9zvqLXqnZAZ6PPTllQDeBZ\nWLyQ5D9DYuoNiT7f/JtrdtGc5DaQSdI7tGxDxkExbrtPW9E9oPXju49AVrVn\ncj4U/j255BGvbg5EhoDl+pbV80M5B4ffsQG080s5q7wE6fQ3L1iOgB1R/yqh\nH619zcOi8YRoqhr6pA76kZAwLno9K+qM5yRWMF5fd6GqENrGQzIg4VR/RHX1\nT8QnfrkBJcU06DIv7ujpptm/UbPnx1oRLXjpfNKaIC7So8/v9pjpt68BFTgd\nxGwaKtDVYz0F/IVV/bVZHq/LC6NiYJvrad/1f4SGT8gycr6ochjsbo9ja2tF\nBArtghlu0Ovs6jJ5aBbBBGrk+sjB5Is3ouG2NvQFTSnUZwJkGXVEwxT4NZUL\nAfyX\r\n=IOyk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./public_api.js","husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"scripts":{},"typings":"./public_api.d.ts","_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/ng-packagr/ng-packagr.git","type":"git"},"_npmVersion":"6.13.4","description":"Compile and package a TypeScript library to Angular Package Format","directories":{},"_nodeVersion":"12.16.1","dependencies":{"ajv":"^6.10.2","glob":"^7.1.2","less":"^3.10.3","rxjs":"^6.5.0","sass":"^1.23.0","chalk":"^3.0.0","rimraf":"^3.0.0","rollup":"2.2.0","stylus":"^0.54.7","terser":"^4.3.8","postcss":"^7.0.18","chokidar":"^3.2.1","fs-extra":"^9.0.0","clean-css":"^4.1.11","commander":"^4.0.0","postcss-url":"^8.0.0","read-pkg-up":"^5.0.0","autoprefixer":"^9.6.5","browserslist":"^4.7.0","injection-js":"^2.2.1","update-notifier":"^4.0.0","@rollup/plugin-json":"^4.0.0","@rollup/plugin-commonjs":"^11.0.2","node-sass-tilde-importer":"^1.0.0","rollup-plugin-sourcemaps":"^0.5.0","@rollup/plugin-node-resolve":"^7.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"tslib":"^1.9.0","typescript":">=3.6 < 3.9","@angular/compiler":"^9.0.0","@angular/compiler-cli":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ng-packagr_9.1.0_1585116188431_0.4464672915518866","host":"s3://npm-registry-packages"}},"9.1.1":{"name":"@alauda/ng-packagr","version":"9.1.1","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","_id":"@alauda/ng-packagr@9.1.1","maintainers":[{"name":"alaudafrontend","email":"frontend@alauda.io"},{"name":"ancientrs","email":"ancientrs@outlook.com"},{"name":"edisonqtx","email":"suzhenggangfs@gmail.com"},{"name":"frozenwings","email":"pku.liudong@gmail.com"},{"name":"jounqin","email":"admin@1stg.me"},{"name":"maybeeee","email":"lihao19900829@qq.com"},{"name":"shuxun.yin","email":"shuxun.yin@gmail.com"},{"name":"tzfeng","email":"tzfeng@alauda.io"},{"name":"zhangmq","email":"undeadpark@gmail.com"}],"homepage":"https://github.com/ng-packagr/ng-packagr","bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"bin":{"ng-packagr":"cli/main.js"},"dist":{"shasum":"b8faa33e9cd9c36f5e54454cb30cd8bace5d7fd7","tarball":"https://registry.npmjs.org/@alauda/ng-packagr/-/ng-packagr-9.1.1.tgz","fileCount":181,"integrity":"sha512-u9dTWmhtLkMBoGPbR9fMJPwlZsubF1mplB7FzIWBlg2Gxc22gn0RP8zUjFhKesRi1knrp/Ppipm6WVG3cR4UHg==","signatures":[{"sig":"MEQCIFE5BibXSRXP9BptlEZJYBKcCy6yDbsUioboxyIuwvXcAiAqEEK3QvomxPVhD1gHvRdtrDm20RINAv9irpEbD/eDbQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":517446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeewBhCRA9TVsSAnZWagAA9fIP/0MsbC16C4iNL9NvGbNz\ngqf32FfKDDaoj9hKh/B1aH0xZ39RhSWd7dR8s7XpeB0yDKUfzF/J6T7LLyDH\nkd9lSnQu4FQbrmntVC7lpLKvj4pJtL5eTki6t1VFiOkwojdGZrZXjuMf+FPn\nx34TR3Xk8eEOQkYQqkWhcBkNtqRLdMUXQQwGdaIQJ4J3PHdi1VLt4Q22OzFu\nOttd5gH2sVluTS66oCUTTwTaRAtaE2loZrkddXgnFVGCcXq4zZzmpjVwDRQA\neh6vhStWbmTh8KVQx8PkuSyY508zBBDsKulPpIujtJrJ8gVAIzUCcv6bXC17\n/ouJJPBNKXfkncxyx+bQFh77ZifTwd9PSsfUHoTAvYcExBsuMYZtphRTdU+3\nlwPWoE/88qByPZfhvjKDBfQYB8OoHwzxGLkMs/vnr3SLgdkHqozUO4YcCBSY\nIXIQySLa0+StVbL1OtyWnQeFUYoEKGstTchLCfDANtEga/vkwRsvtuMUMNZJ\n2VOGzktnrTLvUyXId1kLuJnEjl0A10J0JnumM5Y/ye0jOwTlEnqLvXPdsYCr\nRlh85ltVhuJ8urLKP18kH82p1riU6uMMARSPX3MOcEs9NmnFgd6tIlpDCALJ\ngXRpbp4lQD9JRK3zia+QAIhxY/JxznjcS4OYlYGv4VocEfNJjI3GnSvXpD8B\nEJ9e\r\n=j85B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./public_api.js","husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"scripts":{},"typings":"./public_api.d.ts","_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/ng-packagr/ng-packagr.git","type":"git"},"_npmVersion":"6.14.3","description":"Compile and package a TypeScript library to Angular Package Format","directories":{},"_nodeVersion":"12.16.1","dependencies":{"ajv":"^6.10.2","glob":"^7.1.2","less":"^3.10.3","rxjs":"^6.5.0","sass":"^1.23.0","chalk":"^3.0.0","rimraf":"^3.0.0","rollup":"2.2.0","stylus":"^0.54.7","terser":"^4.3.8","postcss":"^7.0.18","chokidar":"^3.2.1","fs-extra":"^9.0.0","clean-css":"^4.1.11","commander":"^4.0.0","postcss-url":"^8.0.0","read-pkg-up":"^5.0.0","autoprefixer":"^9.6.5","browserslist":"^4.7.0","injection-js":"^2.2.1","update-notifier":"^4.0.0","@rollup/plugin-json":"^4.0.0","@rollup/plugin-commonjs":"^11.0.2","node-sass-tilde-importer":"^1.0.0","rollup-plugin-sourcemaps":"^0.5.0","@rollup/plugin-node-resolve":"^7.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"tslib":"^1.9.0","typescript":">=3.6 < 3.9","@angular/compiler":"^9.0.0","@angular/compiler-cli":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ng-packagr_9.1.1_1585119328638_0.4334451159497381","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-03-25T06:03:08.219Z","modified":"2026-08-12T04:04:13.233Z","9.1.0":"2020-03-25T06:03:08.582Z","9.1.1":"2020-03-25T06:55:28.780Z"},"bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","homepage":"https://github.com/ng-packagr/ng-packagr","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"repository":{"url":"git+https://github.com/ng-packagr/ng-packagr.git","type":"git"},"description":"Compile and package a TypeScript library to Angular Package Format","maintainers":[{"email":"tzfeng@alauda.io","name":"tzfeng"},{"email":"suzhenggangfs@gmail.com","name":"edisonqtx"},{"email":"admin@1stg.me","name":"jounqin"},{"email":"pku.liudong@gmail.com","name":"frozenwings"},{"email":"frontend@alauda.io","name":"alaudafrontend"},{"email":"shuxun.yin@gmail.com","name":"shuxun.yin"},{"email":"237974119@qq.com","name":"zangguodong"},{"email":"541226467@qq.com","name":"zchange"},{"email":"javascirpts@163.com","name":"kkxiao"},{"email":"1810849666@qq.com","name":"yangxiaolang"},{"email":"weili@alauda.io","name":"zer0ns"},{"email":"li_you_zhi@163.com","name":"li.youzhi"}],"readme":"# ng-packagr\n\n> Transpile your libraries to Angular Package Format\n\n\n[![npm](https://img.shields.io/npm/v/ng-packagr.svg?style=flat-square)](https://www.npmjs.com/package/ng-packagr)\n[![npm License](https://img.shields.io/npm/l/ng-packagr.svg?style=flat-square)](https://github.com/ng-packagr/ng-packagr/blob/master/LICENSE)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n[![CircleCI](https://img.shields.io/circleci/project/github/ng-packagr/ng-packagr/master.svg?label=Circle%20CI&style=flat-square)](https://circleci.com/gh/ng-packagr/ng-packagr)\n\n[![GitHub contributors](https://img.shields.io/github/contributors/ng-packagr/ng-packagr.svg?style=flat-square)](https://github.com/ng-packagr/ng-packagr)\n[![GitHub stars](https://img.shields.io/github/stars/ng-packagr/ng-packagr.svg?label=GitHub%20Stars&style=flat-square)](https://github.com/ng-packagr/ng-packagr)\n[![npm Downloads](https://img.shields.io/npm/dw/ng-packagr.svg?style=flat-square)](https://www.npmjs.com/package/ng-packagr)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovateapp.com/)\n\n## Credits\n\n### Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\n<a href=\"https://github.com/ng-packagr/ng-packagr/graphs/contributors\"><img src=\"https://opencollective.com/ng-packagr/contributors.svg?width=890&button=false\" /></a>\n\n## Installation\n\n```bash\nnpm install -D ng-packagr\n```\n\n## Usage Example\n\nLet's walk through a _getting started_ that'll build an Angular library from TypeScript sources and create a distribution-ready npm package:\ncreate a `package.json` file, add the custom `ngPackage` property, and eventually run `ng-packagr -p package.json`\n– Here we go:\n\n```json\n{\n  \"$schema\": \"./node_modules/ng-packagr/package.schema.json\",\n  \"name\": \"@my/foo\",\n  \"version\": \"1.0.0\",\n  \"ngPackage\": {\n    \"lib\": {\n      \"entryFile\": \"public_api.ts\"\n    }\n  }\n}\n```\n\nNote 1: Paths in the `ngPackage` section are resolved relative to the location of the `package.json` file.\nIn the above example, `public_api.ts` is the entry file to the library's sources and must be placed next to `package.json` (a sibling in the same folder).\n\nNote 2: referencing the `$schema` enables JSON editing support (auto-completion for configuration) in IDEs like [VSCode](https://github.com/Microsoft/vscode).\n\nYou can easily run _ng-packagr_ through a npm/yarn script:\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"ng-packagr -p package.json\"\n  }\n}\n```\n\nNow, execute the build with the following command:\n\n```bash\n$ yarn build\n```\n\nThe build output is written to the `dist` folder, containing all those _binaries_ to meet the Angular Package Format specification.\nYou'll now be able to go ahead and `npm publish dist` your Angular library to the npm registry.\n\nDo you like to publish more libraries?\nIs your code living in a monorepo?\nCreate one `package.json` per npm package, run _ng-packagr_ for each!\n\n## Features\n\n* :gift: Implements [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview)\n  * :checkered_flag: Bundles your library in FESM2015, FESM5, and UMD formats\n  * :school_satchel: npm package can be consumed by [Angular CLI](https://github.com/angular/angular-cli), [Webpack](https://github.com/webpack/webpack), or [SystemJS](https://github.com/systemjs/systemjs)\n  * :dancer: Creates type definitions (`.d.ts`)\n  * :runner: Generates [Ahead-of-Time](https://angular.io/guide/aot-compiler#why-do-aot-compilation) metadata (`.metadata.json`)\n  * :trophy: Auto-discovers and bundles secondary entry points such as `@my/foo`, `@my/foo/testing`, `@my/foo/bar`\n* :mag_right: Creates [scoped and non-scoped packages](https://docs.npmjs.com/misc/scope) for publishing to npm registry\n* :surfer: Inlines Templates and Stylesheets\n* :sparkles: CSS Features\n  * :camel: Runs [SCSS](http://sass-lang.com/guide) preprocessor, supporting the [relative `~` import syntax](https://github.com/webpack-contrib/sass-loader#imports) and custom include paths\n  * :snake: Runs [Stylus](http://stylus-lang.com) preprocessor, resolves relative paths relative to ng-package.json\n  * :monkey: Adds vendor-specific prefixes w/ [autoprefixer](https://github.com/postcss/autoprefixer#autoprefixer-) and [browserslist](https://github.com/ai/browserslist#queries) &mdash; just tell your desired `.browserslistrc`\n  * :tiger: Embed assets data w/ [postcss-url](https://github.com/postcss/postcss-url#inline)\n\n\n## How to…\n- [Copy Assets](docs/copy-assets.md)\n- [Embed Assets in CSS](docs/embed-assets-css.md)\n- [Managing Dependencies](docs/dependencies.md)\n- [Change the Entry File of a Library](docs/entry-file.md)\n- [Change Configuration Locations](docs/configuration-locations.md)\n- [Override tsconfig](docs/override-tsconfig.md)\n- [Add Style Include Paths](docs/style-include-paths.md)\n- [Change ECMAScript Language Level](docs/language-level.md)\n- [Package Secondary Entrypoints (sub packages)](docs/secondary-entrypoints.md)\n- [Enable JSX Templates, Bridging the Gap Between Angular and React](docs/jsx.md)\n\n## Advanced Use Cases\n\n#### Examples and Tutorials\n\nA great step-by-step [example of making an Angular CLI project with a library distributed separate from the app](https://github.com/jasonaden/angular-cli-lib-example), by Jason Aden\n\nNikolas LeBlanc wrote a tutorial on [building an Angular 4 Component Library with the Angular CLI and ng-packagr](https://medium.com/@ngl817/building-an-angular-4-component-library-with-the-angular-cli-and-ng-packagr-53b2ade0701e)\n\nHere is a [demo repository showing ng-packagr and Angular CLI](https://github.com/ng-packagr/ng-packaged) in action.\n\nWhat about [ng-packagr alongside Nx Workspace](https://github.com/ng-packagr/nx-packaged)? Well, they work well together!\n\n#### Further user questions and issue-driven documentation\n\nWe keep track of user questions in GitHub's issue tracker and try to build a documentation from it.\n[Explore issues w/ label documentation](https://github.com/ng-packagr/ng-packagr/issues?q=label%3Adocumentation%20).\n\n#### Contributing to ng-packagr\n\n[General contribution guidelines](./CONTRIBUTING.md)\n\nIf you like to submit a pull request, you'll find it helpful to take a look at the [initial design document where it all started](./docs/DESIGN.md).\n\nTo orchestrate the different tools, ng-packagr features a [custom transformation pipeline](docs/transformation-pipeline.md#a-transformation-pipeline). The transformation pipeline is built on top of RxJS and Angular Dependency Injection concepts.\n\n## Knowledge\n\n[Angular Package Format v9.0](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview), design document at Google Docs\n\nPackaging Angular Libraries - Jason Aden at Angular Mountain View Meetup ([Jan 2018, 45min talk](https://www.youtube.com/watch?v=QfvwQEJVOig&t=3612s))\n\nCreate and publish Angular libs like a Pro - Juri Strumpflohner at NG-BE ([Dec 2017, 30min talk](https://youtu.be/K4YMmwxGKjY))\n\n[![Juri Strumpflohner - Create and publish Angular libs like a Pro](https://img.youtube.com/vi/K4YMmwxGKjY/0.jpg)](https://youtu.be/K4YMmwxGKjY)\n\nPackaging Angular - Jason Aden at ng-conf 2017 ([28min talk](https://youtu.be/unICbsPGFIA))\n\n[![Packaging Angular - Jason Aden](https://img.youtube.com/vi/unICbsPGFIA/0.jpg)](https://youtu.be/unICbsPGFIA)\n\n\nCreate and publish Angular libs like a Pro - Juri Strumpflohner at ngVikings, this time demoing building Angular libraries with ng-packagr, with NX as well as Bazel ([March 2018, 30min talk](https://youtu.be/Tw8TCgeqotg))\n\n[![Juri Strumpflohner - Create & Publish Angular Libs like a PRO at ngVikings](https://img.youtube.com/vi/Tw8TCgeqotg/0.jpg)](https://youtu.be/Tw8TCgeqotg)\n","readmeFilename":"README.md"}