Update for deployment
This commit is contained in:
parent
7d897f382c
commit
b7f9d6b298
2 changed files with 25 additions and 4 deletions
|
@ -13,6 +13,7 @@ module.exports = (grunt) ->
|
||||||
'slides/{,*/}*.{md,html}'
|
'slides/{,*/}*.{md,html}'
|
||||||
'js/*.js'
|
'js/*.js'
|
||||||
'css/*.css'
|
'css/*.css'
|
||||||
|
'img/*'
|
||||||
]
|
]
|
||||||
|
|
||||||
index:
|
index:
|
||||||
|
@ -80,6 +81,7 @@ module.exports = (grunt) ->
|
||||||
'bower_components/**'
|
'bower_components/**'
|
||||||
'js/**'
|
'js/**'
|
||||||
'css/*.css'
|
'css/*.css'
|
||||||
|
'img/*'
|
||||||
]
|
]
|
||||||
dest: 'dist/'
|
dest: 'dist/'
|
||||||
},{
|
},{
|
||||||
|
@ -90,6 +92,18 @@ module.exports = (grunt) ->
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|
||||||
|
buildcontrol:
|
||||||
|
|
||||||
|
options:
|
||||||
|
dir: 'dist'
|
||||||
|
commit: true
|
||||||
|
push: true
|
||||||
|
message: 'Built from %sourceCommit% on branch %sourceBranch%'
|
||||||
|
pages:
|
||||||
|
options:
|
||||||
|
remote: 'git@github.com:atomaka/intro-to-vagrant.git'
|
||||||
|
branch: 'gh-pages'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Load all grunt tasks.
|
# Load all grunt tasks.
|
||||||
|
@ -134,6 +148,12 @@ module.exports = (grunt) ->
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
grunt.registerTask 'deploy',
|
||||||
|
'Deploy to Github Pages', [
|
||||||
|
'dist'
|
||||||
|
'buildcontrol'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
# Define default task.
|
# Define default task.
|
||||||
grunt.registerTask 'default', [
|
grunt.registerTask 'default', [
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"grunt-contrib-copy": "^0.7.0",
|
"grunt-contrib-copy": "^0.7.0",
|
||||||
"grunt-contrib-jshint": "^0.10.0",
|
"grunt-contrib-jshint": "^0.10.0",
|
||||||
"load-grunt-tasks": "^1.0.0",
|
"load-grunt-tasks": "^1.0.0",
|
||||||
|
"grunt-build-control": "^0.2.2",
|
||||||
"grunt-coffeelint": "0.0.13"
|
"grunt-coffeelint": "0.0.13"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
Loading…
Reference in a new issue