From 194b5bc6e10ba32e25df71d2ec05d274024a3e84 Mon Sep 17 00:00:00 2001 From: Ben Houston Date: Wed, 12 Dec 2012 15:50:59 -0500 Subject: [PATCH] remove npm script todos, add credits to npm build and test scripts. --- utils/npm/build.js | 8 ++++++++ utils/npm/test.js | 11 +++++++++++ utils/npm/three-math.package.json | 5 ----- utils/npm/three.package.json | 5 ----- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/utils/npm/build.js b/utils/npm/build.js index 3db19e57c8..e9b9b6e2ee 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 45f9ab7b7b..25d73321c4 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 abdcb04222..f1e32d42c5 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 9b7eb030b5..82198ccaa1 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" -- GitLab