diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Gruntfile.js | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index b3bcd969e1..d60e71a5fd 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,9 @@ Thumbs.db validation-report.json validation-status.json +# SCSS-Lint +scss-lint-report.xml + # Folders to ignore bower_components node_modules diff --git a/Gruntfile.js b/Gruntfile.js index 1e386a1543..5c14306e1a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -167,6 +167,14 @@ module.exports = function (grunt) { } }, + scsslint: { + scss: ['scss/*.scss', '!scss/_normalize.scss'], + options: { + config: 'scss/.scss-lint.yml', + reporterOutput: 'scss-lint-report.xml' + } + }, + autoprefixer: { options: { browsers: configBridge.config.autoprefixerBrowsers @@ -369,7 +377,7 @@ module.exports = function (grunt) { // Skip core tests if running a different subset of the test suite if (runSubset('core') && // Skip core tests if this is a Savage build - process.env.TRAVIS_REPO_SLUG !== 'twbs-savage/bootstrap') { testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'test-js', 'docs']); + process.env.TRAVIS_REPO_SLUG !== 'twbs-savage/bootstrap') { testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'test-scss', 'test-js', 'docs']); } // Skip HTML validation if running a different subset of the test suite if (runSubset('validate-html') && @@ -392,6 +400,8 @@ module.exports = function (grunt) { // JS distribution task. grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']); + grunt.registerTask('test-scss', ['scsslint:scss']); + // CSS distribution task. grunt.registerTask('sass-compile', ['sass:core', 'sass:docs']); grunt.registerTask('dist-css', ['sass-compile', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core', 'cssmin:docs']); |