eing-bills-entity
v1.0.0
Published
EING BillsEntity Module
Readme
eing-bills-entity
Description:
This module is used to get and populate bills-entity business domain data.
To use this module import eing-bills-entity-entity and use it's actions, queries and models.
Prerequisites:
nodejs must be installed.
Dependent feature/utility modules should be available in the private npm registry.
Setup comcast NPM Registry:
This setup is one-time process and common/required for all types of eing-* modules.
npm config set registry https://artifactory.io.comcast.net/api/npm/npm-all
npm config set @angular:registry https://registry.npmjs.org/
npm config set @types:registry https://registry.npmjs.org/
npm config set @ngtools:registry https://registry.npmjs.org/
npm config set @ngrx:registry https://registry.npmjs.org/
Build Process:
npm start - To run in dev machine.
npm run build - To produce the release build.
Running Unit Tests:
Run
npm run unit:test.It will create the coverage report in coverage folder and test report in karmaUnitTestReport folder.
How to publish:
If the project/module is already published, please unpublish it first. To unpublish you can use
npm unpublish -fornpm unpublish -f <module_name>ornpm unpublish -f <module_name@version>Run
npm publishto publish a latest package.Verify on private npm registry/artifactory web console (https://artifactory.io.comcast.net/webapp/).
Runner
To make this module self runnable we are using Runner which could be found under
"runner"folder on the root of the application.Whenever we introduce new dependencies for the module please also refer to the
systemjs.conf.jsfile for updating the references.Please note, whenever we build package of the application using
npm run buildthisRunneris not included in the packaged file i-e *.umd.js because currently this is only used for development purpose and to run functional test cases on individual features.
Rollup / Tree Shaking
- Whenever we import new external dependency in our source files we would also have to define those dependencies in
globalsandexternalarray ofrollup.conf.js
Gulp
We are using gulp to inline our
scssandhtmlfiles while using typescript to compile our code into js format with the help oftsconfig.jsonWe are also using
gulp-watchwhich helps us in smooth development and fasterts to jscompilation at development time.We are using gulp mainly for generating module specific distribution which should be deployable in any external server. e-g For
eing-<MODULE_NAME>-entity, it will generate<MODULE_NAME>-entity
