Skip to content

Instantly share code, notes, and snippets.

@madbook
Created August 7, 2014 16:42
Show Gist options
  • Save madbook/0d1f2fb96fe00ef5ac97 to your computer and use it in GitHub Desktop.
Save madbook/0d1f2fb96fe00ef5ac97 to your computer and use it in GitHub Desktop.
coffescript gulpfile
gulp = require 'gulp'
browserify = require 'gulp-browserify'
react = require 'gulp-react'
gulp.task 'scripts', () ->
gulp.src 'src/jsx/app.jsx'
.pipe browserify()
.pipe react()
.pipe gulp.dest 'build/js'
gulp.task 'watch', () ->
gulp.watch paths.src.scripts, ['scripts']
require('coffee-script/register');
require('./gulpfile.coffee');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment