mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-11 12:44:22 +08:00
Remove copy redundance
This commit is contained in:
+6
-18
@@ -130,38 +130,26 @@ module.exports = (grunt) ->
|
||||
}
|
||||
|
||||
copy: {
|
||||
main_htaccess: {
|
||||
main: {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
src: '.htaccess'
|
||||
src: [ '.htaccess', 'tests/the_raven/*' ]
|
||||
dest: 'build'
|
||||
options: {
|
||||
processContent: (content) ->
|
||||
grunt.template.process content, { data: template_data }
|
||||
}
|
||||
}
|
||||
main_raven: {
|
||||
min: {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
src: 'tests/the_raven/*'
|
||||
dest: 'build'
|
||||
}
|
||||
min_htaccess: {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
src: '.htaccess'
|
||||
src: [ '.htaccess', 'tests/the_raven/*' ]
|
||||
dest: 'build-min'
|
||||
options: {
|
||||
processContent: (content) ->
|
||||
grunt.template.process content, { data: template_data }
|
||||
}
|
||||
}
|
||||
min_raven: {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
src: 'tests/the_raven/*'
|
||||
dest: 'build-min'
|
||||
}
|
||||
min_fonts: {
|
||||
expand: true
|
||||
cwd: 'build/bower_components/fontawesome/fonts'
|
||||
@@ -248,8 +236,8 @@ module.exports = (grunt) ->
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
# Register tasks
|
||||
grunt.registerTask 'default', [ 'coffee:main', 'copy:main_htaccess', 'copy:main_raven', 'jade:main', 'stylus:main' ]
|
||||
grunt.registerTask 'min', [ 'jade:min', 'copy:min_raven', 'copy:min_fonts', 'uglify:min', 'cssmin:min' ]
|
||||
grunt.registerTask 'default', [ 'coffee:main', 'copy:main', 'jade:main', 'stylus:main' ]
|
||||
grunt.registerTask 'min', [ 'jade:min', 'copy:min', 'copy:min_fonts', 'uglify:min', 'cssmin:min' ]
|
||||
grunt.registerTask 'test', [ 'default', 'min', 'connect', 'qunit' ]
|
||||
|
||||
grunt.registerTask 'serve', () ->
|
||||
|
||||
Reference in New Issue
Block a user