Skip to content

Instantly share code, notes, and snippets.

@ikr7
Last active August 29, 2015 14:04
Show Gist options
  • Save ikr7/84266de6affa054ec19e to your computer and use it in GitHub Desktop.
Save ikr7/84266de6affa054ec19e to your computer and use it in GitHub Desktop.
gulpfile.ls
.
├── src
│ ├── ls
│ └── jade
├── gulpfile.ls
├── package.json
└── build
├── js
└── html
require! \gulp
require! plumber: \gulp-plumber
require! lsc: \gulp-livescript
require! jade: \gulp-jade
gulp.task \lsc, ->
gulp
.src \./src/ls/*.ls
.pipe plumber!
.pipe lsc!
.pipe gulp.dest \./build/js/
gulp.task \jade, ->
gulp
.src \./src/jade/*.jade
.pipe plumber!
.pipe jade pretty: true
.pipe gulp.dest \./build/html/
gulp.task \build, [\lsc, \jade]
gulp.task \watch, [\build], ->
gulp
..watch \./src/ls/*.ls, [\lsc]
..watch \./src/jade/*.jade, [\jade]
gulp.task \default, [\build]
@ikr7
Copy link
Author

ikr7 commented Aug 6, 2014

メモ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment