|
|
|
@ -124,6 +124,7 @@ module.exports = function (grunt) {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Validate CSS files
|
|
|
|
|
csslint: {
|
|
|
|
|
options: {
|
|
|
|
|
csslintrc: 'build/less/.csslintrc'
|
|
|
|
@ -133,6 +134,11 @@ module.exports = function (grunt) {
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Validate Bootstrap HTML
|
|
|
|
|
bootlint: {
|
|
|
|
|
files: ['pages/**/*.html']
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Delete images in build directory
|
|
|
|
|
// After compressing the images in the build/img dir, there is no need
|
|
|
|
|
// for them
|
|
|
|
@ -159,6 +165,11 @@ module.exports = function (grunt) {
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
|
|
|
// Lint CSS
|
|
|
|
|
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"
|
|
|
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
|