automate publish and commit dist automatically in process now that it is no longer ignored

This commit is contained in:
Kevin Ross 2016-01-25 15:35:36 -06:00
parent cb6c279cfe
commit d7c0abcc10
2 changed files with 18 additions and 3 deletions

View File

@ -481,6 +481,19 @@ module.exports = function (grunt) {
}
},
gitcommit: {
dist: {
options: {
message: 'dist',
noVerify: true,
noStatus: false
},
files: {
src: ['dist/**/*']
}
}
},
compress: {
main: {
options: {
@ -621,9 +634,10 @@ module.exports = function (grunt) {
//------
// Release and publish
grunt.registerTask('prep-release', [
'dist', // all dist including docs
'jekyll:github', // build site from scratch
'compress' // compress zip
'dist',
'gitcommit:dist',
'jekyll:github' // build site from scratch
//'compress' // compress zip
]);
grunt.registerTask('publish', [
'prep-release', // build all including dist, docs, site

View File

@ -57,6 +57,7 @@
"grunt-csscomb": "~3.1.0",
"grunt-eslint": "^17.3.1",
"grunt-exec": "~0.4.6",
"grunt-git": "^0.3.7",
"grunt-html": "~5.0.0",
"grunt-jekyll": "~0.4.2",
"grunt-jscs": "~2.4.0",