Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(grunt){
- grunt.initConfig({
- concat: {
- options: {
- separator : ";",
- stripBanner : false
- },
- common : {
- src : [
- 'node_modules/jquery/dist/jquery.min.js',
- 'node_modules/bootstrap/dist/js/bootstrap.min.js',
- 'node_modules/chart.js/dist/Chart.min.js',
- ],
- dest : "./tmp/common.js"
- },
- CSS : {
- options: {
- separator : ";",
- stripBanner : false
- },
- src: [
- 'node_modules/font-awesome/css/font-awesome.min.css',
- 'node_modules/bootstrap/dist/css/bootstrap.min.css',
- ],
- dest : './public/css/bundle.css'
- },
- app : {
- src : [ './assets/js/*.js '],
- dest: "./public/javascripts/script.js"
- }
- },
- uglify: {
- common : {
- src: './tmp/common.js',
- dest: './public/javascripts/common.min.js'
- }
- },
- copy : {
- fontAwesomeFonts : {
- expand: true,
- dot: true,
- flatten: true,
- cwd: 'node_modules/font-awesome/fonts',
- src: ['**/*'],
- dest : './public/fonts'
- }
- },
- watch : {
- dev : {
- options: {
- atBegin: true
- },
- files : [ './assets/js/*.js'],
- tasks : [ 'concat:app']
- }
- }
- })
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.registerTask('default', ['concat', 'uglify:common', 'copy', 'watch:dev']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement