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');
|
2013-07-15 00:44:21 +02:00
|
|
|
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,
|
2015-07-20 22:35:37 +02:00
|
|
|
port: 8085,
|
|
|
|
router: "index.php"
|
2013-06-03 15:32:55 +02:00
|
|
|
}
|
|
|
|
}
|
2013-07-15 00:44:21 +02:00
|
|
|
},
|
|
|
|
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
|
|
|
}
|
2013-07-15 00:44:21 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
2014-02-17 16:01:00 +01:00
|
|
|
scripts: {
|
2015-04-21 17:34:43 +02:00
|
|
|
files: ['templates/default/theme/**/*.less'],
|
2014-02-17 16:01:00 +01:00
|
|
|
tasks: ['less'],
|
|
|
|
options: {
|
|
|
|
nospawn: true
|
|
|
|
},
|
2013-07-15 00:44:21 +02:00
|
|
|
},
|
|
|
|
},
|
2013-06-03 15:32:55 +02:00
|
|
|
});
|
|
|
|
|
2013-07-15 00:44:21 +02:00
|
|
|
//grunt.registerTask('default', ['less', 'watch']);
|
2013-06-03 15:32:55 +02:00
|
|
|
grunt.registerTask('default', ['php']);
|
2015-04-21 17:34:43 +02:00
|
|
|
};
|