@tdm/tdm-common-utility
This project contains common Angular features for angular web applications.
##To test locally via the demo application:
ng test
will run karma with all the unit tests.
ng serve
will start a local app that has some demo pages for the components in the package.
##To build and publish the @tdm/tdm-common-utility package:
-
cd projects/tdm-common-utility
will change to the library's project folder -
npm version patch
(ormajor
orminor
as appropriate) -
cd ../..
to go back to the project folder -
ng build tdm-common-utility
will build the '@tdm/tdm-common-utility' library project -
cd dist/tdm-common-utility
will change to the library's dist folder -
npm pack
will build a tgz version of the package for local testing (outside the demo project) -
npm publish
will publish the new version of the package to the tdm npm feed -
cd ../..
to go back to the project folder
##To use:
npm i @tdm/tdm-common-utility@latest
will install the package. The package exports modules for each feature, so import whatever modules you want to use and off you go!
##run lib
ng build tdm-common-utility --watch
ng build theme --watch
ng build theme-mmcs --watch