1.0.4 • Published 8 years ago

gulp-yield-prefix v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-yield-prefix

NPM version

A yield-prefix plugin for gulp 3

Usage

First, install gulp-yield-prefix as a development dependency:

npm install --save-dev gulp-yield-prefix

Then, add it to your gulpfile.js:

var yieldPrefix = require('gulp-yield-prefix');
gulp.task('yieldPrefix', function(){
return gulp.src('js/plot/*.js')
    .pipe(yieldPrefix(["ts", "tm"]))
    .pipe(gulp.dest('js/plot/dist/'));
});

Input

function hello(){
    tm(1);
    ts(2);
    a(3);
}

Output

function hello(){
    yield tm(1);
    yield ts(2);
    a(3);
}

API

md2json(targetFuncs)

targetFuncs

Type: Array

Function names to prefix "yield".

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago