Browse Source

More cleanup of the scripts

Steven Silvester 8 years ago
parent
commit
3a5d18dbf4
1 changed files with 4 additions and 3 deletions
  1. 4 3
      package.json

+ 4 - 3
package.json

@@ -47,7 +47,7 @@
     "build:examples": "node scripts/buildexamples.js",
     "build:examples": "node scripts/buildexamples.js",
     "build:src": "tsc --project src && node scripts/copycss.js",
     "build:src": "tsc --project src && node scripts/copycss.js",
     "build:test": "tsc --project test/src && webpack --config test/webpack.conf.js",
     "build:test": "tsc --project test/src && webpack --config test/webpack.conf.js",
-    "build": "npm run build:src && npm run build:test",
+    "build": "npm run build:src",
     "docs": "typedoc --mode file --module commonjs --excludeNotExported --target es5 --moduleResolution node --out docs/ src",
     "docs": "typedoc --mode file --module commonjs --excludeNotExported --target es5 --moduleResolution node --out docs/ src",
     "postinstall": "npm dedupe",
     "postinstall": "npm dedupe",
     "prepublish": "npm run build",
     "prepublish": "npm run build",
@@ -56,8 +56,9 @@
     "test:firefox": "karma start --browsers=Firefox test/karma.conf.js",
     "test:firefox": "karma start --browsers=Firefox test/karma.conf.js",
     "test:ie": "karma start --browsers=IE test/karma.conf.js",
     "test:ie": "karma start --browsers=IE test/karma.conf.js",
     "test:debug": "karma start --browsers=Chrome --singleRun=false --debug=true test/karma.conf.js",
     "test:debug": "karma start --browsers=Chrome --singleRun=false --debug=true test/karma.conf.js",
-    "test": "npm run test:firefox",
-    "watch": "watch 'npm run build' src"
+    "test": "npm run build:test && npm run test:firefox",
+    "watch": "watch 'npm run build' src --wait 10",
+    "watch:test": "watch 'npm run build && npm test' src src/test --wait 10"
   },
   },
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",