gulp-livescript
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -0,1 +1,4 @@ | ||
## 1.0.0 (2014-06-13) | ||
<a name="0.3.0"></a> | ||
@@ -2,0 +5,0 @@ ## 0.3.0 (2014-05-25) |
25
index.js
@@ -1,18 +0,19 @@ | ||
var through, LiveScript, gutil; | ||
through = require('through2'); | ||
var through2, LiveScript, gutil, PluginError; | ||
through2 = require('through2'); | ||
LiveScript = require('LiveScript'); | ||
gutil = require('gulp-util'); | ||
PluginError = gutil.PluginError; | ||
module.exports = function(options){ | ||
options || (options = {}); | ||
function modifyLS(file, enc, cb){ | ||
var ref$, e; | ||
function fatalError(it){ | ||
cb( | ||
new gutil.PluginError('gulp-livescript', it)); | ||
function modifyLS(file, enc, done){ | ||
var ref$, e, this$ = this; | ||
function emitError(it){ | ||
this$.emit('error', new PluginError('gulp-livescript', it)); | ||
done(); | ||
} | ||
if (file.isNull()) { | ||
return cb(); | ||
return done(); | ||
} | ||
if (file.isStream()) { | ||
return fatalError('Streaming not supported'); | ||
return emitError('Streaming not supported'); | ||
} | ||
@@ -24,8 +25,8 @@ try { | ||
e = e$; | ||
return cb(new Error(e)); | ||
return emitError(e); | ||
} | ||
this.push(file); | ||
cb(); | ||
done(); | ||
} | ||
return through.obj(modifyLS); | ||
return through2.obj(modifyLS); | ||
}; | ||
@@ -32,0 +33,0 @@ function import$(obj, src){ |
{ | ||
"name": "gulp-livescript", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "Compile LiveScript to JavaScript for Gulp", | ||
@@ -32,13 +32,13 @@ "main": "index.js", | ||
"dependencies": { | ||
"gulp-util": "*", | ||
"LiveScript": "^1.2.0", | ||
"gulp-util": "*", | ||
"through2": "^0.4.2" | ||
"through2": "^0.5.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^1.17.1", | ||
"should": "^3.1.2", | ||
"should": "^4.0.4", | ||
"gulp": "^3.5.2", | ||
"gulp-bump": "^0.1.4", | ||
"gulp-conventional-changelog": "^0.1.1" | ||
"gulp-bump": "^0.1.5", | ||
"gulp-conventional-changelog": "^0.1.2" | ||
} | ||
} |
@@ -1,11 +0,5 @@ | ||
# gulp-livescript | ||
> Distributed via | ||
[![Version ](https://img.shields.io/npm/v/gulp-livescript.svg) ](https://www.npmjs.org/package/gulp-livescript) | ||
# gulp-livescript [![Travis CI][travis-image]][travis-url] [![Quality][codeclimate-image]][codeclimate-url] [![Coverage][coveralls-image]][coveralls-url] [![Dependencies][gemnasium-image]][gemnasium-url] | ||
> Compile LiveScript to JavaScript for Gulp | ||
[![Travis CI ](https://img.shields.io/travis/tomchentw/gulp-livescript/master.svg) ](https://travis-ci.org/tomchentw/gulp-livescript) | ||
[![Quality ](https://img.shields.io/codeclimate/github/tomchentw/gulp-livescript.svg) ](https://codeclimate.com/github/tomchentw/gulp-livescript) | ||
[![Dependencies](https://img.shields.io/gemnasium/tomchentw/gulp-livescript.svg) ](https://gemnasium.com/tomchentw/gulp-livescript) | ||
[![Version][npm-image]][npm-url] | ||
@@ -77,3 +71,3 @@ | ||
[![devDependency Status](https://david-dm.org/tomchentw/gulp-livescript/dev-status.svg?theme=shields.io)](https://david-dm.org/tomchentw/gulp-livescript#info=devDependencies) | ||
[![devDependency Status][david-dm-image]][david-dm-url] | ||
@@ -90,1 +84,16 @@ 1. Fork it | ||
* [`gulp-coffee` by @wearefractal](https://github.com/wearefractal/gulp-coffee) | ||
[npm-image]: https://img.shields.io/npm/v/gulp-livescript.svg | ||
[npm-url]: https://www.npmjs.org/package/gulp-livescript | ||
[travis-image]: https://travis-ci.org/tomchentw/gulp-livescript.svg?branch=master | ||
[travis-url]: https://travis-ci.org/tomchentw/gulp-livescript | ||
[codeclimate-image]: https://img.shields.io/codeclimate/github/tomchentw/gulp-livescript.svg | ||
[codeclimate-url]: https://codeclimate.com/github/tomchentw/gulp-livescript | ||
[coveralls-image]: https://img.shields.io/coveralls/tomchentw/gulp-livescript.svg | ||
[coveralls-url]: https://coveralls.io/r/tomchentw/gulp-livescript | ||
[gemnasium-image]: https://gemnasium.com/tomchentw/gulp-livescript.svg | ||
[gemnasium-url]: https://gemnasium.com/tomchentw/gulp-livescript | ||
[david-dm-image]: https://david-dm.org/tomchentw/gulp-livescript/dev-status.svg?theme=shields.io | ||
[david-dm-url]: https://david-dm.org/tomchentw/gulp-livescript#info=devDependencies |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
35
0
98
9889
6
+ Addedthrough2@0.5.1(transitive)
+ Addedxtend@3.0.0(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedthrough2@0.4.2(transitive)
- Removedxtend@2.1.2(transitive)
Updatedthrough2@^0.5.1