gulp-decomment
Advanced tools
Comparing version 0.1.3 to 0.2.0
'use strict'; | ||
var through = require('through2'); | ||
var decomment = require('decomment'); | ||
var PluginError = require('gulp-util').PluginError; | ||
const through = require('through2'); | ||
const decomment = require('decomment'); | ||
const PluginError = require('gulp-util').PluginError; | ||
@@ -14,3 +14,3 @@ function main(options, func) { | ||
if (file.isStream()) { | ||
cb(new PluginError("gulp-decomment", "Streaming not supported.")); | ||
cb(new PluginError('gulp-decomment', 'Streaming not supported.')); | ||
} | ||
@@ -17,0 +17,0 @@ file.contents = new Buffer(func(file.contents.toString(), options)); |
{ | ||
"name": "gulp-decomment", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Removes comments from JSON, JavaScript, CSS, HTML, etc.", | ||
@@ -8,3 +8,4 @@ "scripts": { | ||
"coverage": "istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test", | ||
"travis": "istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test --captureExceptions && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" | ||
"travis": "npm run lint && istanbul cover ./node_modules/jasmine-node/bin/jasmine-node test --captureExceptions && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", | ||
"lint": "./node_modules/.bin/eslint ./index.js ./test" | ||
}, | ||
@@ -14,12 +15,2 @@ "files": [ | ||
], | ||
"dependencies": { | ||
"decomment": "^0.8.2", | ||
"gulp-util": "3.0", | ||
"through2": "2.0" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "2.x", | ||
"istanbul": "0.4", | ||
"jasmine-node": "1.x" | ||
}, | ||
"homepage": "https://github.com/vitaly-t/gulp-decomment", | ||
@@ -46,3 +37,18 @@ "repository": { | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=4.0", | ||
"npm": ">=2.15" | ||
}, | ||
"dependencies": { | ||
"decomment": "~0.9.1", | ||
"gulp-util": "~3.0.8", | ||
"through2": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "~2.11.16", | ||
"eslint": "~4.7.0", | ||
"istanbul": "~0.4.5", | ||
"jasmine-node": "~1.14.5" | ||
} | ||
} |
3648
4
+ Addeddecomment@0.9.5(transitive)
- Removeddecomment@0.8.8(transitive)
Updateddecomment@~0.9.1
Updatedgulp-util@~3.0.8
Updatedthrough2@^2.0.3