Skip to content

Instantly share code, notes, and snippets.

@brunogarcia
Last active September 12, 2015 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunogarcia/000951d92e40ad219c95 to your computer and use it in GitHub Desktop.
Save brunogarcia/000951d92e40ad219c95 to your computer and use it in GitHub Desktop.
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/chosen-sprite@2x.png': 'chosen/chosen-sprite@2x.png'
}
}
}
});
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