Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
7ddde7aa
Commit
7ddde7aa
authored
Jan 02, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a127324e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
workspace.xml
.idea/workspace.xml
+1
-1
README.md
README.md
+14
-11
No files found.
.idea/workspace.xml
View file @
7ddde7aa
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<workItem
from=
"1577930011085"
duration=
"180000"
/>
<workItem
from=
"1577930011085"
duration=
"180000"
/>
<workItem
from=
"1577930609251"
duration=
"17000"
/>
<workItem
from=
"1577930609251"
duration=
"17000"
/>
<workItem
from=
"1577930719659"
duration=
"80000"
/>
<workItem
from=
"1577930719659"
duration=
"80000"
/>
<workItem
from=
"1577930812985"
duration=
"
546
000"
/>
<workItem
from=
"1577930812985"
duration=
"
1411
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
README.md
View file @
7ddde7aa
## 安装和更新构建工具
## 安装和更新构建工具
重新拉取代码,然后安装依赖。
重新拉取代码,然后安装依赖。
```
bash
```
bash
git pull
&&
cnpm
install
git pull
&&
cnpm
install
```
```
## 启动本地服务器
## 启动本地服务器
```
bash
```
bash
npm run dev
npm run dev
```
```
之后会自动打开浏览器。建议在vscode中f5调试,效率更高。
之后会自动打开浏览器。建议在vscode中f5调试,效率更高。
...
@@ -16,19 +16,19 @@ npm run dev
...
@@ -16,19 +16,19 @@ npm run dev
npm run build
npm run build
```
```
### 仅仅发布src下的TS代码
### 仅仅发布src下的TS代码
```
bash
```
bash
npm run buildTS
npm run buildTS
```
```
之后只需要更新皮肤中的
`output.js`
文件的版本号
之后只需要更新皮肤中的
`output.js`
文件的版本号
```
js
```
html
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/db_games/activity/demo/1537173012/output.js"
></script>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/db_games/activity/demo/1537173012/output.js"
></script>
```
```
### 仅仅发布exmls文件
### 仅仅发布exmls文件
```
bash
```
bash
npm run buildExml
npm run buildExml
```
```
之后只需要更新皮肤中的
`default.thm.js`
文件的版本号
之后只需要更新皮肤中的
`default.thm.js`
文件的版本号
```
js
```
html
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/db_games/activity/demo/1537172754/r"
></script>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/db_games/activity/demo/1537172754/r"
></script>
```
```
...
@@ -98,34 +98,37 @@ npm源配置。
...
@@ -98,34 +98,37 @@ npm源配置。
## 项目创建和维护流程
## 项目创建和维护流程
1.
先建立一个分支
1.
先建立一个分支
```
bash
git checkout
-b
kickball-20180910
git checkout
-b
kickball-20180910
```
2.
然后duiba-games下直接创建【项目名称】的文件夹kickball-20180910
2.
然后duiba-games下直接创建【项目名称】的文件夹kickball-20180910
3.
push分支到远程
3.
push分支到远程
```
bash
git push
--set-upstream
origin kickball-20180910
git push
--set-upstream
origin kickball-20180910
```
4.
然后在分支下开发,如果是新类型游戏,将来可能需要换皮的,那么备份到backup下。移动 kickball-20180910到backup。
4.
然后在分支下开发,如果是新类型游戏,将来可能需要换皮的,那么备份到backup下。移动 kickball-20180910到backup。
5.
然后合并到主分支。
5.
然后合并到主分支。
```
bash
git checkout dev
git checkout dev
git merge kickball-20180910
git merge kickball-20180910
git push
git push
```
6、因为已经backup,所以这个分支已经没用了,删除分支
6、因为已经backup,所以这个分支已经没用了,删除分支
```
bash
git branch
-D
kickball-20180910
git branch
-D
kickball-20180910
git push origin :kickball-20180910
git push origin :kickball-20180910
```
如果不需backup后面要维护,那么留着分支,不必合并到主分支。这样可以避免频繁提交导致的频繁git pull,提升效率。
如果不需backup后面要维护,那么留着分支,不必合并到主分支。这样可以避免频繁提交导致的频繁git pull,提升效率。
\ No newline at end of file
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