Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2014-12-09 06:02:25 +0300
committerChris Rebert <code@rebertia.com>2014-12-09 06:02:25 +0300
commit5a986744f7108b820488e08b41f576372a81f7a3 (patch)
tree703371f31034239d9a3a2d5b554952a3e2547b6c
parent2d244d118bdeb687f8279b1eb0d57b8ec4f3a8fb (diff)
add test-scss Grunt task
-rw-r--r--.gitignore3
-rw-r--r--Gruntfile.js12
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']);