Gulp plugin based on coffeescript-concat
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-coffeescript-concat
var coffeeConcat = require('gulp-coffeescript-concat');
gulp.task('coffee', function() {
return gulp.src(['coffee/*.coffee', 'coffee/**/*.coffee'])
.pipe(coffeeConcat('all.coffee'))
.pipe(gulp.dest('dist'));
});
This will concat coffeescript files in right order for resolving class dependencies. For more information about dependency resolving you can get at coffeescript-concat page.
MIT, see LICENCE file