浏览代码

Fixes from Windows environment using Visual Studio Code.

Joe Hawkins 8 年之前
父节点
当前提交
062dd4d038
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 7 0
      src/main/angular/README.md
  2. 2 1
      src/main/angular/package.json

+ 7 - 0
src/main/angular/README.md

@@ -1,3 +1,5 @@
+## Set up
+
 ### Build
 Run the following commands
 1. `npm i`
@@ -19,3 +21,8 @@ the dist/ folder from http://localhost:8080/
 any file changes, rebuild your code, and run unit tests
 * `npm run test-single-run` Builds the code and runs all unit tests a
 one time
+
+## Known Issues
+
+### Visual Studio Code
+* Jasmine global properties not recognized in Typescript. https://github.com/Microsoft/TypeScript/issues/11620

+ 2 - 1
src/main/angular/package.json

@@ -9,7 +9,7 @@
   },
   "scripts": {
     "build": "node_modules/webpack/bin/webpack.js --config=webpack.build.js --NODE_ENV=production",
-    "clean": "rm -rf dist",
+    "clean": "node_modules/rimraf/bin.js dist/",
     "test": "node_modules/karma/bin/karma start --NODE_ENV=test",
     "test-single-run": "node_modules/karma/bin/karma start --NODE_ENV=test --singleRun --no-auto-watch",
     "start": "node_modules/webpack-dev-server/bin/webpack-dev-server.js --config=webpack.dev.js --NODE_ENV=dev"
@@ -41,6 +41,7 @@
     "node-sass": "3.10.1",
     "phantomjs": "2.1.7",
     "phantomjs-prebuilt": "2.1.13",
+    "rimraf": "2.5.4",
     "sass-loader": "4.0.2",
     "style-loader": "0.13.1",
     "ts-loader": "0.9.1",