0.0.4 • Published 10 years ago

gulp-mixotroph v0.0.4

Weekly downloads
1
License
Apache2
Repository
github
Last release
10 years ago

gulp-mixotroph

bog-simple language-agnostic preprocessing.

usage:

example srcfile

   function _add5(in) {
      //=T= console.log("in is " + in.toString();
      return in+5;
   }

 function(stdlib, ffi, heap) {
   "use asm"
   %MATH_MIXIN%

tooling/snippets/MATH_MIXIN.js

   var imul = (stdlib.Math.imul);
   var sqrt = (stdlib.Math.sqrt);

gulpfile.js

var mixotroph = require("gulp-mixotroph");

...

.pipe(mixotroph({mode: "T"; snippetPath: "tooling/snippets/"})

output

   function _add5(in) {
      console.log("in is " + in.toString();
      return in+5;
   }

 function(stdlib, ffi, heap) {
   "use asm"
   var imul = (stdlib.Math.imul);
   var sqrt = (stdlib.Math.sqrt);
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago