Skip to content

Instantly share code, notes, and snippets.

@xixixao
Created May 1, 2014 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xixixao/11444479 to your computer and use it in GitHub Desktop.
Save xixixao/11444479 to your computer and use it in GitHub Desktop.
{task, watch, serve} = require 'gump'
bower = require 'gulp-bower-files'
flatten = require 'gulp-flatten'
stylus = require 'gulp-stylus'
jade = require 'gulp-jade'
clean = require 'gulp-clean'
task 'default',
'clean'
-> watch 'sources'
-> serve 'bin'
task 'deploy',
'clean'
'min'
pipe 'min',
-> combine 'css', 'templates'
'deploy'
pipe 'min-templates',
-> 'templates'
-> minifyHtml()
pipe 'min-css',
-> 'css'
-> minifyCss()
pipe 'sources'
-> combine 'css', 'templates'
'bin'
pipe 'css',
'src': '/css/**/*.styl'
-> stylus set: ['compress']
pipe 'templates',
'src' :'/**/*.jade'
-> jade pretty: yes
pipe 'clean',
'bin', read: no
-> clean()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment