Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
5a986744
Commit
5a986744
authored
Dec 08, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test-scss Grunt task
parent
2d244d11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
.gitignore
.gitignore
+3
-0
Gruntfile.js
Gruntfile.js
+11
-1
No files found.
.gitignore
View file @
5a986744
...
@@ -38,6 +38,9 @@ Thumbs.db
...
@@ -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
Gruntfile.js
View file @
5a986744
...
@@ -167,6 +167,14 @@ module.exports = function (grunt) {
...
@@ -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) {
...
@@ -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) {
...
@@ -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
'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment