diff --git a/utils/npm/build.js b/utils/npm/build.js index 3db19e57c88e95127707b75f66ccb026f9d69685..e9b9b6e2ee83e304af20c7f2903abfbfe3e49060 100644 --- a/utils/npm/build.js +++ b/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'); diff --git a/utils/npm/test.js b/utils/npm/test.js index 45f9ab7b7b8771921b1e1b156659658dca74a071..25d73321c45f02fab43e66eb158831315880aa09 100644 --- a/utils/npm/test.js +++ b/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" ); diff --git a/utils/npm/three-math.package.json b/utils/npm/three-math.package.json index abdcb04222ed1c9bca5d82a4601881cb7e13116e..f1e32d42c5e1d21b6694c616de1eaf0137ade1db 100644 --- a/utils/npm/three-math.package.json +++ b/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" diff --git a/utils/npm/three.package.json b/utils/npm/three.package.json index 9b7eb030b545e53ac8dbd6431d40f50f659a3561..82198ccaa1f740c35d8c62ded50c166e0bad062c 100644 --- a/utils/npm/three.package.json +++ b/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"