Skip to content

Using gulp-coffee-includer you can finally include files with proper intendation.

License

Notifications You must be signed in to change notification settings

Zydnar/gulp-coffee-includer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-coffee-includer

Using gulp-coffee-includer you can finally include files with proper intendation.

Current support

Node 6.0 - 9.0

Installation

npm install gulp-coffee-includer --save-dev

Usage

gulpfile.js

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'))
});

Include statements

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

Looking for CLI version?

License

MIT

About

Using gulp-coffee-includer you can finally include files with proper intendation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published