Clean temp folders after publishing

This commit is contained in:
Radek Stepan 2014-11-02 12:27:23 -07:00
parent 68813df07f
commit a5d1d0a43a
2 changed files with 16 additions and 6 deletions

View File

@ -3,10 +3,14 @@ module.exports = (grunt) ->
pkg: grunt.file.readJSON("package.json")
'clean': [
'clean':
public: [
'public/js'
'public/css'
]
pages: [
'.grunt'
]
'mkdir':
all:
@ -48,7 +52,7 @@ module.exports = (grunt) ->
# Cleanup public directories.
grunt.registerTask('init', [
'clean'
'clean:public'
'mkdir'
])
@ -57,3 +61,9 @@ module.exports = (grunt) ->
'uglify'
'cssmin'
])
# Publish to GitHub Pages.
grunt.registerTask('pages', [
'gh-pages'
'clean:pages'
])

View File

@ -43,7 +43,7 @@ build-css:
# Publish to GitHub Pages.
publish:
${GRUNT} gh-pages
${GRUNT} pages
OPTS = --compilers coffee:coffee-script/register --ui exports