This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g grunt-cli. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install grunt-git --save-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.loadNpmTasks('grunt-git'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var commitMsg = grunt.option('gitmsg') || ('Automated Commit ' + new Date().toJSON().slice(0,10)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.registerTask('gitupdate', ['gitcheckout:master', 'gitpull:upstreammaster', 'gitadd:master', 'gitcommit:master', 'gitpush:originmaster', 'gitpush:upstreammaster']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt gitupdate --gitmsg="I just automated my git process!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
antdeploy: { | |
options: { | |
root: 'deploy/', //Temporary deploy staging area | |
}, | |
dev1: { | |
options: { //SF credentials need to be set as Environment Variables | |
user: process.env.DEVNAME, | |
pass: process.env.DEVPASS, | |
token: process.env.DEVTOKEN, | |
serverurl: 'https://test.salesforce.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitpull: { | |
upstreammaster: { | |
options: { | |
remote: 'upstream', | |
branch: 'master', | |
noCommit: true, | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitpush: { | |
originmaster: { | |
options: { | |
remote: 'origin', | |
branch: 'master' | |
} | |
}, | |
upstreammaster: { | |
options: { | |
remote: 'upstream', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitcommit: { | |
master: { | |
options: { | |
cwd: "C:\\Users\\uname\\Documents\\Projects\\MyCoolProject", | |
message: commitMsg, | |
allowEmpty: true | |
} | |
} | |
} |
NewerOlder