Skip to content

Commit

Permalink
remove useless event-stream dep. switch to graceful-fs. closes gulpjs…
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Jan 9, 2014
1 parent 0135244 commit cde327a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/createInputStream/bufferFile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var fs = require('fs');
var fs = require('graceful-fs');

module.exports = function (file, cb) {
fs.readFile(file.path, function (err, data) {
Expand Down
6 changes: 3 additions & 3 deletions lib/createInputStream/getContents.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var es = require('event-stream');
var fs = require('fs');
var map = require('map-stream');
var fs = require('graceful-fs');

var readDir = require('./readDir');
var bufferFile = require('./bufferFile');
var streamFile = require('./streamFile');

module.exports = function(opt) {
return es.map(function (file, cb) {
return map(function (file, cb) {
// don't read anything - just pass names
if (!opt.read) {
return cb(null, file);
Expand Down
6 changes: 3 additions & 3 deletions lib/createInputStream/getStats.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var es = require('event-stream');
var fs = require('fs');
var map = require('map-stream');
var fs = require('graceful-fs');

module.exports = function(opt) {
return es.map(function (file, cb) {
return map(function (file, cb) {
fs.stat(file.path, function (err, stat) {
if (err) return cb(err);
file.stat = stat;
Expand Down
5 changes: 2 additions & 3 deletions lib/createInputStream/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

var es = require('event-stream');
var map = require('map-stream');
var gs = require('glob-stream');

var File = require('gulp-util').File;
Expand All @@ -12,7 +11,7 @@ module.exports = function(glob, opt) {
if (typeof opt.buffer !== 'boolean') opt.buffer = true;

var globStream = gs.create(glob, opt);
var formatStream = es.map(function(file, cb){
var formatStream = map(function(file, cb){
cb(null, new File(file));
});

Expand Down
2 changes: 1 addition & 1 deletion lib/createInputStream/streamFile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var fs = require('fs');
var fs = require('graceful-fs');
var semver = require('semver');

module.exports = function (file, cb) {
Expand Down
5 changes: 2 additions & 3 deletions lib/createOutputStream/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

var es = require('event-stream');
var map = require('map-stream');
var path = require('path');
var mkdirp = require('mkdirp');
var writeFile = require('./writeFile');
Expand All @@ -24,6 +23,6 @@ module.exports = function(folder, opt) {
}
});
}
var stream = es.map(saveFile);
var stream = map(saveFile);
return stream;
};
2 changes: 1 addition & 1 deletion lib/createOutputStream/writeFile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var fs = require('fs');
var fs = require('graceful-fs');
var semver = require('semver');
var gutil = require('gulp-util');

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gulp",
"description": "The streaming build system",
"version": "3.2.4",
"version": "3.2.5",
"homepage": "http://github.com/wearefractal/gulp",
"repository": "git://github.com/wearefractal/gulp.git",
"author": "Fractal <[email protected]> (http://wearefractal.com/)",
Expand All @@ -15,7 +15,6 @@
"gulp": "./bin/gulp.js"
},
"dependencies": {
"event-stream": "~3.0.20",
"glob-stream": "~3.1.2",
"mkdirp": "~0.3.5",
"optimist": "~0.6.0",
Expand All @@ -25,7 +24,10 @@
"semver": "~2.2.1",
"findup-sync": "~0.1.2",
"pretty-hrtime": "~0.2.0",
"glob-watcher": "0.0.1"
"glob-watcher": "0.0.1",
"graceful-fs": "~2.0.1",
"through": "~2.3.4",
"map-stream": "0.0.4"
},
"devDependencies": {
"mocha": "*",
Expand Down
2 changes: 1 addition & 1 deletion test/dest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var gulp = require('../');
var should = require('should');
var join = require('path').join;
var rimraf = require('rimraf');
var fs = require('fs');
var fs = require('graceful-fs');

require('mocha');

Expand Down

0 comments on commit cde327a

Please sign in to comment.