juno-ui v2.1.1
JunoUI
This project was generated with Angular CLI version 7.0.2.
Local Development
Install the localhost certificate (juno_ui/localhost.crt) to Local Machine -> Trusted Root Authorities
Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Generating Libraries In Juno UI
- Run
ng g @nrwl/angular:lib --name=<library name> --publishable --import-path=@juno/<library name> --prefix=<library html prefix> --style=scss --tags=<optional tags> --dry-run --verbose
and verify desired output. - Once verified, run again, removing
--dry-run --verbose
parameters to perform actual generation. - Modify "extends" path of generated .eslintrc.json to "../.eslintrc.json". It defaults to the root level eslint rules and needs to be scoped to library level rules, as they are a little different.
- Navigate to newly generated configuration for library in angular.json and add "index" generator configuration. Grab format from other library configurations and change command to
npm run index -- --<library name>
. This is a script that will automatically expose the components built in the library to its public API. - Add NPM command to build your library
"<library name>": "nx build <library name>"
. - Done. Test library compilation with
npm run <library name>
and ensure everything runs as expected.
Note: If you receive an error indicating a JSON file cannot be parsed, it is indicating that the JSON is malformed. The most common issue is a trailing comma on the last record of an array that needs to be removed.
Code scaffolding
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Build
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Running unit tests
Run ng test
to execute the unit tests via Jest.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
16 days ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago