浏览代码

Update package json to builds/run unit tests

Tristan VALCKE 7 年之前
父节点
当前提交
aafe98cf15
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      package.json

+ 2 - 2
package.json

@@ -28,13 +28,13 @@
   },
   "scripts": {
     "build": "rollup -c",
-    "build-test": "rollup -c test/rollup.unit.config.js",
+    "build-test": "rollup -c test/rollup.unit.config.js -w",
     "build-uglify": "rollup -c && uglifyjs build/three.js -cm --preamble \"// threejs.org/license\" > build/three.min.js",
     "build-closure": "rollup -c && java -jar node_modules/google-closure-compiler/compiler.jar --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs utils/build/externs.js --language_in=ECMASCRIPT5_STRICT --js build/three.js --js_output_file build/three.min.js",
     "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"serve --port 8080\"",
     "start": "npm run dev",
     "lint": "eslint src",
-    "test": "rollup -c test/rollup.unit.config.js -w",
+    "test": "qunit test/unit/three.source.unit.js",
     "editor": "electron ./editor/main.js"
   },
   "keywords": [