gulp plugin to transform yo-yo, bel or choo templates into pure and fast document calls
const yo =require('yo-yo');
yo`<div>Yo</div>`;
โ
const yo = require("yo-yo");
(function () {
var ac = require('/path/to/project/node_modules/yo-yoify/lib/appendChild.js')
var bel0 = document.createElement("div")
ac(bel0, ["Yo"])
return bel0
}())
npm install --save-dev gulp-yo-yo
const yoYo = require('gulp-yo-yo');
Return: stream.Transform
It transforms JavaScript files with yo-yoify.
const gulp = require('gulp');
const yoYo = require('gulp-yo-yo');
gulp.task('default', () => {
return gulp.src('src.js')
.pipe(yoYo())
.dest('dest');
});
ISC License ยฉ 2017 Shinnosuke Watanabe