Grunt copy with smartness

This commit is contained in:
Vit Brunner
2014-11-11 23:42:51 +01:00
parent c715ad3257
commit c4e5f84e8b
+20 -29
View File
@@ -129,35 +129,6 @@ module.exports = (grunt) ->
}
}
copy: {
main: {
expand: true
cwd: 'source'
src: [ '.htaccess', 'tests/the_raven/*' ]
dest: 'build'
options: {
processContent: (content) ->
grunt.template.process content, { data: template_data }
}
}
min: {
expand: true
cwd: 'source'
src: [ '.htaccess', 'tests/the_raven/*' ]
dest: 'build-min'
options: {
processContent: (content) ->
grunt.template.process content, { data: template_data }
}
}
min_fonts: {
expand: true
cwd: 'build/bower_components/fontawesome/fonts'
src: '*'
dest: 'build-min/fonts/'
}
}
cssmin: {
min: {
files: {
@@ -211,6 +182,26 @@ module.exports = (grunt) ->
params
, {})
grunt.config 'copy', add([
[ 'main', {
src: [ '.htaccess', 'tests/the_raven/*' ]
}]
[ 'min', {
src: [ '.htaccess', 'tests/the_raven/*' ]
}]
[ 'min_fonts', {
cwd: 'build/bower_components/fontawesome/fonts'
src: '*'
dest: 'build-min/fonts/'
options: {}
}]
], {
options: {
processContent: (content) ->
grunt.template.process content, { data: template_data }
}
})
grunt.config 'jade', add([
[ 'main', { options: {
data: _.extend {}, vars, template_data