File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,21 @@ Demo: https://ispring.github.io/WebGlobe/index.html
17
17
** 如果觉得不错,欢迎Star和Fork!**
18
18
19
19
## Setup dev environment
20
- 1 . 项目采用TypeScript编写,编译成JavaScript运行,推荐使用 [ Visual Studio Code ] ( http://code.visualstudio.com/ ) 作为编辑器 。
20
+ 1 . 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发的代码都提交到该分支;master分支用于release,当develop分支中的代码比较稳定切有重要更新的时候,会将develop分支的代码merge到master分支,然后通过master分支进行发布新版本 。
21
21
22
- 2 . 通过npm install -g typescript gulp-cli安装全局模块typescript和gulp 。
22
+ 2 . 项目采用TypeScript编写,编译成JavaScript运行,推荐使用 [ Visual Studio Code ] ( http://code.visualstudio.com/ ) 作为编辑器 。
23
23
24
- 3 . 在项目的根目录下执行npm install,安装所需模块 。
24
+ 3 . 通过npm install -g typescript gulp-cli安装全局模块typescript和gulp 。
25
25
26
- 4 . 通过gulp进行编译打包,gulpfile中定义了多个task:
26
+ 4 . 在项目的根目录下执行npm install,安装所需模块。
27
+
28
+ 5 . 通过gulp进行编译打包,gulpfile中定义了多个task:
27
29
- clear用于清除编译打包的结果
28
30
- compile用于将TypeScript版本的模块编译成JavaScript版本的AMD模块
29
31
- bundle用于将TypeScript版本的模块打包成一个JavaScript压缩文件
30
32
- build用于执行以上所有的task
31
33
32
- 5 . 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了网络请求数量,减少了文件体积,用于生产环境。
34
+ 6 . 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了网络请求数量,减少了文件体积,用于生产环境。
33
35
34
36
35
37
You can’t perform that action at this time.
0 commit comments