Skip to content

Commit

Permalink
增加fekit.config的说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
rinh committed Dec 11, 2012
1 parent e8370b2 commit 37eabd1
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,37 @@ FEKIT
npm install coffee-script -g
npm install fekit -g

## 使用
### 使用

fekit {命令名} --help

### fekit.config

{
// 编译方案, 参考 [issue #1](https://github.com/rinh/fekit/issues/1)
"compiler" : `false` 或 `SMD` ,

// 库的配置, 该库作为编译时, import 和 require 使用
"lib" : {
"core" : "./src/core" /* 该路径相对于当前fekit.config文件 */
} ,

// 将要导出至 `prd` 和 `dev` 目录的文件列表
// 其中所有路径, 均相对于 `src` 目录
"export" : [

// 第一种配置方式, 直接写出要导出的文件相对路径
"./scripts/page-a.js" ,

// 第二种配置方式, 当要导出的文件, 在实际使用时有上级依赖, 则可以将上级依赖的文件加入`parents`节点
{
"path" : "./scripts/page-b.js" ,
"parents" : [ "./scripts/page-a.js" ]
}
]
}

## 为fekit贡献代码

fekit是一个插件化, 易于扩展的工具集, 如果你愿意为它增加功能, 请看下面的内容
Expand Down

0 comments on commit 37eabd1

Please sign in to comment.