This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.1.0.
npm install aril
> 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
`
Code Scaffolding
Run ng generate component|directive|pipe|service|class|guard|interface|enum|module --flat --path projects/aril/ 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 your angular.json file.
- > Note: subentry must be one of boot|http|i18n|keycloak|theme|ui|util.
- > Note: Don't forget to add index.ts and ng-package.json for components of subentry points.
- > Note: Don't forget to export component from index.ts.
Folder Scaffolding
- main-entry (aril)
- sub-entry (boot|http|i18n|keycloak|theme|ui|util)
- feature (button,calendar etc.)
- src
- feature.component.ts
- feature.view.html
- index.ts
- ng-package.json
- index.ts
- ng-package.json
Build
Run ng build aril to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
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.
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.
Local testing
To test changes locally, you need to apply the build in the targeted node_modules folder.
$3
On Windows, you can run npm run build-local. This will build the packages and move them in the needed directory.
$3
On MacOS, you should:
- run npm run build
- copy (and replace) the resulting files from dist/fesm2022/ into the node_modules/aril/fesm2022 of your targeted app (for instance, aril-ui-yeap-mw`)