A simple tool for setting script properties on packages.json for watching/building less and browserify code.
Instead of copypasting the code from the gist you can automaticly insert it into
package.jsonfile. You can also define the folders you want to use.
npm install -g mrun
To see usage run:
To add default scripts (with style folder
style, js code from
browser and storing the compiled files to
the binary without arguments:
npm install mrun
var mrun = require'mrun'iferr throw Errorerr;console.log"New packageJson";consoledirnewPackage;;mrunhandleRespone;// Or with options:mrunstyle: 'anotherStyleDirectory'browser: 'anotherBrowserDirectory'target: 'anotherTargetDirectory'handleRespone;
This is a really simple module and just ment to work as a convenient. All creative credit, and thought work belongs to substack and this gist.
I'm open for pull requests. I want to expand this module by adding tests to make it more robust and possibly expand the functionality.