Skip to content

Instantly share code, notes, and snippets.

@funkytek
Forked from yocontra/gulp.coffee
Last active December 19, 2015 08:19
Show Gist options
  • Save funkytek/5924400 to your computer and use it in GitHub Desktop.
Save funkytek/5924400 to your computer and use it in GitHub Desktop.
end user api on top of streams?
groan = require 'groan'
clean = require 'groan-clean'
jade = require 'groan-jade'
coffee = require 'groan-coffee'
minify = require 'groan-minify'
# wipe the public folder
wipe: [ folder('./public'), clean ]
# compile, minify, and copy templates
templates: [
folder("./client/templates"),
jade,
minify,
folder("./public/templates"),
]
# compile, minify, and copy all coffee-script
coffee: [
folder( ("./client/js"), {ignore:["vendor"]} ),
coffee,
minify,
folder("./public/js")
]
# copy static files
static:
[
folder("./client/img"),
folder("./public/img")
],
[
folder("./client/css"),
folder("./public/css")
],
[
folder("./client"), {filter:"isFile"}),
folder("./public")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment