ng g library @entropia-io/lib-name --prefix=npx
add a build script at package.json
for easy deploy
- Generate a granular token for @entropia with: read and write access to scope @entropia (no package access required)
- Create or add token to ~/.npmrc file:
@entropia-io:registry=https://registry.npmjs.org/ //registry.npmjs.org/:_authToken=<NPM_TOKEN>
-
Commit all previous changes, so repo will be clean
-
Manually update the version number on package.json file at
./projects/entropia-io/ngx-xxxx/package.json
-
Build and publish library
npm run build:xxxx cd dist/entropia-io/ngx-xxxx npm publish
-
Commit changes
cd - git add * git commit -m "New versions: @entropia-io/ngx-xxxx -> from v0.0.x to v0.0.y" git push
check
package.json
file for allbuild:xxxx
scripts