Skeleton
Code scaffolding
Build
Publishing
Running unit tests
npm i @angular-package/testing @angular-package/type --no-saveFurther help
Last updated
The package was generated by the library skeleton which was generated with Angular CLI version 13.0.0.
Copy package to the packages/error folder of the library skeleton then run the commands below.
Run ng generate component component-name --project error to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project error.
Note: Don't forget to add
--project erroror else it will be added to the default project in yourangular.jsonfile.
Run ng build error to build the project. The build artifacts will be stored in the dist/error directory.
After building your library with ng build error, go to the dist folder cd dist/error and run npm publish.
Before the test can be performed install @angular-package/testing and @angular-package/type with command:
npm i @angular-package/testing @angular-package/type --no-saveRun ng test error to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
Last updated