Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
夏彬
jquery
Commits
a289beb6
Commit
a289beb6
authored
Sep 09, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore optIn behavior for builds
Conflicts: build/tasks/build.js
parent
a8627a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
build.js
build/tasks/build.js
+10
-3
No files found.
build/tasks/build.js
View file @
a289beb6
...
@@ -23,6 +23,7 @@ module.exports = function( grunt ) {
...
@@ -23,6 +23,7 @@ module.exports = function( grunt ) {
startFile
:
"src/intro.js"
,
startFile
:
"src/intro.js"
,
endFile
:
"src/outro.js"
endFile
:
"src/outro.js"
},
},
rawText
:
{},
onBuildWrite
:
convert
onBuildWrite
:
convert
};
};
...
@@ -75,6 +76,7 @@ module.exports = function( grunt ) {
...
@@ -75,6 +76,7 @@ module.exports = function( grunt ) {
var
flag
,
var
flag
,
done
=
this
.
async
(),
done
=
this
.
async
(),
flags
=
this
.
flags
,
flags
=
this
.
flags
,
optIn
=
flags
[
"*"
],
name
=
this
.
data
.
dest
,
name
=
this
.
data
.
dest
,
minimum
=
this
.
data
.
minimum
,
minimum
=
this
.
data
.
minimum
,
removeWith
=
this
.
data
.
removeWith
,
removeWith
=
this
.
data
.
removeWith
,
...
@@ -165,10 +167,9 @@ module.exports = function( grunt ) {
...
@@ -165,10 +167,9 @@ module.exports = function( grunt ) {
// *:*:-css all except css and dependents (explicit > implicit)
// *:*:-css all except css and dependents (explicit > implicit)
// *:*:-css:+effects same (excludes effects because explicit include is trumped by explicit exclude of dependency)
// *:*:-css:+effects same (excludes effects because explicit include is trumped by explicit exclude of dependency)
// *:+effects none except effects and its dependencies (explicit include trumps implicit exclude of dependency)
// *:+effects none except effects and its dependencies (explicit include trumps implicit exclude of dependency)
delete
flags
[
"*"
];
for
(
flag
in
flags
)
{
for
(
flag
in
flags
)
{
if
(
flag
!==
"*"
)
{
excluder
(
flag
);
excluder
(
flag
);
}
}
}
grunt
.
verbose
.
writeflags
(
excluded
,
"Excluded"
);
grunt
.
verbose
.
writeflags
(
excluded
,
"Excluded"
);
...
@@ -201,6 +202,12 @@ module.exports = function( grunt ) {
...
@@ -201,6 +202,12 @@ module.exports = function( grunt ) {
grunt
.
file
.
write
(
name
,
compiled
);
grunt
.
file
.
write
(
name
,
compiled
);
};
};
// Turn off opt-in if necessary
if
(
!
optIn
)
{
// Overwrite the default inclusions with the explicit ones provided
config
.
rawText
.
jquery
=
"define(["
+
(
included
.
length
?
included
.
join
(
","
)
:
""
)
+
"]);"
;
}
// Trace dependencies and concatenate files
// Trace dependencies and concatenate files
requirejs
.
optimize
(
config
,
function
(
response
)
{
requirejs
.
optimize
(
config
,
function
(
response
)
{
grunt
.
verbose
.
writeln
(
response
);
grunt
.
verbose
.
writeln
(
response
);
...
...
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