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: { compress: {
main: { main: {
options: { options: {
@ -621,9 +634,10 @@ module.exports = function (grunt) {
//------ //------
// Release and publish // Release and publish
grunt.registerTask('prep-release', [ grunt.registerTask('prep-release', [
'dist', // all dist including docs 'dist',
'jekyll:github', // build site from scratch 'gitcommit:dist',
'compress' // compress zip 'jekyll:github' // build site from scratch
//'compress' // compress zip
]); ]);
grunt.registerTask('publish', [ grunt.registerTask('publish', [
'prep-release', // build all including dist, docs, site 'prep-release', // build all including dist, docs, site

View File

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