olivoil/NodeBDD — Issue #4: Makefile -> scripts section of npm, mocha.opts
Author: mwawrusch
Created: 2011-12-30 14:31:01+00:00
State: open

NPM supports the run-script command, where you can perform scripts specified in the scripts section, like:

"scripts": {
"test":"node_modules/.bin/mocha"
}

This is imho a better way than Makefiles, especially when more tools make full use of npm (like npm-police is doing right now for verifying versions).