1
0
Fork 0

Update for deployment

This commit is contained in:
Andrew Tomaka 2015-05-13 11:30:26 -04:00
parent 7d897f382c
commit b7f9d6b298
2 changed files with 25 additions and 4 deletions

View File

@ -13,6 +13,7 @@ module.exports = (grunt) ->
'slides/{,*/}*.{md,html}' 'slides/{,*/}*.{md,html}'
'js/*.js' 'js/*.js'
'css/*.css' 'css/*.css'
'img/*'
] ]
index: index:
@ -30,7 +31,7 @@ module.exports = (grunt) ->
jshint: jshint:
files: ['js/*.js'] files: ['js/*.js']
tasks: ['jshint'] tasks: ['jshint']
sass: sass:
files: ['css/source/theme.scss'] files: ['css/source/theme.scss']
tasks: ['sass'] tasks: ['sass']
@ -40,7 +41,7 @@ module.exports = (grunt) ->
theme: theme:
files: files:
'css/theme.css': 'css/source/theme.scss' 'css/theme.css': 'css/source/theme.scss'
connect: connect:
livereload: livereload:
@ -80,6 +81,7 @@ module.exports = (grunt) ->
'bower_components/**' 'bower_components/**'
'js/**' 'js/**'
'css/*.css' 'css/*.css'
'img/*'
] ]
dest: 'dist/' dest: 'dist/'
},{ },{
@ -89,7 +91,19 @@ module.exports = (grunt) ->
filter: 'isFile' filter: 'isFile'
}] }]
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.
@ -133,7 +147,13 @@ module.exports = (grunt) ->
'copy' 'copy'
] ]
grunt.registerTask 'deploy',
'Deploy to Github Pages', [
'dist'
'buildcontrol'
]
# Define default task. # Define default task.
grunt.registerTask 'default', [ grunt.registerTask 'default', [

View File

@ -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": {