- PWA -
- Universal Rendering -
- i18n - TODO: move to library
- HMR -
- Proxy -
- Material - TODO: examples
- Flex Layout - TODO: examples
- NGXS - TODO: examples
- Budgets -
- Library - TODO: boilerplate for Library share between projects
ng new <workspace>
cd <workspace>
echo fix yarn warning
yarn install -D jasmine
echo fix rxjs until rxjs update
yarn install @types/node@~10.1.4
rm -rf e2e
rm -rf src
echo Please remove projects in angular.json
ng g application --routing --style=scss --prefix=<prefix 1> <project 1>
ng add @angular/pwa --project=<project>
ng g universal --client-project=<project 1> --appId=<appId 1>
yarn install @nguniversal/common @nguniversal/express-engine @nguniversal/module-map-ngfactory-loader
yarn install -D @types/express express
yarn install -D webpack webpack-cli serve
echo copy files from [Universal Starter](https://github.com/angular/universal-starter)
cp prerender.ts server.ts static.paths.ts webpack.server.config.js <workspace>/projects/<project>
echo fix relative path in these files
yarn add @ngx-translate/core @ngx-translate/http-loader
yarn add -D @biesbjerg/ngx-translate-extract
This tutorial explains how to use ngx-translate, ngx-translate-extract and BabelEdit to translate your Angular app.
ng g app-shell --client-project=<project> --universal-project
ng add @angular/material --project=<project>
This project was generated with Angular CLI version 6.0.8.
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.