Skeleton
Base skeleton library
The package was generated by the skeleton workspace which was generated with Angular CLI version 13.
Copy package to the packages/spectre.css folder of the library skeleton then run the commands below.
Code scaffolding
Run ng generate component component-name --project spectre.css to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project spectre.css.
Note: Don't forget to add
--project spectre.cssor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build spectre.css to build the project. The build artifacts will be stored in the dist/spectre.css directory.
Publishing
After building your library with ng build spectre.css, go to the dist folder cd dist/spectre.css and run npm publish.
Running unit tests
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 spectre.css 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 Overview and Command Reference page.
Last updated