comando usato per la creazione ng generate library italcamel-lib This library was generated with Angular CLI version 13.3.0.
Run ng generate component component-name --project italcamel-components-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project italcamel-components-lib
.
Note: Don't forget to add
--project italcamel-components-lib
or else it will be added to the default project in yourangular.json
file.
Run ng build italcamel-components-lib
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build italcamel-components-lib
, go to the dist folder cd dist/italcamel-components-lib
and run npm publish
.
non essendo registrati su npm procediamo alla registrazione interna con questo comando
npm i C:\Sviluppo\GitProjects\backoffice\Backoffice\Backoffice\angular-library\projects\italcamel-lib
Run ng test italcamel-components-lib
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.