module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'public/js/functions.js', dest: 'public/js/functions.min.js' } }, concat: { js: { src: ['resources/assets/js/functions/*.js'], dest: 'public/js/functions.js' } }, watch: { scripts: { files: 'resources/assets/js/functions/*.js', tasks: ['concat', 'uglify'], options: { interrupt: true, }, }, }, }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-watch'); };