gulp-coffee npm package of node.js


Overview

This is a plugin for gulp which is used to convert .coffee files into .js files.

Code


													
var gulp = require('gulp');
var coffee = require('gulp-coffee');			
gulp.task('coffee' , function() {
	return gulp.src('source/*.coffee')
	.pipe(coffee())
	.pipe(gulp.dest('dest'));
});	
													
												

Run

  • Now run the snippet using the following command :
    													
    $ gulp coffee