[Angular] Preparing an Angular Application for Continuous Integration (CI)

"scripts": {
    "ng": "ng",
    "start": "ng serve  --proxy-config ./proxy.json",
    "server": "ts-node -P ./server/server.tsconfig.json ./server/server.ts",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "cypress:open": "cypress open",
    "cypress:run": "cypress run",
    "build:prod": "ng build --prod",
    "start:prod": "http-server ./dist -a localhost -p 4200",
    // run in order build:prod first, then start:prod
    "build-and-start:prod": "run-s build:prod start:prod",
    // wait build-and-start:prod finish at localhost:4200, then run cypress:run
    "e2e": "start-server-and-test build-and-start:prod http://localhost:4200 cypress:run"
  },

 

posted @ 2020-02-07 04:00  Zhentiw  阅读(130)  评论(0编辑  收藏  举报