Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
static-ci
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
6cfb47d8e79ed6c0be60e65d3aabbd7d594459e8
1 parent
2df16b25
dist name
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
apps/ci/build.js
apps/ci/build.js
View file @
6cfb47d
...
...
@@ -47,8 +47,10 @@ class Build {
this
.
_prebuild
();
this
.
startTime
=
(
new
Date
()).
getTime
();
return
this
.
_cloneCode
(
this
.
branch
).
then
(()
=>
{
let
pkg
=
require
(
path
.
join
(
this
.
codePath
,
'package.json'
));
// set version
self
.
version
=
require
(
path
.
join
(
this
.
codePath
,
'package.json'
)).
version
;
self
.
version
=
pkg
.
version
;
self
.
pkgName
=
pkg
.
name
;
return
self
.
_installdep
();
}).
then
(()
=>
{
...
...
@@ -213,7 +215,7 @@ class Build {
var
self
=
this
;
this
.
_log
(
'>>>>>>>>> clone to deploy folder >>>>>>>>>>'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
let
projectRoot
=
`
public
/
dist
/
$
{
self
.
p
roject
.
n
ame
}
/`
;
let
projectRoot
=
`
public
/
dist
/
$
{
self
.
p
kgN
ame
}
/`
;
self
.
_state
(
'clone to deploy'
);
...
...
Please
register
or
login
to post a comment