Created
July 7, 2015 21:11
-
-
Save beinan/f054739300584e085e0a to your computer and use it in GitHub Desktop.
Gulp file for express app with coffeescript, reactjs and browserify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source = require 'vinyl-source-stream' | |
| gulp = require 'gulp' | |
| gutil = require 'gulp-util' | |
| browserify = require 'gulp-browserify' | |
| coffee_reactify = require 'coffee-reactify' | |
| coffeeify = require 'coffeeify' | |
| notify = require 'gulp-notify' | |
| rename = require('gulp-rename') | |
| nodemon = require("gulp-nodemon") | |
| net = require("net") | |
| gulp.task "coffee", -> | |
| gulp.src('client/app.coffee', { read: false }) | |
| .pipe(browserify( | |
| transform: ['coffee-reactify'], | |
| extensions: ['.coffee'] | |
| )) | |
| .pipe(rename('application.js')) | |
| .pipe(gulp.dest('./public/js')) | |
| gulp.task "watch", -> | |
| gulp.watch(['client/**/*.coffee'], ['coffee']); | |
| nodemon | |
| script: "./app" | |
| ext: "js" | |
| gulp.task('default', ['coffee', 'watch']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('coffee-script'); | |
| 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