Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mjolnir

0.0.1 • Public • Published

only required for the build machine.

some nice read about nodejs:

http://jherdman.github.com/2010-04-05/understanding-nodejs-require.html

  1. install node.js for mac: http://howtonode.org/how-to-install-nodejs for linux:

  2. install npm curl http://npmjs.org/install.sh | sh # make sure install npm of 1.1.16 above. # if you have older version of npm need sudo npm uninstall npm -g Also need following global npm package: npm install -g npm npm install -g node-gyp

  3. install GraphicsMagick for Mac, use homebrew: sudo brew install GraphicsMagick if use MacPort: sudo port clean graphicsmagick && sudo port -b install GraphicsMagick for linux: sudo apt-get install GraphicsMagick graphicsmagick-imagemagick-compat

  4. npm shrinkwrap (no need to do npm install anymore)

  5. start harness server: node harness/start.js

  6. will need to write init.d to shart and shut down server. TODO: check http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever

for debug individual js class

run node interactive shell:

$node

dev = require('./script/dev_env.js')

then load invidual module: for instance utils.js:

dev.r('src/core/utils.js')

test frame work: http://visionmedia.github.com/mocha/

mock: https://github.com/felixge/node-gently

coverage: http://siliconforks.com/jscoverage/

http://www.seejohncode.com/2012/03/13/setting-up-mocha-jscoverage/

to install jscoverage, you can try with brew first:

sudo brew install jscoverage

if this does not work for you, need manual build:

TODO

if size is a real concern, we can explore https://github.com/zgrossbart/jslim

which will use google closure to compile the js code and remove unused code.

Keywords

none

install

npm i mjolnir

Downloadsweekly downloads

4

version

0.0.1

license

none

last publish

collaborators

  • avatar