script-builder

0.3.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i script-builder

      Weekly Downloads

      6

      Version

      0.3.3

      License

      none

      Last publish

      Collaborators

      • jussi-kalliokoski