8
0
daux.io/Gruntfile.js

45 Zeilen
1.2 KiB
JavaScript

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: {
"css/daux-blue.min.css": "less/daux-blue.less",
"css/daux-green.min.css": "less/daux-green.less",
"css/daux-navy.min.css": "less/daux-navy.less",
"css/daux-red.min.css": "less/daux-red.less"
}
}
},
watch: {
2014-02-17 16:01:00 +01:00
scripts: {
files: ['less/**/*.less'],
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']);
2014-02-17 16:01:00 +01:00
};