mirror of https://github.com/twbs/bootstrap.git
add test-scss Grunt task
This commit is contained in:
parent
2d244d118b
commit
5a986744f7
|
@ -38,6 +38,9 @@ Thumbs.db
|
||||||
validation-report.json
|
validation-report.json
|
||||||
validation-status.json
|
validation-status.json
|
||||||
|
|
||||||
|
# SCSS-Lint
|
||||||
|
scss-lint-report.xml
|
||||||
|
|
||||||
# Folders to ignore
|
# Folders to ignore
|
||||||
bower_components
|
bower_components
|
||||||
node_modules
|
node_modules
|
||||||
|
|
12
Gruntfile.js
12
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: {
|
autoprefixer: {
|
||||||
options: {
|
options: {
|
||||||
browsers: configBridge.config.autoprefixerBrowsers
|
browsers: configBridge.config.autoprefixerBrowsers
|
||||||
|
@ -369,7 +377,7 @@ module.exports = function (grunt) {
|
||||||
// Skip core tests if running a different subset of the test suite
|
// Skip core tests if running a different subset of the test suite
|
||||||
if (runSubset('core') &&
|
if (runSubset('core') &&
|
||||||
// Skip core tests if this is a Savage build
|
// 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
|
// Skip HTML validation if running a different subset of the test suite
|
||||||
if (runSubset('validate-html') &&
|
if (runSubset('validate-html') &&
|
||||||
|
@ -392,6 +400,8 @@ module.exports = function (grunt) {
|
||||||
// JS distribution task.
|
// JS distribution task.
|
||||||
grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']);
|
grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']);
|
||||||
|
|
||||||
|
grunt.registerTask('test-scss', ['scsslint:scss']);
|
||||||
|
|
||||||
// CSS distribution task.
|
// CSS distribution task.
|
||||||
grunt.registerTask('sass-compile', ['sass:core', 'sass:docs']);
|
grunt.registerTask('sass-compile', ['sass:core', 'sass:docs']);
|
||||||
grunt.registerTask('dist-css', ['sass-compile', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core', 'cssmin:docs']);
|
grunt.registerTask('dist-css', ['sass-compile', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core', 'cssmin:docs']);
|
||||||
|
|
Loading…
Reference in New Issue