daux.io/Gruntfile.js

46 lines
1.4 KiB
JavaScript
Raw Normal View History

2014-02-17 16:01:00 +01:00
module.exports = function (grunt) {
'use strict';
2013-06-03 15:32:55 +02:00
grunt.loadNpmTasks('grunt-php');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
2013-06-03 15:32:55 +02:00
grunt.initConfig({
php: {
dist: {
options: {
2014-02-17 16:01:00 +01:00
keepalive: true,
open: true,
2013-06-03 15:32:55 +02:00
port: 8085
}
}
},
less: {
2014-02-17 16:01:00 +01:00
development: {
options: {
cleancss: true,
report: 'min'
},
files: {
2015-04-23 10:24:50 +02:00
"resources/themes/daux-blue/css/theme.min.css": "resources/themes/daux-blue/less/theme.less",
"resources/themes/daux-green/css/theme.min.css": "resources/themes/daux-green/less/theme.less",
"resources/themes/daux-navy/css/theme.min.css": "resources/themes/daux-navy/less/theme.less",
"resources/themes/daux-red/css/theme.min.css": "resources/themes/daux-red/less/theme.less"
2014-02-17 16:01:00 +01:00
}
}
},
watch: {
2014-02-17 16:01:00 +01:00
scripts: {
files: ['templates/default/theme/**/*.less'],
2014-02-17 16:01:00 +01:00
tasks: ['less'],
options: {
nospawn: true
},
},
},
2013-06-03 15:32:55 +02:00
});
//grunt.registerTask('default', ['less', 'watch']);
2013-06-03 15:32:55 +02:00
grunt.registerTask('default', ['php']);
};