nx-webcomponent
Nx plugin to create angular web components
Installing
just run this in a nx workspace
npm install --save-dev @codeblaze/nx-webcomponent
dependencies (will be installed automaically)
-
@nrwl/angular
- for creating angular projects using nx -
@angular/elements
- should be of the same version as angular that you are using -
ngx-build-plus
- build tool extension for angular cli
Getting Started
nx console is recommend for vs code
-
nx g @codeblaze/nx-webcomponent:application ${project-name}
creates a application -
nx serve ${project-name}
serves the application
Capabilities
-
Generators
- Application - creates a angular elements application configured with ngx-build-plus
-
Executors
- Serve - builds and serves a angular web component project
More Info
- for build and webpack config take a look at ngx-build-plus