gulp-yo-yo

gulp plugin to transform yo-yo/bel/choo templates into pure and fast document calls


Keywords
gulpplugin, gulp, choo, yo-yo, yo-yoify, bel, transform, transformer, template, contents, compile, compiler, purify, gulp-plugin, stream
License
ISC
Install
npm install gulp-yo-yo@0.4.0

Documentation

gulp-yo-yo

npm version Build Status Coverage Status

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
}())

Installation

Use npm.

npm install --save-dev gulp-yo-yo

API

const yoYo = require('gulp-yo-yo');

yoYo()

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');
});

License

ISC License © 2017 Shinnosuke Watanabe