gulp-coffeescript
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "gulp-coffeescript", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Compile CoffeeScript 2 files", | ||
@@ -5,0 +5,0 @@ |
@@ -1,3 +0,1 @@ | ||
[![Build Status](https://secure.travis-ci.org/contra/gulp-coffee.png?branch=master)](https://travis-ci.org/contra/gulp-coffee) | ||
## Information | ||
@@ -7,7 +5,7 @@ | ||
<tr> | ||
<td>Package</td><td>gulp-coffee</td> | ||
<td>Package</td><td>gulp-coffeescript</td> | ||
</tr> | ||
<tr> | ||
<td>Description</td> | ||
<td>Compiles CoffeeScript</td> | ||
<td>Compiles CoffeeScript 2</td> | ||
</tr> | ||
@@ -23,7 +21,7 @@ <tr> | ||
```javascript | ||
var coffee = require('gulp-coffee'); | ||
var coffeescript = require('gulp-coffeescript'); | ||
gulp.task('coffee', function() { | ||
gulp.src('./src/*.coffee') | ||
.pipe(coffee({bare: true}).on('error', gutil.log)) | ||
.pipe(coffeescript({bare: true}).on('error', gutil.log)) | ||
.pipe(gulp.dest('./public/')); | ||
@@ -35,8 +33,8 @@ }); | ||
gulp-coffee will emit an error for cases such as invalid coffeescript syntax. If uncaught, the error will crash gulp. | ||
gulp-coffeescript will emit an error for cases such as invalid coffeescript syntax. If uncaught, the error will crash gulp. | ||
You will need to attach a listener (i.e. `.on('error')`) for the error event emitted by gulp-coffee: | ||
You will need to attach a listener (i.e. `.on('error')`) for the error event emitted by gulp-coffeescript: | ||
```javascript | ||
var coffeeStream = coffee({bare: true}); | ||
var coffeeStream = coffeescript({bare: true}); | ||
@@ -54,3 +52,3 @@ // Attach listener | ||
var coffeeStream = coffee({bare: true}); | ||
var coffeeStream = coffeescript({bare: true}); | ||
@@ -67,3 +65,3 @@ // Attach listener | ||
gulp.src('./src/*.coffee') | ||
.pipe(coffee({bare: true}).on('error', gutil.log)) | ||
.pipe(coffeescript({bare: true}).on('error', gutil.log)) | ||
// ... | ||
@@ -74,7 +72,7 @@ ``` | ||
The options object supports the same options as the standard CoffeeScript compiler | ||
The options object supports the same options as the standard CoffeeScript 2 compiler | ||
## Source maps | ||
gulp-coffee can be used in tandem with [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) to generate source maps for the coffee to javascript transition. You will need to initialize [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) prior to running the gulp-coffee compiler and write the source maps after. | ||
gulp-coffeescript can be used in tandem with [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) to generate source maps for the coffee to javascript transition. You will need to initialize [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) prior to running the gulp-coffeescript compiler and write the source maps after. | ||
@@ -86,3 +84,3 @@ ```javascript | ||
.pipe(sourcemaps.init()) | ||
.pipe(coffee()) | ||
.pipe(coffeescript()) | ||
.pipe(sourcemaps.write()) | ||
@@ -101,3 +99,3 @@ .pipe(gulp.dest('./dest/js')); | ||
.pipe(sourcemaps.init()) | ||
.pipe(coffee({ bare: true })).on('error', gutil.log) | ||
.pipe(coffeescript({ bare: true })).on('error', gutil.log) | ||
.pipe(sourcemaps.write('./maps')) | ||
@@ -113,4 +111,2 @@ .pipe(gulp.dest('./dest/js')); | ||
Copyright (c) 2015 Fractal <contact@wearefractal.com> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
@@ -117,0 +113,0 @@ a copy of this software and associated documentation files (the |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24822
121