CartoAssets/Gruntfile.js
2016-01-14 13:57:13 +01:00

34 lines
740 B
JavaScript

module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
concat: require('./tasks/concat'),
connect: require('./tasks/connect'),
clean: require('./tasks/clean'),
sass: require('./tasks/sass'),
cssmin: require('./tasks/cssmin'),
shell: require('./tasks/shell'),
watch: require('./tasks/watch')
});
var baseTasks = [
'clean',
'sass',
'concat',
'cssmin'
];
var devTasks = baseTasks.concat([
'connect',
'watch:scss'
]);
grunt.event.on('watch', function (action, filepath) {
grunt.task.run('shell');
});
grunt.registerTask('dev', devTasks);
grunt.registerTask('build', baseTasks);
grunt.registerTask('default', baseTasks);
};