Merge pull request #1448 from cmgustavo/feature/improvement-releases
Automating the release steps with Grunt
This commit is contained in:
commit
11c6650f81
2 changed files with 24 additions and 1 deletions
22
Gruntfile.js
22
Gruntfile.js
|
|
@ -10,9 +10,31 @@ module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
grunt.loadNpmTasks('grunt-angular-gettext');
|
grunt.loadNpmTasks('grunt-angular-gettext');
|
||||||
grunt.loadNpmTasks('grunt-jsdoc');
|
grunt.loadNpmTasks('grunt-jsdoc');
|
||||||
|
grunt.loadNpmTasks('grunt-release');
|
||||||
|
|
||||||
// Project Configuration
|
// Project Configuration
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
release: {
|
||||||
|
options: {
|
||||||
|
bump: true,
|
||||||
|
file: 'package.json',
|
||||||
|
add: true,
|
||||||
|
commit: true,
|
||||||
|
tag: true,
|
||||||
|
push: true,
|
||||||
|
pushTags: true,
|
||||||
|
npm: false,
|
||||||
|
npmtag: true,
|
||||||
|
tagName: 'v<%= version %>',
|
||||||
|
commitMessage: 'New release v<%= version %>',
|
||||||
|
tagMessage: 'Version <%= version %>',
|
||||||
|
github: {
|
||||||
|
repo: 'bitpay/copay',
|
||||||
|
usernameVar: 'GITHUB_USERNAME', //ENVIRONMENT VARIABLE that contains Github username
|
||||||
|
passwordVar: 'GITHUB_PASSWORD' //ENVIRONMENT VARIABLE that contains Github password
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
shell: {
|
shell: {
|
||||||
prod: {
|
prod: {
|
||||||
options: {
|
options: {
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "0.9.0",
|
"async": "0.9.0",
|
||||||
|
"bitcore": "0.1.36",
|
||||||
"blanket": "1.1.6",
|
"blanket": "1.1.6",
|
||||||
"browser-pack": "2.0.1",
|
"browser-pack": "2.0.1",
|
||||||
"browser-request": "0.3.2",
|
"browser-request": "0.3.2",
|
||||||
|
|
@ -64,8 +65,8 @@
|
||||||
"grunt-contrib-watch": "0.5.3",
|
"grunt-contrib-watch": "0.5.3",
|
||||||
"grunt-jsdoc": "^0.5.7",
|
"grunt-jsdoc": "^0.5.7",
|
||||||
"grunt-markdown": "0.5.0",
|
"grunt-markdown": "0.5.0",
|
||||||
"bitcore": "0.1.36",
|
|
||||||
"grunt-mocha-test": "0.8.2",
|
"grunt-mocha-test": "0.8.2",
|
||||||
|
"grunt-release": "^0.7.0",
|
||||||
"grunt-shell": "0.6.4",
|
"grunt-shell": "0.6.4",
|
||||||
"istanbul": "0.2.10",
|
"istanbul": "0.2.10",
|
||||||
"karma": "0.12.9",
|
"karma": "0.12.9",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue