### Install npm packages Source: https://github.com/grbsk/ng2-idle/blob/master/README.md Run this command after cloning the repository to install all dependencies using npm. ```bash npm install ``` -------------------------------- ### Install @ng-idle/core via npm Source: https://github.com/grbsk/ng2-idle/blob/master/README.md Install the core package for the latest supported Angular version. Requires npm and access to the npm registry. ```bash npm install --save @ng-idle/core ``` -------------------------------- ### Get Angular CLI help Source: https://github.com/grbsk/ng2-idle/blob/master/projects/keepalive/README.md Use this command to get more help on the Angular CLI. ```bash ng help ``` -------------------------------- ### Run tests Source: https://github.com/grbsk/ng2-idle/blob/master/CONTRIBUTING.md Run the test suite to make sure it builds and passes tests successfully. ```bash npm run test ``` -------------------------------- ### Build the core library Source: https://github.com/grbsk/ng2-idle/blob/master/projects/core/README.md Builds the core library and stores the build artifacts in the dist/ directory. ```bash ng build core ``` -------------------------------- ### Release new version Source: https://github.com/grbsk/ng2-idle/blob/master/CONTRIBUTING.md Run the release script. It will ask for your NPM OTP twice: once to publish core and again to publish keepalive. ```bash npm run release ``` -------------------------------- ### Run all tests once with coverage Source: https://github.com/grbsk/ng2-idle/blob/master/README.md Builds all modules and runs the test suite in one shot, including coverage. ```bash npm test ``` -------------------------------- ### Publish the core library to npm Source: https://github.com/grbsk/ng2-idle/blob/master/projects/core/README.md After building the library, navigate to the dist folder and publish the package to npm. ```bash cd dist/core ``` ```bash npm publish ``` -------------------------------- ### Run unit tests for core library Source: https://github.com/grbsk/ng2-idle/blob/master/projects/core/README.md Executes the unit tests for the core library using Karma. ```bash ng test core ``` -------------------------------- ### Checkout latest changes Source: https://github.com/grbsk/ng2-idle/blob/master/CONTRIBUTING.md Ensure you have the latest changes pulled down before releasing. ```bash git checkout master && git pull ``` -------------------------------- ### Generate a new component with --project core Source: https://github.com/grbsk/ng2-idle/blob/master/projects/core/README.md Use this Angular CLI command to scaffold a new component in the core library. The --project flag is required to target the core project; otherwise the component is added to the default project in angular.json. ```bash ng generate component component-name --project core ``` -------------------------------- ### Run continuous tests for core and keepalive Source: https://github.com/grbsk/ng2-idle/blob/master/README.md Continuously run tests for a specific project while making changes. Keepalive depends on Core, so build Core first after changes. ```bash npm run ng test core ``` ```bash npm run ng test keepalive ``` -------------------------------- ### Build the keepalive library Source: https://github.com/grbsk/ng2-idle/blob/master/projects/keepalive/README.md Run this command to build the keepalive project. The build artifacts will be stored in the dist/ directory. ```bash ng build keepalive ``` -------------------------------- ### Run keepalive unit tests Source: https://github.com/grbsk/ng2-idle/blob/master/projects/keepalive/README.md Execute the unit tests for the keepalive library using Karma. ```bash ng test keepalive ``` -------------------------------- ### Commit message format Source: https://github.com/grbsk/ng2-idle/blob/master/CONTRIBUTING.md The header is mandatory, the scope is optional. Every line should be no longer than 100 characters. ```text ():