1 module.exports = function(grunt) {
3 grunt.loadNpmTasks('grunt-newer');
5 grunt.registerTask('frontend','Build HTML & CSS for Frontend', function() {
8 path = './src/main/frontend';
13 opts: { cwd: path, stdio: 'inherit' }
14 }, function (err, result, code) {
15 if (err || code > 0) {
16 grunt.fail.warn('Failed installing node modules in "' + path + '".');
19 grunt.log.ok('Installed node modules in "' + path + '".');
23 require(path + '/Gruntfile.js')(grunt);
24 grunt.task.run('newer:copy');
25 grunt.task.run('newer:less');
26 grunt.task.run('newer:svgstore');
33 grunt.registerTask('default', [ 'frontend' ]);