Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dbgame-build
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
wildfirecode13
dbgame-build
Commits
bfdaf943
Commit
bfdaf943
authored
Sep 12, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3a93f831
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
build.js
build/build.js
+18
-1
index.js
index.js
+4
-1
package.json
package.json
+1
-1
No files found.
build/build.js
View file @
bfdaf943
...
...
@@ -78,8 +78,25 @@ let buildTS = opts => {
});
});
};
let
buildEXML
=
opts
=>
{
if
(
!
opts
.
BUILD_SKIN
)
{
console
.
error
(
'请输入需要构建的项目名称
\
n'
);
return
false
;
}
const
dist
=
path
.
join
(
process
.
cwd
(),
opts
.
BUILD_SKIN
,
'bin-release'
)
rm
(
dist
,
err
=>
{
if
(
err
)
throw
err
;
let
webpackConfig
=
prodConfig
(
opts
);
// 构建
shelljs
.
cd
(
opts
.
BUILD_SKIN
);
shelljs
.
exec
(
'egret publish exml && node publish.js'
);
shelljs
.
cd
(
'..'
);
});
};
module
.
exports
=
{
build
:
build
,
buildTS
:
buildTS
buildTS
:
buildTS
,
buildEXML
:
buildEXML
};
index.js
View file @
bfdaf943
...
...
@@ -47,7 +47,10 @@ class DuibaGameBuild {
this
.
slicePath
(
skin
);
buildObj
.
buildTS
(
this
.
opts
);
}
buildProdEXML
(
skin
)
{
this
.
slicePath
(
skin
);
buildObj
.
buildEXML
(
this
.
opts
);
}
/**
* 备份 把skins/下的所有文件复制到backup/下
...
...
package.json
View file @
bfdaf943
...
...
@@ -17,5 +17,5 @@
"
co
"
:
"
^4.6.0
"
,
"
progress
"
:
"
^2.0.0
"
},
"version"
:
"0.0.
5
"
"version"
:
"0.0.
7
"
}
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