This project was generated with Angular CLI version 6.0.0.
Run npm run mock:porxy
for a dev server. Navigate to http://localhost:4204/
. 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.
- npm uninstall -g @angular/cli
- npm install -g @angular/cli
- npm install @angular/cli
- ng update @angular/cli
- ng update @angular/core
- ng update @angular/material
- ng add rxjs-compat || npm install rxjs-compat --save
- 安装Cygwin https://cygwin.com/
- C:\cygwin64\home\UserName
- openssl genrsa -out key.pem 1024
- openssl req -new -key key.pem -out cert.csr
- openssl x509 -req -in cert.csr -signkey key.pem -out cert.pem
- http-server -S -C cert.pem -K key.pem
- "build": "ng build --prod",
- "http:server": "cd dist && http-server -p 9088",
- "ngr": "ngrok http 9088",
- mock:proxy
- build && express:data && cd dist/browser && http-server -p 8088 && ngrok http 8088
- 调整angular.json "outputPath": "dist/browser" 为 "outputPath": "dist"
- ServiceWorkerModule.register('/ng5-starter/ngsw-worker.js', {enabled: environment.production})
- build:ngh
- ngh
- https://wkylin.github.io/ng5-starter/