Skip to content

Instantly share code, notes, and snippets.

@parris
Created August 4, 2014 05:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parris/95d8c9e1dd563bd06103 to your computer and use it in GitHub Desktop.
Save parris/95d8c9e1dd563bd06103 to your computer and use it in GitHub Desktop.
Gulp using coffee-reactify
gulp = require 'gulp'
browserify = require 'gulp-browserify'
rename = require 'gulp-rename'
gulp.task 'js', ->
gulp.src('./public/src/app.coffee', { read: false })
.pipe(browserify({
transform: ['coffee-reactify'],
extensions: ['.coffee'],
}))
.pipe(rename('app.js'))
.pipe(gulp.dest('./public/dist/'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment