gulp.js チートシート


[gulp](https://github.com/gulpjs/gulp)のチートシート「[gulp-cheatsheet](https://github.com/osscafe/gulp-cheatsheet)」を描いたので、READMEの日本語版をQiitaに置いておきます。

修正コミットなど歓迎です! [GitHubのリポジトリ](https://github.com/osscafe/gulp-cheatsheet)へぜひ。その他、お気づきの点(タイポとか)あれば、[Issues](https://github.com/osscafe/gulp-cheatsheet/issues)に日本語で書き込んでくださいませ。[Sketch.app](http://bohemiancoding.com/sketch/)のファイルも[こちら](https://github.com/osscafe/gulp-cheatsheet/tree/master/src)に置いていますので、ご参考まで。

![ja-js-p1](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/ja-js-p1.png)

## PDFダウンロードはこちら

- 日本語版
	- **JavaScript** [p1.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/ja-js-p1.pdf) / [p2.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/ja-js-p2.pdf)
- 英語版
	- **JavaScript**: [p1.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-js-p1.pdf) / [p2.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-js-p2.pdf)
	- **CoffeeScript**: [p1.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-coffee-p1.pdf) / [p2.pdf](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-coffee-p2.pdf)


## 使い方

- PDFを印刷
- あなたのPCの横の壁に貼ってください :)


## バリエーション

|  | p.1 | p.2 |
|----|:--:|:--:|
| English /<br>JavaScript | [![en-js-p1](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/en-js-p1.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-js-p1.pdf) | [![en-js-p2](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/en-js-p2.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-js-p2.pdf) |
| English /<br>CoffeeScript | [![en-coffee-p1](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/en-coffee-p1.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-coffee-p1.pdf) | [![en-coffee-p2](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/en-coffee-p2.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/en-coffee-p2.pdf) |
| 日本語 /<br>JavaScript | [![ja-js-p1](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/ja-js-p1.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/ja-js-p1.pdf) | [![ja-js-p2](https://github.com/osscafe/gulp-cheatsheet/raw/master/images/ja-js-p2.png)](https://github.com/osscafe/gulp-cheetsheet/raw/master/dist/ja-js-p2.pdf) |


## チートシートで使われているサンプルコード

### コマンド

- gulpをグローバルにインストール:
	```$ npm install -g gulp```
- gulpをローカルにインストール:
	```$ npm install --save-dev gulp```
	```$ npm install --save-dev gulp-other-plugins```
- タスクを実行:
	```$ gulp task_name```
- 複数タスクを実行:
	```$ gulp task_name other_task```


### JavaScript: gulpfile.js

- [Single Dest & Watch](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/watch.js)
- [Multi Dest](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/multi-dest.js)
- [Incremental Rebuilding](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/incremental-rebuilding.js)
- [Only Changed](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/only-changed.js)
- [Async Streams](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/async-streams.js)
- [Serial Join](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/serial-join.js)
- [Stream Array](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/js/stream-array.js)

### CoffeeScript: gulpfile.coffee

- [Single Dest & Watch](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/watch.coffee)
- [Multi Dest](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/multi-dest.coffee)
- [Incremental Rebuilding](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/incremental-rebuilding.coffee)
- [Only Changed](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/only-changed.coffee)
- [Async Streams](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/async-streams.coffee)
- [Serial Join](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/serial-join.coffee)
- [Stream Array](https://github.com/osscafe/gulp-cheatsheet/blob/master/examples/coffee/stream-array.coffee)


## ライセンス

- Made in [OpenSource Cafe](http://www.osscafe.net/en/)
- By [Tsutomu Kawamura](https://github.com/cognitom)
- [CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)


## こちらもどうぞ

- [gulp-cheatsheet](https://github.com/osscafe/gulp-cheatsheet)
- [gulp documentation](https://github.com/gulpjs/gulp/tree/master/docs)
- [Official Recipes](https://github.com/gulpjs/gulp/tree/master/docs/recipes)