Last active
September 12, 2015 17:19
-
-
Save brunogarcia/000951d92e40ad219c95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
bowercopy: { | |
// CSS assets | |
css: { | |
options: { | |
destPrefix: 'src/AppBundle/Resources/public/css' | |
}, | |
files: { | |
'plugins/font-awesome.css': 'fontawesome/css/font-awesome.css', | |
'plugins/bootstrap-sweet-alert.css': 'bootstrap-sweetalert/lib/sweet-alert.css', | |
'plugins/bootstrap-tags-input.css': 'bootstrap-tagsinput/dist/bootstrap-tagsinput.css', | |
'plugins/bootstrap-datepicker.css': 'bootstrap-datepicker/dist/css/bootstrap-datepicker3.css', | |
} | |
}, | |
// Javascript assets | |
libs: { | |
options: { | |
destPrefix: 'src/AppBundle/Resources/public/js' | |
}, | |
files: { | |
// Main | |
'jquery.js': 'jquery/dist/jquery.js', | |
'bootstrap.js': 'bootstrap-sass/assets/javascripts/bootstrap.min.js', | |
// Plugins | |
'plugins/bootstrap-sweet-alert.js': 'bootstrap-sweetalert/lib/sweet-alert.js', | |
'plugins/bootstrap-filestyle.js': 'bootstrap-filestyle/src/bootstrap-filestyle.js', | |
'plugins/bootstrap-datepicker.js': 'bootstrap-datepicker/dist/js/bootstrap-datepicker.js', | |
'plugins/bootstrap-tags-input.js': 'bootstrap-tagsinput/dist/bootstrap-tagsinput.js', | |
}, | |
}, | |
// Sass assets | |
sass: { | |
options: { | |
destPrefix: 'src/AppBundle/Resources/public/sass' | |
}, | |
files: { | |
'bootstrap': 'bootstrap-sass/assets/stylesheets/', | |
} | |
}, | |
// Fonts | |
fonts: { | |
options: { | |
destPrefix: 'src/AppBundle/Resources/public' | |
}, | |
files: { | |
'fonts': 'fontawesome/fonts/', | |
} | |
}, | |
// Images | |
images: { | |
options: { | |
destPrefix: 'src/AppBundle/Resources/public/images' | |
}, | |
files: { | |
'plugins/chosen-sprite.png': 'chosen/chosen-sprite.png', | |
'plugins/[email protected]': 'chosen/[email protected]' | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-bowercopy'); | |
grunt.registerTask('default', ['bowercopy']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment