Browse Source

More cleanup of the scripts

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

+ 4 - 3
package.json

@@ -54,7 +54,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": "cd test && tsc --project src && webpack --config webpack.conf.js",
     "build:test": "cd test && tsc --project src && webpack --config webpack.conf.js",
-    "build": "npm run build:src && npm run build:test",
+    "build": "npm run build:src",
     "docs": "typedoc --mode modules --module commonjs --excludeNotExported --target es5 --moduleResolution node --out docs/ src",
     "docs": "typedoc --mode modules --module commonjs --excludeNotExported --target es5 --moduleResolution node --out docs/ src",
     "prepublish": "npm run build",
     "prepublish": "npm run build",
     "postinstall": "npm dedupe",
     "postinstall": "npm dedupe",
@@ -63,8 +63,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",