瀏覽代碼

remove npm script todos, add credits to npm build and test scripts.

Ben Houston 12 年之前
父節點
當前提交
194b5bc6e1
共有 4 個文件被更改,包括 19 次插入10 次删除
  1. 8 0
      utils/npm/build.js
  2. 11 0
      utils/npm/test.js
  3. 0 5
      utils/npm/three-math.package.json
  4. 0 5
      utils/npm/three.package.json

+ 8 - 0
utils/npm/build.js

@@ -1,3 +1,11 @@
+/**
+ * Builds node_modules three and three-math
+ *
+ * Expects a single command line argument that is the build version in the format 0.54.4-dev
+ *
+ * @author bhouston / http://exocortex.com
+ */
+
 var fs = require( "fs" );
 var cp = require('child_process');
 

+ 11 - 0
utils/npm/test.js

@@ -1,3 +1,14 @@
+/**
+ * For testing whether the node modules for three and three-math work properly.
+ *
+ * To test the node modules:
+ *  1. First build them, but don't submit them to npm, see README.md for instructions
+ *  2. Run "node test.js"
+ *  3. You should see a list of all of the types exposed by the two THREE modules.
+ *
+ * @author bhouston / http://exocortex.com
+ */
+
 var threemath = function () {
 	var THREE = require( "three-math" );
 

+ 0 - 5
utils/npm/three-math.package.json

@@ -33,11 +33,6 @@
         "url" : "git://github.com/mrdoob/three.js.git"
     },
 
-    "scripts" : {
-        "preinstall" : "ECHO todo",
-        "test" : "ECHO todo"
-    },
-
     "license" : {
         "type" : "The MIT License",
         "url" : "https://raw.github.com/mrdoob/three.js/master/LICENSE"

+ 0 - 5
utils/npm/three.package.json

@@ -33,11 +33,6 @@
         "url" : "git://github.com/mrdoob/three.js.git"
     },
 
-    "scripts" : {
-        "preinstall" : "ECHO todo",
-        "test" : "ECHO todo"
-    },
-
     "license" : {
         "type" : "The MIT License",
         "url" : "https://raw.github.com/mrdoob/three.js/master/LICENSE"