diff options
author | Mark Otto <markdotto@gmail.com> | 2016-01-04 05:09:09 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2016-01-04 05:09:09 +0300 |
commit | 4198d61bb548de0d3fe6e50345b6614bace61a79 (patch) | |
tree | 2eb84495b4efddfe02e3c6649db18ba7506a4f06 /Gruntfile.js | |
parent | e93eeaa2b0289cd3403070f60969caf230126525 (diff) |
enable scsslinting for docs scss
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 90d7fa8ecc..82909bc963 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -213,7 +213,12 @@ module.exports = function (grunt) { config: 'scss/.scss-lint.yml', reporterOutput: null }, - src: ['scss/*.scss', '!scss/_normalize.scss'] + core: { + src: ['scss/*.scss', '!scss/_normalize.scss'] + }, + docs: { + src: ['docs/assets/scss/*.scss', '!scss/_normalize.scss'] + } }, postcss: { @@ -462,7 +467,7 @@ module.exports = function (grunt) { // JS distribution task. grunt.registerTask('dist-js', ['babel:dev', 'concat', 'lineremover', 'babel:dist', 'stamp', 'uglify:core', 'commonjs']); - grunt.registerTask('test-scss', ['scsslint']); + grunt.registerTask('test-scss', ['scsslint:core']); // CSS distribution task. // Supported Compilers: sass (Ruby) and libsass. @@ -491,7 +496,7 @@ module.exports = function (grunt) { }); // Docs task. - grunt.registerTask('docs-css', ['postcss:docs', 'postcss:examples', 'csscomb:docs', 'csscomb:examples', 'cssmin:docs']); + grunt.registerTask('docs-css', ['scsslint:docs', 'postcss:docs', 'postcss:examples', 'csscomb:docs', 'csscomb:examples', 'cssmin:docs']); grunt.registerTask('docs-js', ['uglify:docsJs']); grunt.registerTask('lint-docs-js', ['jscs:assets']); grunt.registerTask('docs', ['docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs']); |