nx/packages/angular/README.md
2020-06-14 23:33:05 -04:00

45 lines
1.3 KiB
Markdown

<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600"></p>
{{links}}
<hr>
# Angular Plugin for Nx
{{what-is-nx}}
{{getting-started}}
```
? Workspace name (e.g., org name) happyorg
? What to create in the new workspace angular [a workspace with a single Angular application]
? Application name myapp
? Default stylesheet format CSS
```
## Serving Application
- Run `nx serve myapp` to serve the newly generated application!
- Run `nx test myapp` to test it.
- Run `nx e2e myapp-e2e` to run e2e tests for it.
You can also use `ng` instead of `nx:
- Run `ng serve myapp` to serve the newly generated application!
- Run `ng test myapp` to test it.
- Run `ng e2e myapp-e2e` to run e2e tests for it.
## Adding Angular Plugin Into an Existing Workspace
You can always add the Angular plugin to an existing workspace by installing `@nrwl/angular` and then generating an Angular application, as follows: `ng g @nrwl/angular:app myapp`.
## Quick Start Videos
<a href="https://www.youtube.com/watch?v=mVKMse-gFBI" target="_blank">
<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-angular-video.png" width="350"></p>
</a>
- [Nx Dev Tools for Monorepos, In-Depth Explainer](https://youtu.be/h5FIGDn5YM0)
{{resources}}