aril
v1.1.74
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.1.0.
Keywords
Readme
ARiL-UI-LIB
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/srcCode Scaffolding
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
--pathor else it will be added to the default project in yourangular.jsonfile.Note: subentry must be one of
boot|http|i18n|keycloak|theme|ui|util.Note: Don't forget to add
index.tsandng-package.jsonfor 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
- src
- index.ts
- ng-package.json
- feature (button,calendar etc.)
- sub-entry (boot|http|i18n|keycloak|theme|ui|util)
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.jsonbefore 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.
Windows
On Windows, you can run npm run build-local. This will build the packages and move them in the needed directory.
MacOS
On MacOS, you should:
- run
npm run build - copy (and replace) the resulting files from
dist/fesm2022/<your-package>.[mjs & map]into thenode_modules/aril/fesm2022of your targeted app (for instance,aril-ui-yeap-mw)
This is a temporary solution until we have a script for moving files.
