Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rehorn committed Apr 10, 2013
1 parent 0453e8f commit c61a2f0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -66,7 +66,7 @@ sudo npm install -g node-gyp
* file-check:文件类型、大小监控
* live-build:监控文件系统变动,自动执行制定编译命令

## 如何在 nopo.js 定义一个 NoPo 任务(Task)
### 如何在 nopo.js 定义一个 NoPo 任务(Task)
```js
module.exports = {
"tasks": {
Expand All @@ -87,10 +87,10 @@ module.exports = {
}
}
```
## NoPo 中并行与串行
### NoPo 中并行与串行
nopo 默认支持命令和任务的并行和串行,使用“,”代表并行,使用“|”代表串行

## 如何在 nopo.js 定义一个包含并行串行命令的 NoPo 任务(Task)
### 如何在 nopo.js 定义一个包含并行串行命令的 NoPo 任务(Task)
```js
module.exports = {
"tasks": {
Expand Down Expand Up @@ -118,6 +118,10 @@ module.exports = {
}
```

### 运行 examples
cd path-to-nopo/test/nopo-test
nopo

## 说明
NoPo 前身是本人之前为项目写的一个 [python 项目编译脚本](https://github.com/rehorn/webcompiler.git)
[WebQQ](http://web.qq.com)[Q+](http://www.qplus.com)[QQ互联](http://connect.qq.com)[Alloy团队](http://alloyteam.github.com)等项目中都有应用
Expand Down
Empty file added doc/config.md
Empty file.
17 changes: 16 additions & 1 deletion lib/cmd/clean/readme
@@ -1 +1,16 @@
# remove files / floders
# 删除文件或文件夹 remove files / floders
### 任务demo
```js
module.exports = {
"tasks": {
// 删除 publish.zip 和 public 目录
"task1": {
"cmd": "clean",
"source": ["../publish.zip", "public/"]
}
}
}
```

### 命令参数说明
无配置参数
18 changes: 17 additions & 1 deletion lib/cmd/concat/readme
@@ -1 +1,17 @@
# combine files into one
# 合并文件 combine files into one
### 任务demo
```js
module.exports = {
"tasks": {
// 将 js 目录下所有 js 文件合并成 nopo_concat.js
"task1": {
"cmd": "concat",
"source": "js/*.js",
"target": "js/nopo_concat.js"
}
}
}
```

### 命令参数说明
无配置参数

0 comments on commit c61a2f0

Please sign in to comment.