wip autocommit dist

This commit is contained in:
Kevin Ross 2016-01-26 11:51:38 -06:00
parent 6292643d82
commit ed418577a0
2 changed files with 9 additions and 18 deletions

View File

@ -466,31 +466,23 @@ module.exports = function (grunt) {
buildcontrol: { buildcontrol: {
options: { options: {
dir: '_gh_pages', remote: 'git@github.com:FezVrasta/bootstrap-material-design.git',
commit: true, commit: true,
push: true, push: true,
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
}, },
pages: { pages: {
options: { options: {
// FIXME: change this when we are ready!!! // FIXME: remove this when we are ready!!!
//remote: 'git@github.com:FezVrasta/bootstrap-material-design.git',
remote: 'git@github.com:rosskevin/bootstrap-material-design.git', remote: 'git@github.com:rosskevin/bootstrap-material-design.git',
branch: 'gh-pages' dir: '_gh_pages',
} branch: 'gh-pages',
message: 'Built from commit %sourceCommit% on branch %sourceBranch%'
} }
}, },
gitcommit: {
dist: { dist: {
options: { options: {
message: 'dist - publish', dir: 'dist',
verbose: true, message: 'dist from commit %sourceCommit% on branch %sourceBranch%'
noVerify: true,
noStatus: true
},
files: {
src: ['dist/**/*']
} }
} }
}, },
@ -636,12 +628,12 @@ module.exports = function (grunt) {
// Release and publish // Release and publish
grunt.registerTask('prep-release', [ grunt.registerTask('prep-release', [
'dist', 'dist',
'gitcommit:dist',
'jekyll:github' // build site from scratch 'jekyll:github' // build site from scratch
//'compress' // compress zip //'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
'buildcontrol:dist', // push dist
'buildcontrol:pages' // push site 'buildcontrol:pages' // push site
]); ]);
//------ //------

View File

@ -57,7 +57,6 @@
"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",