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
a4d90ab5
Commit
a4d90ab5
authored
Sep 19, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update release script for sourcmap syntax change
(cherry picked from commit
d79c036a
)
parent
94a9a4f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
release.js
build/release.js
+4
-4
No files found.
build/release.js
View file @
a4d90ab5
...
@@ -118,7 +118,7 @@ function checkGitStatus( next ) {
...
@@ -118,7 +118,7 @@ function checkGitStatus( next ) {
dieIfReal
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
dieIfReal
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
}
}
if
(
/Changes to be committed/i
.
test
(
stdout
)
)
{
if
(
/Changes to be committed/i
.
test
(
stdout
)
)
{
dieIfReal
(
"Please commit changed files before attemping to push a release."
);
dieIfReal
(
"Please commit changed files before attemp
t
ing to push a release."
);
}
}
if
(
/Changes not staged for commit/i
.
test
(
stdout
)
)
{
if
(
/Changes not staged for commit/i
.
test
(
stdout
)
)
{
dieIfReal
(
"Please stash files before attempting to push a release."
);
dieIfReal
(
"Please stash files before attempting to push a release."
);
...
@@ -166,10 +166,10 @@ function makeReleaseCopies( next ) {
...
@@ -166,10 +166,10 @@ function makeReleaseCopies( next ) {
}
else
if
(
/
\.
min
\.
js$/
.
test
(
releaseFile
)
)
{
}
else
if
(
/
\.
min
\.
js$/
.
test
(
releaseFile
)
)
{
// Minified files point back to the corresponding map;
// Minified files point back to the corresponding map;
// again assume one big happy directory.
// again assume one big happy directory.
// "//
@
sourceMappingURL=jquery.min.map"
// "//
#
sourceMappingURL=jquery.min.map"
text
=
fs
.
readFileSync
(
builtFile
,
"utf8"
)
text
=
fs
.
readFileSync
(
builtFile
,
"utf8"
)
.
replace
(
/
\/\/
@
sourceMappingURL=
\S
+/
,
.
replace
(
/
\/\/
#
sourceMappingURL=
\S
+/
,
"//
@
sourceMappingURL="
+
unpathedFile
.
replace
(
/
\.
js$/
,
".map"
)
);
"//
#
sourceMappingURL="
+
unpathedFile
.
replace
(
/
\.
js$/
,
".map"
)
);
fs
.
writeFileSync
(
releaseFile
,
text
);
fs
.
writeFileSync
(
releaseFile
,
text
);
}
else
if
(
builtFile
!==
releaseFile
)
{
}
else
if
(
builtFile
!==
releaseFile
)
{
copy
(
builtFile
,
releaseFile
);
copy
(
builtFile
,
releaseFile
);
...
...
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