mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#56 js, css lint 추가.
This commit is contained in:
parent
3e43ac505f
commit
03377fa954
2 changed files with 45 additions and 3 deletions
44
Gruntfile.js
44
Gruntfile.js
|
|
@ -7,7 +7,7 @@ module.exports = function(grunt) {
|
|||
jshint: {
|
||||
files: [
|
||||
'Gruntfile.js',
|
||||
// 'common/js/*.js', '!common/js/html5.js', '!common/js/jquery.js', '!common/js/x.js', '!common/js/xe.js',
|
||||
'common/js/*.js', '!common/js/html5.js', '!common/js/jquery.js', '!common/js/x.js', '!common/js/xe.js',
|
||||
// 'addons/**/*.js',
|
||||
// 'modules/**/*.js',
|
||||
// 'layouts/**/*.js',
|
||||
|
|
@ -26,9 +26,46 @@ module.exports = function(grunt) {
|
|||
"jQuery" : true,
|
||||
"console" : true,
|
||||
"window" : true
|
||||
}
|
||||
},
|
||||
ignores : [
|
||||
'skins/xe_2010_gallery/js/jquery.easing.1.3.js',
|
||||
'skins/xe_2010_gallery/js/json2007.js',
|
||||
'**/*.min.js',
|
||||
'**/*.compressed.js'
|
||||
]
|
||||
}
|
||||
},
|
||||
csslint: {
|
||||
strict: {
|
||||
options: {
|
||||
'adjoining-classes' : false,
|
||||
'box-model' : false,
|
||||
'duplicate-background-images' : false,
|
||||
'ids' : false,
|
||||
'important' : false,
|
||||
'overqualified-elements' : false,
|
||||
'qualified-headings' : false,
|
||||
'star-property-hack' : false,
|
||||
'underscore-property-hack' : false,
|
||||
},
|
||||
src: [
|
||||
'common/css/*.css',
|
||||
'!common/css/bootstrap.css',
|
||||
'!common/css/bootstrap-responsive.css',
|
||||
'!**/*.min.css',
|
||||
]
|
||||
}
|
||||
},
|
||||
cssmin: {
|
||||
'common-css': {
|
||||
options: {
|
||||
banner: '/* My minified css file */'
|
||||
},
|
||||
files: {
|
||||
'path/to/output.css': ['path/to/**/*.css']
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('build', '', function(A, B) {
|
||||
|
|
@ -165,6 +202,9 @@ module.exports = function(grunt) {
|
|||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-csslint');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
|
||||
grunt.registerTask('default', ['jshint']);
|
||||
grunt.registerTask('lint', ['jshint', 'csslint']);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
"devDependencies": {
|
||||
"grunt": ">0.4.0",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-contrib-jshint": "~0.7.1"
|
||||
"grunt-contrib-jshint": "~0.7.1",
|
||||
"grunt-contrib-csslint": "*",
|
||||
"grunt-contrib-cssmin": "~0.7.0"
|
||||
},
|
||||
"main": "Gruntfile.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue