mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
phplint 추가.
This commit is contained in:
parent
5d78cf2300
commit
7f4d1b5249
2 changed files with 20 additions and 2 deletions
19
Gruntfile.js
19
Gruntfile.js
|
|
@ -176,6 +176,22 @@ module.exports = function(grunt) {
|
|||
'!**/*.min.css',
|
||||
]
|
||||
}
|
||||
},
|
||||
phplint: {
|
||||
default : {
|
||||
options: {
|
||||
phpCmd: "php",
|
||||
},
|
||||
|
||||
src: [
|
||||
"**/*.php",
|
||||
"!files/**",
|
||||
"!tests/**",
|
||||
"!tools/**",
|
||||
"!node_modules/**",
|
||||
"!libs/**"
|
||||
],
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -341,8 +357,9 @@ module.exports = function(grunt) {
|
|||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-csslint');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-phplint');
|
||||
|
||||
grunt.registerTask('default', ['jshint', 'csslint']);
|
||||
grunt.registerTask('lint', ['jshint', 'csslint']);
|
||||
grunt.registerTask('lint', ['jshint', 'csslint', 'phplint']);
|
||||
grunt.registerTask('minify', ['jshint', 'csslint', 'clean', 'concat', 'uglify', 'cssmin']);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
"grunt-contrib-csslint": "*",
|
||||
"grunt-contrib-cssmin": "~0.7.0",
|
||||
"grunt-contrib-uglify": "~0.2.7",
|
||||
"grunt-contrib-concat": "~0.3.0"
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-phplint": "0.0.5"
|
||||
},
|
||||
"main": "Gruntfile.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue