Categories
gruntjs javascript

Run grunt tasks from child directories

module.exports = function(grunt) {
    grunt.initConfig({
        concat: {
            options: {
                banner: '',
                separator: ';'
            },
            dist: {
                src: ["js/libs/script-1.js", "js/libs/script-2.js"],
                dest: 'js/libs/build.js'
            }
        },
        uglify: {
            makeUgly: {
                files: {
Usually medical practitioners prescribe 100mg for sale viagra  dose to women above 40years old. Because it is very easy to cialis generico uk  take and the tablet is a cost-effective solution of treating male disorder safely. When you buy Silagra online, be informed about it, he would suggest you the required dose. viagra price online cerritosmedicalcenter.com Now, several  professional viagra men somehow face the problem of erections.               "js/build.min.js": ['js/libs/build.js']
            }
        }
      }
    });
	
	// load npm packages. 
	// Just go up however many directoires until you find your /node_modules/ folder. 
	// There is a setBase config option for Grunt but this way works for me.
    grunt.loadNpmTasks('../../../node_modules/grunt-contrib-uglify');
	grunt.loadNpmTasks('../../../node_modules/grunt-contrib-cssmin');

    // Default task(s).
    grunt.registerTask('default', ['concat', 'uglify']);
};