Building with Rollup and Closure Compiler using Angular Architect.
This repo accompanies the blog series Build Angular Like An Architect on dev.to.
This project allows you to do the following:
architect build_repo:rollupbuilds workspace with Rollup.
architect build_repo:closure_buildbuilds workspace with Closure Compiler.
In the root directory run yarn install to get started.
Install the latest architect CLI.
npm i -g @angular-devkit/core@next @angular-devkit/architect@next @angular-devkit/architect-cli@next
Builders are coded here.
In this directory run yarn install to get started.
yarn build
triggers a build.
yarn watch
runs typescript in --watch mode.
In the main repository root directory, run the 'rollup' or 'closure' build with Architect CLI.
architect build_repo:closure
This project was generated with Angular CLI version 7.1.4.
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.
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.
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.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.