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
ffdc18cb
Commit
ffdc18cb
authored
Jan 17, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #12274
parent
c5bed1a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Gruntfile.js
Gruntfile.js
+13
-13
No files found.
Gruntfile.js
View file @
ffdc18cb
...
...
@@ -7,14 +7,14 @@ module.exports = function (grunt) {
grunt
.
util
.
linefeed
=
'
\n
'
;
RegExp
.
quote
=
function
(
string
)
{
return
string
.
replace
(
/
[
-
\\
^$*+?.()|[
\]
{}
]
/g
,
'
\\
$&
'
)
}
return
string
.
replace
(
/
[
-
\\
^$*+?.()|[
\]
{}
]
/g
,
'
\\
$&
'
)
;
}
;
var
BsLessdocParser
=
require
(
'
./docs/grunt/bs-lessdoc-parser.js
'
)
var
fs
=
require
(
'
fs
'
)
var
generateGlyphiconsData
=
require
(
'
./docs/grunt/bs-glyphicons-data-generator.js
'
)
var
generateRawFilesJs
=
require
(
'
./docs/grunt/bs-raw-files-generator.js
'
)
var
path
=
require
(
'
path
'
)
var
BsLessdocParser
=
require
(
'
./docs/grunt/bs-lessdoc-parser.js
'
)
;
var
fs
=
require
(
'
fs
'
)
;
var
generateGlyphiconsData
=
require
(
'
./docs/grunt/bs-glyphicons-data-generator.js
'
)
;
var
generateRawFilesJs
=
require
(
'
./docs/grunt/bs-raw-files-generator.js
'
)
;
var
path
=
require
(
'
path
'
)
;
// Project configuration.
grunt
.
initConfig
({
...
...
@@ -325,8 +325,8 @@ module.exports = function (grunt) {
sed
:
{
versionNumber
:
{
pattern
:
(
function
()
{
var
old
=
grunt
.
option
(
'
oldver
'
)
return
old
?
RegExp
.
quote
(
old
)
:
old
var
old
=
grunt
.
option
(
'
oldver
'
)
;
return
old
?
RegExp
.
quote
(
old
)
:
old
;
})(),
replacement
:
grunt
.
option
(
'
newver
'
),
recursive
:
true
...
...
@@ -364,16 +364,16 @@ module.exports = function (grunt) {
testSubtasks
.
push
(
'
validate-html
'
);
}
// Only run Sauce Labs tests if there's a Sauce access key
if
(
typeof
process
.
env
.
SAUCE_ACCESS_KEY
!==
'
undefined
'
if
(
typeof
process
.
env
.
SAUCE_ACCESS_KEY
!==
'
undefined
'
&&
// Skip Sauce if running a different subset of the test suite
&&
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
sauce-js-unit
'
))
{
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
sauce-js-unit
'
))
{
testSubtasks
.
push
(
'
connect
'
);
testSubtasks
.
push
(
'
saucelabs-qunit
'
);
}
// Only run BrowserStack tests if there's a BrowserStack access key
if
(
typeof
process
.
env
.
BROWSERSTACK_KEY
!==
'
undefined
'
if
(
typeof
process
.
env
.
BROWSERSTACK_KEY
!==
'
undefined
'
&&
// Skip BrowserStack if running a different subset of the test suite
&&
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
browserstack-js-unit
'
))
{
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
browserstack-js-unit
'
))
{
testSubtasks
.
push
(
'
browserstack_runner
'
);
}
grunt
.
registerTask
(
'
test
'
,
testSubtasks
);
...
...
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