mehdi-custom-editor v0.0.1
LibraryTest
This library was generated with Angular CLI version 15.2.0.
Code scaffolding
Run ng generate component component-name --project library-test
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project library-test
.
Note: Don't forget to add
--project library-test
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build library-test
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build library-test
, go to the dist folder cd dist/library-test
and run npm publish
.
Running unit tests
Run ng test library-test
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.
Create project
ng new my-first-library
Create library and generat a component
ng g library library-test ng g c my-button --project=library-test
build library
ng build library-test --configuration=production --watch
publish library
cd projects\library-test npm publish --access public npm adduser
update library
npm version patch npm publish
2 years ago