mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Grunt copy with smartness
This commit is contained in:
+20
-29
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user