Using gulp-coffee-includer you can finally include files with proper intendation.
Node 6.0 - 9.0
npm install gulp-coffee-includer --save-dev
const gulp = require('gulp');
const CI = require('gulp-coffee-includer');
const coffee = require('gulp-coffee');
gulp.task('build', function(){
gulp.src('main.coffee')
.pipe(CI)
.pipe(coffee())
.pipe(gulp.dest('build'))
});
main.coffee
foo = ->
bar()
#intend include statement according to current scope
#=include <path/to/file.coffee>
file.coffee
do awsome_things in coding unless
awsome_things is boring
output.coffee
foo = ->
bar()
#file.coffee contents is placed, where you need it!
do awsome_things in coding unless
awsome_things is boring