Skip to content

Commit

Permalink
Remove gulp-filter as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hwang committed Jun 17, 2015
1 parent d3a5103 commit 060dfe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var gulp = require('gulp');
var babel = require('gulp-babel');
var bump = require('gulp-bump');
var coffee = require('gulp-coffee');
var filter = require('gulp-filter');
var header = require('gulp-header');
var prefixer = require('gulp-autoprefixer');
var rename = require('gulp-rename');
Expand Down Expand Up @@ -66,21 +65,18 @@ gulp.task('css', function() {
gulp.task('eager', function() {
gulp.src('./src/eager/**/*.coffee')
.pipe(coffee())
.pipe(gulp.dest(distDir + '/eager'))
.pipe(gulp.dest(distDir + '/eager'));
});


// Version bump
var VERSIONS = ['patch', 'minor', 'major'];
for (var i = 0; i < VERSIONS.length; ++i){
(function(version) {
var pkgFilter = filter('package.json');
gulp.task('version:' + version, function() {
gulp.src(['package.json', 'bower.json'])
.pipe(bump({type: version}))
.pipe(pkgFilter)
.pipe(pkgFilter.restore())
.pipe(gulp.dest('.'))
.pipe(gulp.dest('.'));
});
})(VERSIONS[i]);
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"gulp-babel": "^5.1.0",
"gulp-bump": "^0.3.1",
"gulp-coffee": "^2.3.1",
"gulp-filter": "^2.0.2",
"gulp-header": "^1.2.2",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.1",
Expand Down

0 comments on commit 060dfe0

Please sign in to comment.