daux.io/Gruntfile.js

46 lignes
1.5 KiB
JavaScript
Brut Vue normale Historique

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: {
"templates/default/themes/daux-blue/css/theme.min.css": "templates/default/themes/daux-blue/less/theme.less",
"templates/default/themes/daux-green/css/theme.min.css": "templates/default/themes/daux-green/less/theme.less",
"templates/default/themes/daux-navy/css/theme.min.css": "templates/default/themes/daux-navy/less/theme.less",
"templates/default/themes/daux-red/css/theme.min.css": "templates/default/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']);
};