{"_id":"@cx-workspace/ng-packagr","_rev":"3-301cb33024de5962e0f882fbdd5f37a0","name":"@cx-workspace/ng-packagr","dist-tags":{"latest":"5.4.2"},"versions":{"5.4.0":{"name":"@cx-workspace/ng-packagr","version":"5.4.0","description":"Compile and package a TypeScript library to Angular Package Format","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ng-packagr/ng-packagr.git"},"homepage":"https://github.com/ng-packagr/ng-packagr","bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"bin":{"ng-packagr":"./cli/main.js"},"main":"./public_api.js","typings":"./public_api.d.ts","dependencies":{"ajv":"^6.10.2","autoprefixer":"^9.6.0","browserslist":"^4.0.0","chalk":"^2.3.1","chokidar":"^3.0.0","clean-css":"^4.1.11","commander":"^2.12.0","fs-extra":"^8.0.0","glob":"^7.1.2","injection-js":"^2.2.1","less":"^3.8.0","less-plugin-npm-import":"^2.1.0","node-sass-tilde-importer":"^1.0.0","postcss":"^7.0.0","postcss-url":"^8.0.0","read-pkg-up":"^5.0.0","rimraf":"^2.6.1","rollup":"^1.12.1","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-sourcemaps":"^0.4.2","rxjs":"^6.0.0","sass":"^1.17.3","stylus":"^0.54.5","terser":"^4.1.2","update-notifier":"^3.0.0"},"peerDependencies":{"@angular/compiler":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","@angular/compiler-cli":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","tslib":"^1.9.0","typescript":">=2.7 <3.6"},"devDependencies":{"@angular/cdk":"^8.0.0","@angular/common":"~8.2.0-rc.0","@angular/compiler":"~8.2.0-rc.0","@angular/compiler-cli":"~8.2.0-rc.0","@angular/core":"~8.2.0-rc.0","@angular/material":"^8.0.0","@angular/platform-browser":"~8.2.0-rc.0","@angular/router":"~8.2.0-rc.0","@commitlint/cli":"^8.0.0","@commitlint/config-angular":"^8.0.0","@types/acorn":"^4.0.3","@types/chai":"^4.0.0","@types/chokidar":"^1.7.5","@types/clean-css":"^4.0.0","@types/fs-extra":"^8.0.0","@types/glob":"^7.0.0","@types/jasmine":"^3.0.0","@types/mocha":"^5.0.0","@types/node":"^12.0.0","@types/react":"^16.0.19","@types/react-dom":"^16.0.2","@types/read-pkg-up":"^3.0.1","@types/sinon":"^7.0.0","@types/stylus":"^0.48.30","@types/uglify-js":"^3.0.2","@types/update-notifier":"^2.0.0","chai":"^4.0.1","copyfiles":"^2.0.0","cpx":"^1.5.0","cross-env":"^5.0.5","husky":"^3.0.0","jasmine":"^3.0.0","json-schema-to-typescript":"^7.0.0","mocha":"^6.0.0","prettier":"~1.18.2","pretty-quick":"~1.11.1","react":"^16.0.0","react-dom":"^16.0.0","rxjs-compat":"^6.0.0","sinon":"^7.0.0","source-map":"^0.7.0","standard-version":"^6.0.0","ts-node":"^8.0.0","tsickle":"^0.36.0","tslib":"^1.9.0","typescript":"~3.5.0","zone.js":"^0.9.0"},"private":false,"scripts":{"prebuild":"rimraf dist && yarn schema","build":"tsc -p src/tsconfig.packagr.json","postbuild":"node ./scripts/postbuild.js","schema":"json2ts --input src/ng-package.schema.json --output src/ng-package.schema.ts","prerelease":"yarn build","release":"standard-version --message 'release: cut v%s' --no-verify","postrelease":"node ./scripts/prepublish.js","publish:ci":"yarn prerelease && yarn postrelease","integration:samples":"integration/samples.sh","integration:samples:dev":"ts-node --project src/tsconfig.packagr.json ./integration/samples.dev.ts","integration:specs":"cross-env TS_NODE_PROJECT=integration/tsconfig.specs.json mocha --require ts-node/register \"integration/samples/*/specs/**/*.ts\"","integration:consumers":"integration/consumers.sh","integration:consumers:ngc":"ngc -p integration/consumers/tsc/tsconfig.json","integration:watch:specs":"cross-env TS_NODE_PROJECT=integration/tsconfig.specs.json mocha --timeout 25000 --require ts-node/register \"integration/watch/*.spec.ts\"","test:specs":"cross-env TS_NODE_PROJECT=src/tsconfig.specs.json mocha --require ts-node/register \"src/**/*.spec.ts\"","test":"yarn build && yarn test:specs && yarn integration:samples && yarn integration:specs && yarn integration:watch:specs && yarn integration:consumers","gh-pages":"gh-pages -d docs/ghpages"},"collective":{"type":"opencollective","url":"https://opencollective.com/ng-packagr","logo":"https://opencollective.com/opencollective/logo.txt"},"husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"gitHead":"9294844146dd7d532da8c13130ef08893e7966f0","_id":"@cx-workspace/ng-packagr@5.4.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xs8N4Ir9F8xwNORmTupSaa+u83G9GuEGBTpHQ3JajgLYi+9aKknYG+qz15x4jv4r0LTsi9qP40K34STVcxcKOA==","shasum":"6e67c7fa6dead2adaefaee78bac723306435d694","tarball":"https://registry.npmjs.org/@cx-workspace/ng-packagr/-/ng-packagr-5.4.0.tgz","fileCount":505,"unpackedSize":7443320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd78LWCRA9TVsSAnZWagAAURcP/iSfkWzjYn4H5Q+NHa44\n2ld4dgT9jWDwttYqDsfDIv4stz3klRD64WhT0aWJjqCNwhdGnFfhP5XvdC1r\nQRs8LjtXohL+a1r1dU1OtSxEcIwexr96bU19ilH59Mh/Fy+xNaLfB4EUqE4n\ntCCp+yDu4IR/AKmnKXx8HxBzk0zk9mN3w5oWKV8qWBFVi5kWw8X+3J8WIVjH\n5fzdak6F3AfRqjcgrNCuMhpvh6CV36jfMJx3WQN5iBQwYKqAu5miZpo76bzk\nylBzKacpYm+NMROg2L7cduAC4j84UzopWTWoo949akCusxbVA/nf697sAIJE\nPugRF6IdDF1sAjDD22+TXfrhRugLlN57IyCqkjdl1T9nET224PFoFnicmGF7\ntjpH5qDQB2Io7TzFLPVDwDl6GKxvlIFujfEKBXVSzQY5H66oRbbcRY2WPTVl\n43D7EH5EsqIE0jZPqcREI/zGXrLctoGyyhFLSFjMDGPxyVY6NAjaFb3kXNk6\nP+23t9wu/fAiTq1cT6kf/PQkzGRsk5+43yQ29OxEmOO1kmUP0M5yCUtO+qcj\ngxVoohaVIo6Oi7rAQSHJsvhLJ6As85Ff1Sq/WJuRkOJjm4TOHxPsklSyBi/m\n4c1E7FBhXV4R3RZfI3iN/yrcmz5+MorHrwuJltc+JcOcOtkfflnCU2oV+9Zg\nmigE\r\n=xuMN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUFbUsui+2UIqmtQQLyMj72jw2rzjQJpKeMxlsuqTGmAiEAziiYJ2em4i0ati7vZQNc4d6PaHuB3SJvP6ZItqakSWQ="}]},"maintainers":[{"name":"iosee","email":"protsenko.victor@gmail.com"}],"_npmUser":{"name":"iosee","email":"protsenko.victor@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-packagr_5.4.0_1575994069892_0.7960479975905228"},"_hasShrinkwrap":false},"5.4.1":{"name":"@cx-workspace/ng-packagr","version":"5.4.1","description":"Compile and package a TypeScript library to Angular Package Format","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ng-packagr/ng-packagr.git"},"homepage":"https://github.com/ng-packagr/ng-packagr","bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"bin":{"ng-packagr":"./cli/main.js"},"main":"./public_api.js","typings":"./public_api.d.ts","dependencies":{"ajv":"^6.10.2","autoprefixer":"^9.6.0","browserslist":"^4.0.0","chalk":"^2.3.1","chokidar":"^3.0.0","clean-css":"^4.1.11","commander":"^2.12.0","fs-extra":"^8.0.0","glob":"^7.1.2","injection-js":"^2.2.1","less":"^3.8.0","less-plugin-npm-import":"^2.1.0","node-sass-tilde-importer":"^1.0.0","postcss":"^7.0.0","postcss-url":"^8.0.0","read-pkg-up":"^5.0.0","rimraf":"^2.6.1","rollup":"^1.12.1","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-sourcemaps":"^0.4.2","rxjs":"^6.0.0","sass":"^1.17.3","stylus":"^0.54.5","terser":"^4.1.2","update-notifier":"^3.0.0"},"peerDependencies":{"@angular/compiler":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","@angular/compiler-cli":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","tslib":"^1.9.0","typescript":">=2.7 <3.6"},"collective":{"type":"opencollective","url":"https://opencollective.com/ng-packagr","logo":"https://opencollective.com/opencollective/logo.txt"},"husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"scripts":{},"_id":"@cx-workspace/ng-packagr@5.4.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-weDInLvJwG2aV4m4ns7+nmeL3sJvwa8NMK74OxNqr8tbG9iXw/Rs0mfeAFuZPDihhhXLxf+tzNTdzdYoLjcdyQ==","shasum":"efcb427f52f3c8563a5e04b5b15af25268d231d0","tarball":"https://registry.npmjs.org/@cx-workspace/ng-packagr/-/ng-packagr-5.4.1.tgz","fileCount":178,"unpackedSize":467720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd78SoCRA9TVsSAnZWagAADfkP/Aw9/wL+/DVUsA5wKBTs\nienf7Y+jcmXLMSvcB3zJ5jsGufcL6Be6sxoLaEFWuW2VUglhCuh867NOdRl4\nclp49EfteQBz5TpzOds3q+WAYfwVdtDPpfQLV2/DIYtilw2NDDI0vCj48HJT\n/ZUR1JlCN7dZWX0ib6t0akurNM7CLAR1YLNrzibd+qMMt6P1Vc6H5SYULTmP\nBgtl/6ZLVzveIb89FtOWiSDtXCzN061VFdt3c8+/haniCd5faWIM6qgDEa8R\nn2my9DxooaXJEP9FjvYjCfCFMPPiRAfJEn2FZRyewPe/U9FQFJ3DKQG+XtwD\ntWOxiysjcU/jak1h75Vmjq7JhAq+diTQXjzSa+nsDX0sq19zn98xN9S1WsWm\nAWrinZpZY1SL/P5kyQHBufmneX39RwTVan4Mq+ZZOfBN0nEoF0pKretJJ/0y\nq3o4BPVJVuW58paCRHjlgpLxVvVbWh/0c3Zd19bFv2ISelqPQMLGvc/sfsl3\nB70bE92z8S4iBSjEW8RVzDtHNxhTGpljblTIQpCHRFMEjjliG4jmBWw/QCU1\ngMQIr9CwDdUGDWbAr2nS9+87SOAbotCcDbVHC11I+Wl6jIK7zD5P3PfzPRSf\nusAyYkHbn2irs+LzxlwWunVCNQcByge/o5Ndz6dKk5kfx6U8sm4nPHunhDj4\nVPuD\r\n=B2OV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7UtnR+kMjIIecPjtnnQ1Sw8IUGd6aaGAhIMAz0//maAiEAotOpT/VHuqgXgiMt3FeFQhMS1oPOnkabRTRI4vZi+ro="}]},"maintainers":[{"name":"iosee","email":"protsenko.victor@gmail.com"}],"_npmUser":{"name":"iosee","email":"protsenko.victor@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-packagr_5.4.1_1575994536121_0.5063348154412284"},"_hasShrinkwrap":false},"5.4.2":{"name":"@cx-workspace/ng-packagr","version":"5.4.2","description":"Compile and package a TypeScript library to Angular Package Format","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"author":{"name":"David Herges","email":"david@spektrakel.de"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ng-packagr/ng-packagr.git"},"homepage":"https://github.com/ng-packagr/ng-packagr","bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"bin":{"ng-packagr":"./cli/main.js"},"main":"./public_api.js","typings":"./public_api.d.ts","dependencies":{"ajv":"^6.10.2","autoprefixer":"^9.6.0","browserslist":"^4.0.0","chalk":"^2.3.1","chokidar":"^3.0.0","clean-css":"^4.1.11","commander":"^2.12.0","fs-extra":"^8.0.0","glob":"^7.1.2","injection-js":"^2.2.1","less":"^3.8.0","less-plugin-npm-import":"^2.1.0","node-sass-tilde-importer":"^1.0.0","postcss":"^7.0.0","postcss-url":"^8.0.0","read-pkg-up":"^5.0.0","rimraf":"^2.6.1","rollup":"^1.12.1","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-sourcemaps":"^0.4.2","rxjs":"^6.0.0","sass":"^1.17.3","stylus":"^0.54.5","terser":"^4.1.2","update-notifier":"^3.0.0"},"peerDependencies":{"@angular/compiler":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","@angular/compiler-cli":"^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9","tslib":"^1.9.0","typescript":">=2.7 <3.6"},"collective":{"type":"opencollective","url":"https://opencollective.com/ng-packagr","logo":"https://opencollective.com/opencollective/logo.txt"},"husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"scripts":{},"_id":"@cx-workspace/ng-packagr@5.4.2","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-KErnabqc+MvJTklOKeOqbV0NvC2VPRG0U1VqRqJQFtkyeQiUG6TXiHkXdG+4wpH8W7SHbj8Forrg35/5EX0zAA==","shasum":"563564bd0158fa78d96182a6dd5fc03ee9849171","tarball":"https://registry.npmjs.org/@cx-workspace/ng-packagr/-/ng-packagr-5.4.2.tgz","fileCount":175,"unpackedSize":459791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd783gCRA9TVsSAnZWagAAjG8P/RuRsNI386ss/aOTOUiQ\nwAhj9BBaPchb6V4Q/0sM2b4i70JQ6F9ewfZnedwBwi/beJBYWbXZ6zFBZ4XB\nC944vWngoZu78NpvUMUXJXBYAJWAYgAhf+6g1mzT334NKtVM+JIEcfjf06kA\nybFKViKPNAzVf/hxeQR3opqwosNmwe0j9o8iuZIIsCNC9Eb6Q47yVCHyGhoM\nwNeyZdSeocGrBqdBkOYzY11QZDKf43TGmluHR8E56IjF6rjpl0N5IniXEByn\n/7ypnHk84QnmuCqVBA1TiuLhpk431D2Kvqvhs25E4lI3hJI69C1onfV/Y4Ix\nqQjZHybt30hriwdpbaY6udkTTj9dZGEjeGTX4Ahnriti5n1k8iHkyzMEooo/\n6Tv+15mjvkH5gPocc0qr1onrr6LCpULogPk7en60kercR1u7rW6x+z5g0uCe\n2OriASLhykXoxrzXaLiu6XzSf8l7fBUTdVrzm+DFhWZWGJLDn41vbS5QOGT4\nZXSNWvFnAwMCyWrbUHUJw1eV1wxBDYyLGPTg0QhmdsHxDRW+KaY0d0AOg/VI\nECNNeS5K/Kvow4Q8cC2kC2eYQ3YkqPSExafZg8MltQBAb6c1rqakOlm+Y0PD\nD5W0O3OmvHFfU/hCjEBGl07BNalSwnMo868GsmYGw/JM5ir9rmp+d1Es+1U0\nE3Uy\r\n=Kww5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd0Vog19fh5a0ZBlcDl0xoFY90W1tjYOvw4keHMJwWhQIgK/fp1n/KKBx/TbVbqbC8Mqz/9X7dVp8xRRe0ee+dAY0="}]},"maintainers":[{"name":"iosee","email":"protsenko.victor@gmail.com"}],"_npmUser":{"name":"iosee","email":"protsenko.victor@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-packagr_5.4.2_1575996896211_0.940840220592075"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-10T16:07:49.681Z","5.4.0":"2019-12-10T16:07:50.198Z","modified":"2022-04-05T02:23:06.755Z","5.4.1":"2019-12-10T16:15:36.387Z","5.4.2":"2019-12-10T16:54:56.358Z"},"maintainers":[{"name":"iosee","email":"protsenko.victor@gmail.com"}],"description":"Compile and package a TypeScript library to Angular Package Format","homepage":"https://github.com/ng-packagr/ng-packagr","keywords":["angular","angular2","angular4","angular-library","angular-components","component-library","typescript","css","scss","html"],"repository":{"type":"git","url":"git+https://github.com/ng-packagr/ng-packagr.git"},"author":{"name":"David Herges","email":"david@spektrakel.de"},"bugs":{"url":"https://github.com/ng-packagr/ng-packagr/issues"},"license":"MIT","readme":"# ng-packagr\r\n\r\n> Transpile your libraries to Angular Package Format\r\n\r\n\r\n[![npm](https://img.shields.io/npm/v/ng-packagr.svg?style=flat-square)](https://www.npmjs.com/package/ng-packagr)\r\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)\r\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\r\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)\r\n\r\n[![GitHub contributors](https://img.shields.io/github/contributors/ng-packagr/ng-packagr.svg?style=flat-square)](https://github.com/ng-packagr/ng-packagr)\r\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)\r\n[![npm Downloads](https://img.shields.io/npm/dw/ng-packagr.svg?style=flat-square)](https://www.npmjs.com/package/ng-packagr)\r\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovateapp.com/)\r\n\r\n## Credits\r\n\r\n### Contributors\r\n\r\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\r\n\r\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>\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install -D ng-packagr\r\n```\r\n\r\n## Usage Example\r\n\r\nLet's walk through a _getting started_ that'll build an Angular library from TypeScript sources and create a distribution-ready npm package:\r\ncreate a `package.json` file, add the custom `ngPackage` property, and eventually run `ng-packagr -p package.json`\r\n– Here we go:\r\n\r\n```json\r\n{\r\n  \"$schema\": \"./node_modules/ng-packagr/package.schema.json\",\r\n  \"name\": \"@my/foo\",\r\n  \"version\": \"1.0.0\",\r\n  \"ngPackage\": {\r\n    \"lib\": {\r\n      \"entryFile\": \"public_api.ts\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nNote 1: Paths in the `ngPackage` section are resolved relative to the location of the `package.json` file.\r\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).\r\n\r\nNote 2: referencing the `$schema` enables JSON editing support (auto-completion for configuration) in IDEs like [VSCode](https://github.com/Microsoft/vscode).\r\n\r\nYou can easily run _ng-packagr_ through a npm/yarn script:\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"build\": \"ng-packagr -p package.json\"\r\n  }\r\n}\r\n```\r\n\r\nNow, execute the build with the following command:\r\n\r\n```bash\r\n$ yarn build\r\n```\r\n\r\nThe build output is written to the `dist` folder, containing all those _binaries_ to meet the Angular Package Format specification.\r\nYou'll now be able to go ahead and `npm publish dist` your Angular library to the npm registry.\r\n\r\nDo you like to publish more libraries?\r\nIs your code living in a monorepo?\r\nCreate one `package.json` per npm package, run _ng-packagr_ for each!\r\n\r\n## Features\r\n\r\n* :gift: Implements [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview)\r\n  * :checkered_flag: Bundles your library in FESM2015, FESM5, and UMD formats\r\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)\r\n  * :dancer: Creates type definitions (`.d.ts`)\r\n  * :runner: Generates [Ahead-of-Time](https://angular.io/guide/aot-compiler#why-do-aot-compilation) metadata (`.metadata.json`)\r\n  * :trophy: Auto-discovers and bundles secondary entry points such as `@my/foo`, `@my/foo/testing`, `@my/foo/bar`\r\n* :mag_right: Creates [scoped and non-scoped packages](https://docs.npmjs.com/misc/scope) for publishing to npm registry\r\n* :surfer: Inlines Templates and Stylesheets\r\n* :sparkles: CSS Features\r\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\r\n  * :elephant: Runs [less](http://lesscss.org/#getting-started) preprocessor, supports the relative `~` import syntax\r\n  * :snake: Runs [Stylus](http://stylus-lang.com) preprocessor, resolves relative paths relative to ng-package.json\r\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`\r\n  * :tiger: Embed assets data w/ [postcss-url](https://github.com/postcss/postcss-url#inline)\r\n\r\n\r\n## How to…\r\n- [Embed Assets in CSS](docs/embed-assets-css.md)\r\n- [Managing Dependencies](docs/dependencies.md)\r\n- [Change the Entry File of a Library](docs/entry-file.md)\r\n- [Change Configuration Locations](docs/configuration-locations.md)\r\n- [Override tsconfig](docs/override-tsconfig.md)\r\n- [Add Style Include Paths](docs/style-include-paths.md)\r\n- [Change ECMAScript Language Level](docs/language-level.md)\r\n- [Package Secondary Entrypoints (sub packages)](docs/secondary-entrypoints.md)\r\n- [Enable JSX Templates, Bridging the Gap Between Angular and React](docs/jsx.md)\r\n\r\n## Advanced Use Cases\r\n\r\n#### Examples and Tutorials\r\n\r\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\r\n\r\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)\r\n\r\nHere is a [demo repository showing ng-packagr and Angular CLI](https://github.com/ng-packagr/ng-packaged) in action.\r\n\r\nWhat about [ng-packagr alongside Nx Workspace](https://github.com/ng-packagr/nx-packaged)? Well, they work well together!\r\n\r\n#### Further user questions and issue-driven documentation\r\n\r\nWe keep track of user questions in GitHub's issue tracker and try to build a documentation from it.\r\n[Explore issues w/ label documentation](https://github.com/ng-packagr/ng-packagr/issues?q=label%3Adocumentation%20).\r\n\r\n#### Contributing to ng-packagr\r\n\r\n[General contribution guidelines](./CONTRIBUTING.md)\r\n\r\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).\r\n\r\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.\r\n\r\n## Knowledge\r\n\r\n[Angular Package Format v6.0](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview), design document at Google Docs\r\n\r\nPackaging Angular Libraries - Jason Aden at Angular Mountain View Meetup ([Jan 2018, 45min talk](https://www.youtube.com/watch?v=QfvwQEJVOig&t=3612s))\r\n\r\nCreate and publish Angular libs like a Pro - Juri Strumpflohner at NG-BE ([Dec 2017, 30min talk](https://youtu.be/K4YMmwxGKjY))\r\n\r\n[![Juri Strumpflohner - Create and publish Angular libs like a Pro](https://img.youtube.com/vi/K4YMmwxGKjY/0.jpg)](https://youtu.be/K4YMmwxGKjY)\r\n\r\nPackaging Angular - Jason Aden at ng-conf 2017 ([28min talk](https://youtu.be/unICbsPGFIA))\r\n\r\n[![Packaging Angular - Jason Aden](https://img.youtube.com/vi/unICbsPGFIA/0.jpg)](https://youtu.be/unICbsPGFIA)\r\n\r\n\r\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))\r\n\r\n[![Juri Strumpflohner - Create & Publish Angular Libs like a PRO at ngVikings](https://img.youtube.com/vi/Tw8TCgeqotg/0.jpg)](https://youtu.be/Tw8TCgeqotg)\r\n","readmeFilename":"README.md"}