iboss-preview-my-lib v0.1.1
//建立專案(含Library) ng new project1 cd project1 ng generate iboss-preview-my-lib
//發行專案到 npmjs cd .\projects\ ng build iboss-preview-my-lib --prod cd ../dists/ cd iboss-preview-my-lib npm publish
//github 到遠端 git remote add origin https://github.com/hihipip001/iboss-preview-my-lib git add . git commit -m "0.03" git push -u origin master
IbossPreviewMyLib
This library was generated with Angular CLI version 9.1.9.
Code scaffolding
Run ng generate component component-name --project iboss-preview-my-lib to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project iboss-preview-my-lib.
Note: Don't forget to add
--project iboss-preview-my-libor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build iboss-preview-my-lib to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build iboss-preview-my-lib, go to the dist folder cd dist/iboss-preview-my-lib and run npm publish.
Running unit tests
Run ng test iboss-preview-my-lib to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.