To build the npm modules:
- install nodejs.
- install npm (if it was not installed with nodejs)
- install npm module dependencies (see utils/build/package.json)
- determine the version of THREE that you want to publish (usually it is specified in src/Three.js as the REVISION)
- increment the fix number above what was previously published if you are re-publishing an existing Three.js version.
- add "-dev" to the version number if this is a development branch.
- run the follow to build both the three and three-math node modules
- npm publish node_module/three
- npm publish node_module/three-math