Remove 'bump' and 'release' tasks from gulpfile.js

There is only one JSON left for the project and it's better to bump the
version manually.
This commit is contained in:
Hyunje Alex Jun 2015-10-03 21:41:19 +09:00
parent 17e5f67519
commit 1c3b409d12
2 changed files with 0 additions and 20 deletions

View File

@ -3,7 +3,6 @@
var gulp = require('gulp') var gulp = require('gulp')
, browserify = require('browserify') , browserify = require('browserify')
, buffer = require('vinyl-buffer') , buffer = require('vinyl-buffer')
, bump = require('gulp-bump')
, connect = require('gulp-connect') , connect = require('gulp-connect')
, del = require('del') , del = require('del')
, eslint = require('gulp-eslint') , eslint = require('gulp-eslint')
@ -102,24 +101,6 @@ gulp.task('css:min', ['clean:css:min'], function () {
.pipe(gulp.dest('./dist/css')); .pipe(gulp.dest('./dist/css'));
}); });
function bumpType() {
if (gulp.env.major) {
return 'major';
} else if (gulp.env.minor) {
return 'minor';
} else {
return 'patch';
}
}
gulp.task('bump', function () {
gulp.src('./*.json')
.pipe(bump({type: bumpType()}))
.pipe(gulp.dest('./'));
});
gulp.task('release', ['bump', 'build']);
gulp.task('build', ['js', 'js:min', 'css', 'css:min']); gulp.task('build', ['js', 'js:min', 'css', 'css:min']);
gulp.task('connect', ['build'], function () { gulp.task('connect', ['build'], function () {

View File

@ -31,7 +31,6 @@
"del": "^2.0.2", "del": "^2.0.2",
"event-stream": "^3.3.1", "event-stream": "^3.3.1",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-bump": "^1.0.0",
"gulp-connect": "^2.2.0", "gulp-connect": "^2.2.0",
"gulp-eslint": "^1.0.0", "gulp-eslint": "^1.0.0",
"gulp-insert": "^0.5.0", "gulp-insert": "^0.5.0",