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
e239873b
Commit
e239873b
authored
Oct 07, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bower install script and release scripts to jshint and pass lint
parent
44b9d874
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
15 deletions
+12
-15
Gruntfile.js
Gruntfile.js
+1
-1
bower-install.js
build/bower-install.js
+1
-1
release-notes.js
build/release-notes.js
+4
-7
release.js
build/release.js
+6
-6
No files found.
Gruntfile.js
View file @
e239873b
...
@@ -64,7 +64,7 @@ module.exports = function( grunt ) {
...
@@ -64,7 +64,7 @@ module.exports = function( grunt ) {
options
:
srcHintOptions
options
:
srcHintOptions
},
},
grunt
:
{
grunt
:
{
src
:
[
"Gruntfile.js"
,
"build/tasks/*"
],
src
:
[
"Gruntfile.js"
,
"build/tasks/*"
,
"build/{bower-install,release-notes,release}.js"
],
options
:
{
options
:
{
jshintrc
:
".jshintrc"
jshintrc
:
".jshintrc"
}
}
...
...
build/bower-install.js
View file @
e239873b
...
@@ -10,4 +10,4 @@ try {
...
@@ -10,4 +10,4 @@ try {
process
.
exit
(
0
);
process
.
exit
(
0
);
}
}
spawn
(
"bower"
,
[
"install"
],
{
stdio
:
'inherit'
}
);
spawn
(
"bower"
,
[
"install"
],
{
stdio
:
"inherit"
}
);
build/release-notes.js
View file @
e239873b
...
@@ -3,10 +3,8 @@
...
@@ -3,10 +3,8 @@
* jQuery Release Note Generator
* jQuery Release Note Generator
*/
*/
var
fs
=
require
(
"fs"
),
var
http
=
require
(
"http"
),
http
=
require
(
"http"
),
extract
=
/<a href="
\/
ticket
\/(\d
+
)
" title="View ticket">
(
.*
?)
<
[^
"
]
+"component">
\s
*
(\S
+
)
/g
,
extract
=
/<a href="
\/
ticket
\/(\d
+
)
" title="View ticket">
(
.*
?)
<
[^
"
]
+"component">
\s
*
(\S
+
)
/g
,
categories
=
[],
version
=
process
.
argv
[
2
];
version
=
process
.
argv
[
2
];
if
(
!
/^
\d
+
\.\d
+/
.
test
(
version
)
)
{
if
(
!
/^
\d
+
\.\d
+/
.
test
(
version
)
)
{
...
@@ -27,13 +25,12 @@ http.request({
...
@@ -27,13 +25,12 @@ http.request({
});
});
res
.
on
(
"end"
,
function
()
{
res
.
on
(
"end"
,
function
()
{
var
match
,
var
match
,
cur
,
cat
,
file
=
data
.
join
(
""
),
file
=
data
.
join
(
""
);
cur
;
while
(
(
match
=
extract
.
exec
(
file
))
)
{
while
(
(
match
=
extract
.
exec
(
file
))
)
{
if
(
"#"
+
match
[
1
]
!==
match
[
2
]
)
{
if
(
"#"
+
match
[
1
]
!==
match
[
2
]
)
{
var
cat
=
match
[
3
];
cat
=
match
[
3
];
if
(
!
cur
||
cur
!==
cat
)
{
if
(
!
cur
||
cur
!==
cat
)
{
if
(
cur
)
{
if
(
cur
)
{
...
...
build/release.js
View file @
e239873b
...
@@ -101,7 +101,7 @@ function initialize( next ) {
...
@@ -101,7 +101,7 @@ function initialize( next ) {
console
.
log
(
"Current version is "
+
pkg
.
version
+
"; generating release "
+
releaseVersion
);
console
.
log
(
"Current version is "
+
pkg
.
version
+
"; generating release "
+
releaseVersion
);
version
=
pkg
.
version
.
match
(
rsemver
);
version
=
pkg
.
version
.
match
(
rsemver
);
oldver
=
(
+
version
[
1
]
)
*
10000
+
(
+
version
[
2
]
*
100
)
+
(
+
version
[
3
]
)
oldver
=
(
+
version
[
1
]
)
*
10000
+
(
+
version
[
2
]
*
100
)
+
(
+
version
[
3
]
)
;
newver
=
(
+
major
)
*
10000
+
(
+
minor
*
100
)
+
(
+
patch
);
newver
=
(
+
major
)
*
10000
+
(
+
minor
*
100
)
+
(
+
patch
);
if
(
newver
<
oldver
)
{
if
(
newver
<
oldver
)
{
die
(
"Next version is older than current version!"
);
die
(
"Next version is older than current version!"
);
...
@@ -112,7 +112,7 @@ function initialize( next ) {
...
@@ -112,7 +112,7 @@ function initialize( next ) {
}
}
function
checkGitStatus
(
next
)
{
function
checkGitStatus
(
next
)
{
git
(
[
"status"
],
function
(
error
,
stdout
,
stderr
)
{
git
(
[
"status"
],
function
(
error
,
stdout
)
{
var
onBranch
=
((
stdout
||
""
).
match
(
/On branch
(\S
+
)
/
)
||
[])[
1
];
var
onBranch
=
((
stdout
||
""
).
match
(
/On branch
(\S
+
)
/
)
||
[])[
1
];
if
(
onBranch
!==
branch
)
{
if
(
onBranch
!==
branch
)
{
dieIfReal
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
dieIfReal
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
...
@@ -135,7 +135,7 @@ function tagReleaseVersion( next ) {
...
@@ -135,7 +135,7 @@ function tagReleaseVersion( next ) {
}
}
function
gruntBuild
(
next
)
{
function
gruntBuild
(
next
)
{
exec
(
gruntCmd
,
[],
function
(
error
,
stdout
)
{
exec
(
gruntCmd
,
[],
function
(
error
,
stdout
,
stderr
)
{
if
(
error
)
{
if
(
error
)
{
die
(
error
+
stderr
);
die
(
error
+
stderr
);
}
}
...
@@ -218,10 +218,10 @@ function pushToGithub( next ) {
...
@@ -218,10 +218,10 @@ function pushToGithub( next ) {
function
steps
()
{
function
steps
()
{
var
cur
=
0
,
var
cur
=
0
,
st
eps
=
arguments
;
st
=
arguments
;
(
function
next
(){
(
function
next
(){
process
.
nextTick
(
function
(){
process
.
nextTick
(
function
(){
st
eps
[
cur
++
](
next
);
st
[
cur
++
](
next
);
});
});
})();
})();
}
}
...
@@ -258,7 +258,7 @@ function makeArchive( cdn, files, fn ) {
...
@@ -258,7 +258,7 @@ function makeArchive( cdn, files, fn ) {
return
"dist/"
+
item
.
replace
(
/VER/g
,
releaseVersion
);
return
"dist/"
+
item
.
replace
(
/VER/g
,
releaseVersion
);
});
});
exec
(
"md5sum"
,
files
,
function
(
err
,
stdout
,
stderr
)
{
exec
(
"md5sum"
,
files
,
function
(
err
,
stdout
)
{
fs
.
writeFileSync
(
md5file
,
stdout
);
fs
.
writeFileSync
(
md5file
,
stdout
);
files
.
push
(
md5file
);
files
.
push
(
md5file
);
...
...
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