mirror of https://github.com/ColorlibHQ/AdminLTE
Added bootlint for pages
parent
feac61b20c
commit
f68e1edb0e
11
Gruntfile.js
11
Gruntfile.js
|
@ -124,6 +124,7 @@ module.exports = function (grunt) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Validate CSS files
|
||||||
csslint: {
|
csslint: {
|
||||||
options: {
|
options: {
|
||||||
csslintrc: 'build/less/.csslintrc'
|
csslintrc: 'build/less/.csslintrc'
|
||||||
|
@ -133,6 +134,11 @@ module.exports = function (grunt) {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Validate Bootstrap HTML
|
||||||
|
bootlint: {
|
||||||
|
files: ['pages/**/*.html']
|
||||||
|
},
|
||||||
|
|
||||||
// Delete images in build directory
|
// Delete images in build directory
|
||||||
// After compressing the images in the build/img dir, there is no need
|
// After compressing the images in the build/img dir, there is no need
|
||||||
// for them
|
// for them
|
||||||
|
@ -159,6 +165,11 @@ module.exports = function (grunt) {
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
// Lint CSS
|
// Lint CSS
|
||||||
grunt.loadNpmTasks('grunt-contrib-csslint');
|
grunt.loadNpmTasks('grunt-contrib-csslint');
|
||||||
|
// Lint Bootstrap
|
||||||
|
grunt.loadNpmTasks('grunt-bootlint');
|
||||||
|
|
||||||
|
// Linting task
|
||||||
|
grunt.registerTask('lint', ['jshint', 'csslint', 'bootlint']);
|
||||||
|
|
||||||
// The default task (running "grunt" in console) is "watch"
|
// The default task (running "grunt" in console) is "watch"
|
||||||
grunt.registerTask('default', ['watch']);
|
grunt.registerTask('default', ['watch']);
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"R2": "^1.4.3",
|
"R2": "^1.4.3",
|
||||||
"grunt": "~0.4.5",
|
"grunt": "~0.4.5",
|
||||||
|
"grunt-bootlint": "^0.9.1",
|
||||||
"grunt-contrib-clean": "^0.6.0",
|
"grunt-contrib-clean": "^0.6.0",
|
||||||
"grunt-contrib-csslint": "^0.5.0",
|
"grunt-contrib-csslint": "^0.5.0",
|
||||||
"grunt-contrib-cssmin": "^0.12.2",
|
"grunt-contrib-cssmin": "^0.12.2",
|
||||||
|
|
Loading…
Reference in New Issue