Skip to content

Commit

Permalink
update: upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
mirreal committed Jul 31, 2017
1 parent 50f0e32 commit 34eb6e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install format-weekly -g
$ format-weekly
// 指定文件
$ format-weekly md/weekly.md
// 制定输出目录
// 指定输出目录
$ format-weekly -o build md/weekly.md
```

Expand Down
5 changes: 2 additions & 3 deletions bin/format-weekly.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const mkdirsync = require('../lib/mkdir')
program
.version(pkg.version)
.usage('[options] [file.md]')
.option('-o, --output [out]', 'configure the output directory', './')
.option('-o, --output [out]', 'configure the output directory', 'build')
.parse(process.argv)

const input = program.args[0] || 'md/weekly.md'
Expand All @@ -24,7 +24,7 @@ const writeFileAsync = async function(data) {
const emailData = formatEmail(json)

try {
mkdirsync(path.resolve(output))
mkdirsync(output)

await writeFile(path.resolve(output, 'email.html'), markdown.toHTML(emailData))
await writeFile(path.resolve(output, 'zhihu.html'), markdown.toHTML(zhihuData))
Expand All @@ -46,4 +46,3 @@ const readFileAsync = async function() {
}

readFileAsync()

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "format-weekly",
"version": "0.2.2",
"version": "0.2.4",
"description": "format weekly",
"bin": {
"format-weekly": "./bin/format-weekly.js"
Expand Down

0 comments on commit 34eb6e8

Please sign in to comment.