From 66df15a63b67d72cfe2a00b94febbb1179aa0b6f Mon Sep 17 00:00:00 2001 From: Nicolas Turlais Date: Wed, 15 Jul 2015 23:14:29 +0200 Subject: [PATCH] gulp-bump for auto versionning --- bower.json | 12 ++++++++---- gulpfile.coffee | 6 ++++++ package.json | 7 ++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/bower.json b/bower.json index 76fe5bc..ea32d33 100644 --- a/bower.json +++ b/bower.json @@ -1,11 +1,11 @@ { "name": "chocolat", - "version": "0.4.6", + "version": "0.4.7", "main": [ "css/chocolat.css", "js/jquery.chocolat.js" ], - "license" : "CC-BY-2.0", + "license": "CC-BY-2.0", "dependencies": { "jquery": "~1.8.2" }, @@ -18,9 +18,13 @@ "gulp-util": "^3.0.6" }, "authors": [ - { "name": "Nicolas Turlais", "email": "nicolas@insipi.de"," homepage": "http://nicolasturlais.com" } + { + "name": "Nicolas Turlais", + "email": "nicolas@insipi.de", + " homepage": "http://nicolasturlais.com" + } ], - "homepage" : "http://chocolat.insipi.de", + "homepage": "http://chocolat.insipi.de", "repository": { "type": "git", "url": "git://github.com/nicolas-t/Chocolat.git" diff --git a/gulpfile.coffee b/gulpfile.coffee index 8f6ee14..06a460f 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -1,6 +1,7 @@ gulp = require 'gulp' gutil = require 'gulp-util' coffee = require 'gulp-coffee' +bump = require 'gulp-bump' mochaPhantomJS = require('gulp-mocha-phantomjs') gulp.task 'compile-coffee', -> @@ -20,6 +21,11 @@ gulp.task 'default', [ 'watch' ] +gulp.task 'bump', -> + gulp.src(['./package.json', './bower.json']) + .pipe(bump()) + .pipe gulp.dest('./') + gulp.task 'test', [ 'compile-coffee' 'testing' diff --git a/package.json b/package.json index 61e5200..25bc090 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,22 @@ { "name": "chocolat", - "version": "0.4.6", + "version": "0.4.7", "description": " Responsive jQuery Lightbox Plugin", "main": [ "css/chocolat.css", "js/jquery.chocolat.js" ], - "directories": { + "directories": { "test": "test" }, "dependencies": { "jquery": "~1.8.2" }, "devDependencies": { - "coffee-script": "^1.9.3", "chai": "^3.0.0", + "coffee-script": "^1.9.3", "gulp": "^3.9.0", + "gulp-bump": "^0.3.1", "gulp-coffee": "^2.3.1", "gulp-mocha-phantomjs": "^0.6.1", "gulp-util": "^3.0.6"