Comparing version 0.5.4 to 0.5.7
{ | ||
"name": "asana", | ||
"main": "dist/asana.js", | ||
"version": "0.5.3", | ||
"version": "0.5.7", | ||
"homepage": "https://github.com/Asana/node-asana", | ||
"authors": [ | ||
"Greg Slovacek <greg@asana.com>", | ||
"Phips Peter <pspeter333@gmail.com>" | ||
@@ -8,0 +9,0 @@ ], |
var browserify = require('browserify'); | ||
var bump = require('gulp-bump'); | ||
var filter = require('gulp-filter'); | ||
var git = require('gulp-git'); | ||
var gulp = require('gulp'); | ||
@@ -6,2 +9,3 @@ var istanbul = require('gulp-istanbul'); | ||
var mocha = require('gulp-mocha'); | ||
var tagVersion = require('gulp-tag-version'); | ||
var uglify = require('gulp-uglify'); | ||
@@ -49,2 +53,45 @@ var vinylBuffer = require('vinyl-buffer'); | ||
/** | ||
* Bumping version number and tagging the repository with it. | ||
* Please read http://semver.org/ | ||
* | ||
* You can use the commands | ||
* | ||
* gulp bump-patch # makes v0.1.0 → v0.1.1 | ||
* gulp bump-feature # makes v0.1.1 → v0.2.0 | ||
* gulp bump-release # makes v0.2.1 → v1.0.0 | ||
* | ||
* To bump the version numbers accordingly after you did a patch, | ||
* introduced a feature or made a backwards-incompatible release. | ||
*/ | ||
function bumpVersion(importance) { | ||
return gulp.src(['./package.json', './bower.json']) | ||
.pipe(bump({type: importance})) | ||
.pipe(gulp.dest('./')) | ||
.pipe(git.commit('bump package version')) | ||
.pipe(filter('package.json')) | ||
.pipe(tagVersion()); | ||
} | ||
gulp.task('bump-patch', ['ensure-git-clean'], function() { | ||
return bumpVersion('patch'); | ||
}); | ||
gulp.task('bump-feature', ['ensure-git-clean'], function() { | ||
return bumpVersion('minor'); | ||
}); | ||
gulp.task('bump-release', ['ensure-git-clean'], function() { | ||
return bumpVersion('major'); | ||
}); | ||
/** | ||
* Ensure that the git working directory is clean. | ||
*/ | ||
gulp.task('ensure-git-clean', function() { | ||
git.status(function(err, out) { | ||
if (err) { throw err; } | ||
if (!/working directory clean/.exec(out)) { | ||
throw new Error('Git working directory not clean, will not bump version'); | ||
} | ||
}); | ||
}); | ||
/** | ||
* Lints all of the JavaScript files and fails if the tasks do not pass | ||
@@ -51,0 +98,0 @@ */ |
{ | ||
"name": "asana", | ||
"version": "0.5.4", | ||
"version": "0.5.7", | ||
"description": "A node.js client for the Asana API", | ||
@@ -32,5 +32,10 @@ "main": "index.js", | ||
"gulp": "^3.8.5", | ||
"gulp-bump": "^0.1.11", | ||
"gulp-filter": "^2.0.0", | ||
"gulp-git": "^0.5.6", | ||
"gulp-istanbul": "^0.5.0", | ||
"gulp-jshint": "^1.6.4", | ||
"gulp-mocha": "^2.0.0", | ||
"gulp-shell": "^0.2.11", | ||
"gulp-tag-version": "^1.2.1", | ||
"gulp-uglify": "^1.0.2", | ||
@@ -37,0 +42,0 @@ "jshint-stylish": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
660691
14699
17