Improve Grunt engine
This commit is contained in:
parent
c8f21efd4a
commit
b6b2bdf4d9
40
Gruntfile.js
40
Gruntfile.js
@ -1,4 +1,6 @@
|
|||||||
module.exports = function(grunt) {
|
module.exports = function (grunt) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
grunt.loadNpmTasks('grunt-php');
|
grunt.loadNpmTasks('grunt-php');
|
||||||
grunt.loadNpmTasks('grunt-contrib-less');
|
grunt.loadNpmTasks('grunt-contrib-less');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
@ -7,33 +9,37 @@ module.exports = function(grunt) {
|
|||||||
php: {
|
php: {
|
||||||
dist: {
|
dist: {
|
||||||
options: {
|
options: {
|
||||||
keepalive: true,
|
keepalive: true,
|
||||||
open: true,
|
open: true,
|
||||||
port: 8085
|
port: 8085
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
less: {
|
less: {
|
||||||
development: {
|
development: {
|
||||||
files: {
|
options: {
|
||||||
"css/daux-blue.css": "less/daux-blue.less",
|
cleancss: true,
|
||||||
"css/daux-green.css": "less/daux-green.less",
|
report: 'min'
|
||||||
"css/daux-navy.css": "less/daux-navy.less",
|
},
|
||||||
"css/daux-red.css": "less/daux-red.less"
|
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: {
|
watch: {
|
||||||
scripts: {
|
scripts: {
|
||||||
files: ['less/**/*.less'],
|
files: ['less/**/*.less'],
|
||||||
tasks: ['less'],
|
tasks: ['less'],
|
||||||
options: {
|
options: {
|
||||||
nospawn: true
|
nospawn: true
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
//grunt.registerTask('default', ['less', 'watch']);
|
//grunt.registerTask('default', ['less', 'watch']);
|
||||||
grunt.registerTask('default', ['php']);
|
grunt.registerTask('default', ['php']);
|
||||||
}
|
};
|
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "daux.io",
|
"name": "daux.io",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
"grunt-php": "~0.1.1",
|
"grunt-php": "~0.3.0",
|
||||||
"grunt-contrib-less": "~0.5.2"
|
"grunt-contrib-less": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt-contrib-watch": "~0.4.4"
|
"grunt-contrib-watch": "~0.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user