Skip to content

Commit de374aa

Browse files
authored
Merge pull request #7 from iSpring/develop
Update README.md
2 parents 1fed819 + c917a9c commit de374aa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@ Demo: https://ispring.github.io/WebGlobe/index.html
1717
**如果觉得不错,欢迎Star和Fork!**
1818

1919
## 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分支进行发布新版本
2121

22-
2. 通过npm install -g typescript gulp-cli安装全局模块typescript和gulp
22+
2. 项目采用TypeScript编写,编译成JavaScript运行,推荐使用[Visual Studio Code](http://code.visualstudio.com/)作为编辑器
2323

24-
3. 在项目的根目录下执行npm install,安装所需模块
24+
3. 通过npm install -g typescript gulp-cli安装全局模块typescript和gulp
2525

26-
4. 通过gulp进行编译打包,gulpfile中定义了多个task:
26+
4. 在项目的根目录下执行npm install,安装所需模块。
27+
28+
5. 通过gulp进行编译打包,gulpfile中定义了多个task:
2729
- clear用于清除编译打包的结果
2830
- compile用于将TypeScript版本的模块编译成JavaScript版本的AMD模块
2931
- bundle用于将TypeScript版本的模块打包成一个JavaScript压缩文件
3032
- build用于执行以上所有的task
3133

32-
5. 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了网络请求数量,减少了文件体积,用于生产环境。
34+
6. 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了网络请求数量,减少了文件体积,用于生产环境。
3335

3436

3537

0 commit comments

Comments
 (0)