Angular2如何编译

时间:2017-04-30 11:00:21

标签: angular tsc

您好我正在尝试编译我的项目。目前,它不会自动进行编译。我应该在package.json中添加什么才能成功编译?

我的package.json

{
  "name": "project1",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "ng": "ng",
    "start": "ng serve -H 0.0.0.0",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng serve",
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "pree2e": "webdriver-manager update --standalone false --gecko false",
    "e2e": "protractor"
  },

0 个答案:

没有答案