Skip to content

Instantly share code, notes, and snippets.

@brunogarcia

brunogarcia/Gruntfile.js

Last active Sep 12, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.