gulp-eval
Require CommonJS modules, JSON files or files with JS-expression inside gulp tasks with ease.
gulp-eval
fills data
property of Vinyl objects.
Usage example:
var gulp = ;var concat = ;var gulpEval = ;var through = ; gulp;
Context
You can provide some like-a-global variables into gulp-eval
var gulpEval = ;var globalVar = 42;var transformStream = ; // globalVar will be in context of evaluated code