Makes it easier to manage bigger script projects.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
package.json
readme.md
script-builder.js

readme.md

script-builder

Script builder is a tool for creating generated scripts. It's useful especially for large libraries, where you have to change many things when actually changing one thing, like a version number.

Usage

var builder = new require('script-builder').Builder();

builder.run("code here");

Generator instructions can be inserted like this:

//#define XX

doSomething();

/*#ifdef XX */

doSomethingElse();

/*#js
return 1+1; // Prints out 2 into the the script
*/

//#else

waitWhat();

//#endif

No proper documentation yet, sorry, if you're interested, just drop me a message on GitHub.