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:
parent
17e5f67519
commit
1c3b409d12
19
gulpfile.js
19
gulpfile.js
@ -3,7 +3,6 @@
|
||||
var gulp = require('gulp')
|
||||
, browserify = require('browserify')
|
||||
, buffer = require('vinyl-buffer')
|
||||
, bump = require('gulp-bump')
|
||||
, connect = require('gulp-connect')
|
||||
, del = require('del')
|
||||
, eslint = require('gulp-eslint')
|
||||
@ -102,24 +101,6 @@ gulp.task('css:min', ['clean:css:min'], function () {
|
||||
.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('connect', ['build'], function () {
|
||||
|
@ -31,7 +31,6 @@
|
||||
"del": "^2.0.2",
|
||||
"event-stream": "^3.3.1",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-bump": "^1.0.0",
|
||||
"gulp-connect": "^2.2.0",
|
||||
"gulp-eslint": "^1.0.0",
|
||||
"gulp-insert": "^0.5.0",
|
||||
|
Loading…
Reference in New Issue
Block a user