JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q33202F
  • License ISC

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

Package Exports

  • gulp-yo-yo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-yo-yo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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