Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mirreal committed Jul 31, 2017
1 parent 907afd3 commit 6f2bce2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,39 @@

## 环境要求

项目使用ES7语法,建议使用node8运行此项目
项目使用 ES7 语法,建议使用 node8 运行此项目

## 使用方法

### Installation

```sh
npm run build
npm install format-weekly -g
```

生成两个文件,一个用于 email,一个用于 zhihu
### Execution

## TODO
```sh
$ format-weekly
// 指定文件
$ format-weekly md/weekly.md
// 制定输出目录
$ format-weekly -o build md/weekly.md
```

### Help

```sh
$ format-weekly -h

wait
Usage: format-weekly [options] [file.md]


Options:

-V, --version output the version number
-o, --output [out] configure the output directory
-h, --help output usage information
```

生成两个文件,一个用于 email,一个用于 zhihu
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"bin": {
"format-weekly": "./bin/format-weekly.js"
},
"main": "./lib/index.js",
"scripts": {
"start": "node .bin/format-weekly"
"start": "node ./bin/format-weekly"
},
"repository": {
"type": "git",
Expand All @@ -19,6 +18,12 @@
"url": "https://github.com/CtripFE/format-weekly/issues"
},
"homepage": "https://github.com/CtripFE/format-weekly#readme",
"contributors": [
{
"name": "Curtis",
"email": "http://chenbingshu.com/"
}
],
"dependencies": {
"commander": "^2.11.0",
"lodash": "^4.17.4",
Expand Down

0 comments on commit 6f2bce2

Please sign in to comment.