Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Setup grunt git
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jul 22, 2014
1 parent 01aba12 commit a870abe
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module.exports = function(grunt) {
var manifest = grunt.file.readJSON("manifest.json");

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'chrome-extension': {
options: {
name: "chrome-chatter-share",
version: "1.0.3",
version: manifest.version,
id: "aehgkgapfagaljikampcebpacdcpkbfc",
chrome: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
clean: true,
Expand All @@ -21,10 +23,31 @@ module.exports = function(grunt) {
"README.md"
]
}
},
gittag: {
append: {
options: {
tag: manifest.version,
message: "release v" + manifest.version
}
}
},
gitpush: {
tag: {
options: {
tags: true
}
},
master: {
options: {
branch: "master"
}
}
}
});

grunt.loadNpmTasks('grunt-chrome-compile');
grunt.loadNpmTasks('grunt-git');

grunt.registerTask('default', ["chrome-extension"]);
};
};

0 comments on commit a870abe

Please sign in to comment.