zl程序教程

您现在的位置是:首页 >  前端

当前栏目

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

Angular for an application CI Integration
2023-09-14 09:00:48 时间
"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"
  },