Original README
We needed to fork this repository as it is not being maintained anymore (according to the npm entry).
To make it installable trough npm i
we needed to add additional scripts to package.json:
"build:lib": "rm -rf ./dist && ng-packagr -p ./projects/angular-token/ng-package.json"
This will do a clean package compile to the ./dist/angular-token
folder.
"build:release": "npm run build:lib && tar -czvf ./dist/angular-token.tar.gz -C ./dist/angular-token ."
This will create a zipped tar file in ./dist/angular-token.tar.gz
After running a npm run build:release
we'll need to create a release in github and attach the tar file to the release.
We can then use this new release using:
npm run build:lib
npm run build:release
npm i https://github.com/ashok1/angular-token/releases/download/released/angular-token.tar.gz