Skip to content

Commit

Permalink
bump revision; fix "gulp bump" task
Browse files Browse the repository at this point in the history
note: "gulp bump" currently creates unnecessary whitespace diffs.
  • Loading branch information
hegemonic committed May 22, 2014
1 parent 90b0d21 commit 3e1d704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*eslint max-nested-callbacks: 0 */
'use strict';

var bump = require('gulp-bump');
var eslint = require('gulp-eslint');
var exec = require('child_process').exec;
var gulp = require('gulp');
var istanbul = require('istanbul');
var jsonEditor = require('gulp-json-editor');
var os = require('os');
var path = require('path');
var util = require('util');
Expand Down Expand Up @@ -44,9 +44,8 @@ var options = {

gulp.task('bump', function() {
gulp.src('./package.json')
.pipe(bump({
key: 'revision',
version: String( Date.now() )
.pipe(jsonEditor({
revision: String( Date.now() )
}))
.pipe(gulp.dest('./'));
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsdoc",
"version": "3.3.0-dev",
"revision": "1397403423002",
"revision": "1400737863648",
"description": "An API documentation generator for JavaScript.",
"keywords": [
"documentation",
Expand Down Expand Up @@ -29,8 +29,8 @@
},
"devDependencies": {
"gulp": "~3.6.2",
"gulp-bump": "~0.1.8",
"gulp-eslint": "~0.1.6",
"gulp-json-editor": "~2.0.2",
"istanbul": "~0.2.1",
"tv4": "https://github.com/hegemonic/tv4/tarball/own-properties"
},
Expand Down

0 comments on commit 3e1d704

Please sign in to comment.