Last active
January 3, 2016 22:59
-
-
Save mCzolko/8531625 to your computer and use it in GitHub Desktop.
If you want to use CoffeeScript for Gulp config instead of JS.
This file contains 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 some necessary modules. | |
require('coffee-script'); | |
var gutil = require('gulp-util'); | |
// Specify, where is your Gulp config in CoffeeScript placed. | |
var gulpfile = 'Gulpfile.coffee'; | |
// Print notification into the console. | |
gutil.log('Using file', gutil.colors.magenta(gulpfile)); | |
// Execute CoffeeScript config. | |
require('./' + gulpfile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/gulpjs/gulp/blob/master/docs/recipes/using-coffee-script-for-gulpfile.md