This library was generated with Angular CLI version 17.1.0.
> npx @angular/cli new workspace --no-create-application
> npx ng generate library aril
> npx ng add @angular-eslint/schematics
> npm install prettier --save-dev
> npx nx init
> ng generate component button --flat --path projects/aril/ui/button/src
Run ng generate component|directive|pipe|service|class|guard|interface|enum|module --flat --path projects/aril/<subentry>/<feature>/src
to generate a new as you select.
-
Note: Don't forget to add
--path
or else it will be added to the default project in yourangular.json
file. -
Note: subentry must be one of
ui|util|http|i18n|theme
. -
Note: Don't forget to add
index.ts
andng-package.json
for components of subentry points. -
Note: Don't forget to export component from
index.ts
.
- main-entry (aril)
- sub-entry (ui|util|http|i18n|theme)
- feature (button,calendar etc.)
- src
- feature.component.ts
- feature.view.html
- index.ts
- ng-package.json
- src
- index.ts
- ng-package.json
- feature (button,calendar etc.)
- sub-entry (ui|util|http|i18n|theme)
Run ng build aril
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build aril
, go to the dist folder cd dist
and run npm publish
.
Note: Don't forget to increment the version number in
project.json
before build.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.