Skip to content

Commit 04901d4

Browse files
committed
update readme
1 parent 96777f4 commit 04901d4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
- 自动化流程
1616
- [Less -> CSS (Sass 可自行定制)](https://github.com/weixin/tmt-workflow/wiki/%E2%92%8C-Less-%E7%BC%96%E8%AF%91)
1717
- [CSS Autoprefixer 前缀自动补全](https://github.com/weixin/tmt-workflow/wiki/%E2%92%8D-Autoprefixer)
18-
- [Less sourcemaps 调试支持](http://robdodson.me/debug-less-with-chrome-developer-tools/)
1918
- [自动生成图片 CSS 属性,width & height 等](https://github.com/weixin/gulp-lazyimagecss)
2019
- [CSS 压缩 cssnano](https://github.com/ben-eb/cssnano)
2120
- [CSS Sprite 雪碧图合成](https://github.com/weixin/tmt-workflow/wiki/%E2%92%8E-CSS-Sprite)
@@ -36,16 +35,18 @@
3635

3736
以下 2 种方式任选,请确保已安装 [Node.js](https://nodejs.org/) 环境
3837

39-
* 使用 [yoeman](http://yeoman.io/) 自动安装, 也可自行定制脚手架 [generator-workflow](https://github.com/weixin/generator-workflow)
38+
* 使用 [Yoeman](http://yeoman.io/) 脚手架 [generator-workflow]() 自动安装(推荐)
4039
* `npm install -g generator-workflow`
4140
* `yo workflow`
4241

4342
* 直接下载安装:
4443
1. 全局安装 [Gulp 4](https://github.com/gulpjs/gulp/tree/4.0),执行:`npm install gulpjs/gulp#4.0 -g`
4544
2. 点击下载 [tmt-workflow](https://github.com/weixin/tmt-workflow/archive/master.zip),进入根目录执行: `npm install`
4645

47-
> 注:[Gulp 4](https://github.com/gulpjs/gulp/tree/4.0) 目前 [尚未正式发布](https://github.com/gulpjs/gulp/blob/4.0/CHANGELOG.md),Windows 用户请先安装 [git](http://git-scm.com/)
48-
> 然后在 [Git Bash](http://git-for-windows.github.io/) 下执行 `npm install` 即可(非 `CMD`)。
46+
> 注1:[Gulp 4](https://github.com/gulpjs/gulp/tree/4.0) 目前 [尚未正式发布](https://github.com/gulpjs/gulp/blob/4.0/CHANGELOG.md),Windows 用户请先安装 [git](http://git-scm.com/)
47+
> 然后在 [Git Bash](http://git-for-windows.github.io/) 下执行 `npm install` 即可(非 `CMD`)。
48+
>
49+
> 注2:如遇 `npm install` 网络问题,推荐尝试 [cnmp](http://npm.taobao.org/) 安装环境依赖
4950
5051
## 目录结构
5152

@@ -186,20 +187,20 @@ _注:浏览器刷新功能可在 `.tmtworkflowrc` 中进行配置_
186187

187188
**3. FTP 部署 `gulp ftp`**
188189

189-
依赖于 `生产任务`,执行后,会将 `gulp build_dist` 生成 `/dist` 目录上传至 `.tmtworkflowrc` 指定的 `FTP` 服务器。
190+
依赖于 `生产任务`,执行后,会先执行 `gulp build_dist` ,然后将其生成的 `/dist` 目录上传至 `.tmtworkflowrc` 指定的 `FTP` 服务器。
190191

191192
**4. 打包任务 `gulp zip`**
192193

193194
`gulp build_dist` 生成 `dist` 目录压缩成 `zip` 格式。
194195

195-
> 注1:**`./src`** 为源文件目录,`/dev``/dist` 目录为流程**生成目录**,建议设置为编辑器忽略
196-
> 注2:`FTP``zip` 任务执行后会自动删除**生成目录**
196+
> 注1:**`./src`** 为源文件目录,`/dev``/dist` 目录为流程**自动**生成的目录
197+
> 注2:`FTP``zip` 任务执行后会**自动删除** `/dist` 目录
197198
198199
更多详细说明 [参见 WiKi](https://github.com/weixin/tmt-workflow/wiki/%E2%92%8B-%E4%BB%BB%E5%8A%A1%E4%BB%8B%E7%BB%8D)
199200

200201
## 使用预览
201202

202-
推荐配合 [WebStorm](https://www.jetbrains.com/webstorm/) 等编辑器的 [Gulp 任务管理器](https://www.jetbrains.com/webstorm/help/using-gulp-task-runner.html) 使用更佳
203+
推荐配合 [WebStorm](https://www.jetbrains.com/webstorm/) 等编辑器的 [Gulp 任务管理器](https://www.jetbrains.com/webstorm/help/using-gulp-task-runner.html) 使用,体验更佳
203204

204205
![tmt-workflow yo](https://cloud.githubusercontent.com/assets/1049575/13744821/77a67476-ea25-11e5-9cf3-eebf56ffbe03.gif)
205206

0 commit comments

Comments
 (0)