1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-29 07:26:22 +01:00

grunt refinements

This commit is contained in:
Matthias Kretschmann 2013-11-29 00:01:40 +01:00
parent 2c658ab325
commit 91471ba28f

View File

@ -37,12 +37,21 @@ module.exports = function(grunt){
// Jekyll // Jekyll
jekyll: { jekyll: {
production: { options: {
lsi: true, src : '<%= config.src %>/',
src: '<%= config.src %>/' config: './_config.yml'
}, },
serve: { production: {
src: '<%= config.src %>/' options: {
lsi: true
}
},
development: {
options: {
drafts: true,
future: true,
limit_posts: 10
}
} }
}, },
@ -155,11 +164,13 @@ module.exports = function(grunt){
jekyll: { jekyll: {
files: [ files: [
'<%= config.src %>/*.html', '<%= config.src %>/*.html',
'<%= config.src %>/*.xml',
'<%= config.src %>/_includes/**', '<%= config.src %>/_includes/**',
'<%= config.src %>/_layouts/**', '<%= config.src %>/_layouts/**',
'<%= config.src %>/_posts/**' '<%= config.src %>/_posts/**',
'<%= config.src %>/_drafts/**'
], ],
tasks: ['jekyll:serve', 'less', 'uglify'] tasks: ['jekyll:development', 'less', 'uglify']
}, },
}, },
@ -185,8 +196,7 @@ module.exports = function(grunt){
dest: 'domains/kremalicious.com/html', dest: 'domains/kremalicious.com/html',
host: 'kremalicious', host: 'kremalicious',
ssh: true, ssh: true,
args: ['--verbose'], args: ['--verbose']
compareMode: 'checksum'
} }
} }
} }
@ -213,7 +223,7 @@ module.exports = function(grunt){
// Dev server // Dev server
grunt.registerTask('server', [ grunt.registerTask('server', [
'rsync:copy_media', 'rsync:copy_media',
'jekyll:serve', 'jekyll:development',
'less', 'less',
'cmq', 'cmq',
'cssmin', 'cssmin',
@ -228,6 +238,7 @@ module.exports = function(grunt){
'rsync:copy_media', 'rsync:copy_media',
'jekyll:production', 'jekyll:production',
'imagemin:assets', 'imagemin:assets',
'imagemin:touchicons',
'less', 'less',
'cmq', 'cmq',
'cssmin', 'cssmin',