Skip to content

🅰️ Reusable libraries, UI components, and utilities for Angular projects. Designed to accelerate development and promote consistency across applications.

License

Notifications You must be signed in to change notification settings

entropia-io/angular-devkit

Repository files navigation

AngularDevkit

How to create a new lib?

ng g library @entropia-io/lib-name --prefix=npx

add a build script at package.json for easy deploy

Setup npm registry access

  1. Generate a granular token for @entropia with: read and write access to scope @entropia (no package access required)
  2. Create or add token to ~/.npmrc file:
    @entropia-io:registry=https://registry.npmjs.org/
    //registry.npmjs.org/:_authToken=<NPM_TOKEN>

How to publish a library

  1. Commit all previous changes, so repo will be clean

  2. Manually update the version number on package.json file at ./projects/entropia-io/ngx-xxxx/package.json

  3. Build and publish library

    npm run build:xxxx
    cd dist/entropia-io/ngx-xxxx
    npm publish   
  4. 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 all build:xxxx scripts

About

🅰️ Reusable libraries, UI components, and utilities for Angular projects. Designed to accelerate development and promote consistency across applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published