Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nodecli): read-fileの見出しとサンプルコードの完成形 #186

Merged
merged 2 commits into from
Feb 9, 2017

Conversation

lacolaco
Copy link
Collaborator

@lacolaco lacolaco commented Feb 7, 2017

#7

Close #185

cc/ @azu

@lacolaco
Copy link
Collaborator Author

lacolaco commented Feb 7, 2017

#185 でCI通らない

@lacolaco lacolaco requested a review from azu February 7, 2017 14:37
"author": "",
"license": "ISC",
"dependencies": {
"commander": "^2.9.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

少し気になったのですが、この本では外部ライブラリは使う前提なのですか?
上の例(read-file/src/main.js)だとprocess.argv.slice(2)[0]でいいような気がしたので。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このユースケースはnpmを使った開発のユースケースでもあるので、積極的にライブラリを使っています。また、 https://github.com/asciidwango/js-primer/blob/master/source/use-case/nodecli/README.md に書いたように、このあとでオプションの利用が必要になるのではじめからcommanderを入れています

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど、ありがとうございます

@lacolaco lacolaco merged commit 3806e00 into master Feb 9, 2017
@lacolaco lacolaco deleted the feat-nodecli-read-file-toc branch February 9, 2017 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants