Gulp task for browserify with coffee-script.
$ npm install gulp-coffeeify --save-dev
var gulp = require('gulp');
var coffeeify = require('gulp-coffeeify');
// Basic usage
gulp.task('scripts', function() {
gulp.src('src/coffee/**/*.coffee')
.pipe(coffeeify())
.pipe(gulp.dest('./build/js'));
});
var gulp = require('gulp');
var cofeeify = require('gulp-coffeeify');
gulp.task('scripts', function() {
gulp.src('src/coffee/**/*.coffee')
.pipe(coffeeify({
aliases: [
{
cwd: 'src/coffee/app',
base: 'app'
}
]
}))
.pipe(gulp.dest('./build/js'));
});
You can use src/coffee/app/views/View.coffee
as var View = require('app/views/View');
Copyright (c) 2014 Yusuke Narita Licensed under the MIT license.