Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinnn/gulp-yo-yo
gulp plugin to transform yo-yo/bel/choo templates into pure and fast document calls
https://github.com/shinnn/gulp-yo-yo
compiler gulp gulp-plugin stream template yo-yo
Last synced: 21 days ago
JSON representation
gulp plugin to transform yo-yo/bel/choo templates into pure and fast document calls
- Host: GitHub
- URL: https://github.com/shinnn/gulp-yo-yo
- Owner: shinnn
- License: isc
- Created: 2016-09-09T12:46:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T12:30:24.000Z (about 7 years ago)
- Last Synced: 2024-11-15T21:35:23.118Z (about 1 month ago)
- Topics: compiler, gulp, gulp-plugin, stream, template, yo-yo
- Language: JavaScript
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-yo-yo
[![npm version](https://img.shields.io/npm/v/gulp-yo-yo.svg)](https://www.npmjs.com/package/gulp-yo-yo)
[![Build Status](https://travis-ci.org/shinnn/gulp-yo-yo.svg?branch=master)](https://travis-ci.org/shinnn/gulp-yo-yo)
[![Coverage Status](https://coveralls.io/repos/github/shinnn/gulp-yo-yo/badge.svg?branch=master)](https://coveralls.io/github/shinnn/gulp-yo-yo?branch=master)[gulp](https://github.com/gulpjs/gulp) plugin to transform [yo-yo](https://github.com/maxogden/yo-yo), [bel](https://github.com/shama/bel) or [choo](https://github.com/yoshuawuyts/choo) templates into pure and fast document calls
```javascript
const yo =require('yo-yo');
yo`Yo`;
```↓
```javascript
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](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).
```
npm install --save-dev gulp-yo-yo
```## API
```javascript
const yoYo = require('gulp-yo-yo');
```### yoYo()
Return: [stream.Transform](https://nodejs.org/api/stream.html#stream_class_stream_transform)
It transforms JavaScript files with [yo-yoify](https://github.com/shama/yo-yoify).
```javascript
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](./LICENSE) © 2017 Shinnosuke Watanabe