Skip to content

Commit 3cf36d4

Browse files
committed
Add grunt bump to create releases
1 parent 5eed4fa commit 3cf36d4

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

Gruntfile.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ module.exports = function (grunt) {
1212

1313
grunt.initConfig({
1414

15+
// Bump version option
16+
bump: {
17+
options: {
18+
files: ['package.json'],
19+
updateConfigs: [],
20+
commit: true,
21+
commitMessage: 'Release v%VERSION%',
22+
commitFiles: ['package.json'],
23+
createTag: true,
24+
tagName: '%VERSION%',
25+
tagMessage: 'Version %VERSION%',
26+
push: true,
27+
pushTo: 'origin',
28+
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
29+
}
30+
},
31+
1532
mochaTest: {
1633
all: {
1734
options: { reporter: 'spec' },

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "0.0.1",
44
"description": "Remove the CSS rules that you don't want, with a list of selectors",
55
"homepage": "https://github.com/AoDev/css-byebye",
6-
"repository" : { "type" : "git", "url" : "https://github.com/AoDev/css-byebye.git" },
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/AoDev/css-byebye.git"
9+
},
710
"main": "lib/css-byebye.js",
811
"scripts": {
912
"test": "grunt test"
@@ -17,8 +20,9 @@
1720
"postcss": "^2.2.4"
1821
},
1922
"devDependencies": {
20-
"grunt": "^0.4.5",
2123
"chai": "^1.9.1",
24+
"grunt": "^0.4.5",
25+
"grunt-bump": "0.0.16",
2226
"grunt-mocha-test": "^0.12.0",
2327
"load-grunt-tasks": "^0.6.0",
2428
"mocha": "^1.21.4"

0 commit comments

Comments
 (0)