You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(examples): build and consume an Angular workspace library (#1633)
* feat(examples): build and consume an Angular workspace library
With this change we now build and consume an Angular library
in the Angular application.
* chore: update deleted packages
* style: bazel lint
* style: bazel lint
* style: add comment for pkg_npm workaround
Co-authored-by: Greg Magolan <gmagolan@gmail.com>
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0.
4
+
5
+
## Code scaffolding
6
+
7
+
Run `ng generate component component-name --project frontend-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project frontend-lib`.
8
+
> Note: Don't forget to add `--project frontend-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+
## Build
11
+
12
+
Run `ng build frontend-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+
## Publishing
15
+
16
+
After building your library with `ng build frontend-lib`, go to the dist folder `cd dist/frontend-lib` and run `npm publish`.
17
+
18
+
## Running unit tests
19
+
20
+
Run `ng test frontend-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+
## Further help
23
+
24
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
0 commit comments