From 4326a430a4bec6334a10b904d931027738c912be Mon Sep 17 00:00:00 2001 From: Jerome C Date: Fri, 13 Feb 2015 11:22:09 +0100 Subject: [PATCH] Add Gruntfile.js for grunt-release + grunt-tag --- Gruntfile.js | 24 ++++++++++++++++++++++++ package.json | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 Gruntfile.js diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..aa7f3bf --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,24 @@ +module.exports = function(grunt) { + + grunt.loadNpmTasks('grunt-release'); + grunt.loadNpmTasks('grunt-tag'); + + grunt.initConfig({ + release: { + options: { + npm: false, + afterReleaseTasks: ['tag'], + github: { + repo: "AirVantage/node-tech-time", + usernameVar: 'GITHUB_USERNAME', + passwordVar: 'GITHUB_PASSWORD' + } + } + }, + tag: { + options: { + tagName: '<%= version.match(/\\d*/) %>.x' + } + } + }); +}; diff --git a/package.json b/package.json index 6758ea1..b82b8a8 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,10 @@ "repository": { "type": "git", "url": "https://github.com/AirVantage/node-tech-time.git" + }, + "devDependencies": { + "grunt": "^0.4.5", + "grunt-release": "^0.11.0", + "grunt-tag": "^0.1.0" } }