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
5e5489ce
Commit
5e5489ce
authored
Jan 30, 2015
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release: push dist to same remote as project
Conflicts: build/release/dist.js
parent
f71d7f56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dist.js
build/release/dist.js
+2
-3
No files found.
build/release/dist.js
View file @
5e5489ce
...
@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
...
@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
fs
=
require
(
"fs"
),
fs
=
require
(
"fs"
),
shell
=
require
(
"shelljs"
),
shell
=
require
(
"shelljs"
),
pkg
=
require
(
Release
.
dir
.
repo
+
"/package.json"
),
pkg
=
require
(
Release
.
dir
.
repo
+
"/package.json"
),
distRemote
=
Release
.
remote
.
replace
(
"jquery"
,
"jquery-compat-dist"
),
// These files are included with the distrubtion
// These files are included with the distrubtion
files
=
[
files
=
[
"src"
,
"src"
,
...
@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
...
@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
* Clone the distribution repo
* Clone the distribution repo
*/
*/
function
clone
()
{
function
clone
()
{
var
distRemote
=
Release
.
remote
.
replace
(
"jquery"
,
"jquery-compat-dist"
);
Release
.
chdir
(
Release
.
dir
.
base
);
Release
.
chdir
(
Release
.
dir
.
base
);
Release
.
dir
.
dist
=
Release
.
dir
.
base
+
"/dist"
;
Release
.
dir
.
dist
=
Release
.
dir
.
base
+
"/dist"
;
...
@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) {
...
@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) {
Release
.
chdir
(
Release
.
dir
.
dist
);
Release
.
chdir
(
Release
.
dir
.
dist
);
console
.
log
(
"Pushing release to dist repo..."
);
console
.
log
(
"Pushing release to dist repo..."
);
Release
.
exec
(
"git push
origin
master --tags"
,
Release
.
exec
(
"git push
"
+
distRemote
+
"
master --tags"
,
"Error pushing master and tags to git repo."
);
"Error pushing master and tags to git repo."
);
// Set repo for npm publish
// Set repo for npm publish
...
...
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