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

API improvements #47

Open
kevva opened this issue Jan 8, 2016 · 2 comments
Open

API improvements #47

kevva opened this issue Jan 8, 2016 · 2 comments

Comments

@kevva
Copy link
Owner

kevva commented Jan 8, 2016

Want to make use of Promises and somehow simplify stuff a lot. Also, #31, #37 and #38 needs to be fixed.

@kevva
Copy link
Owner Author

kevva commented May 20, 2016

@sindresorhus, apart from #37, are there any other things you see can be improved regarding the API?

@sindresorhus
Copy link
Contributor

sindresorhus commented May 20, 2016

I wish I didn't have to create this boilerplate file: https://github.com/flowtype/flow-bin/blob/master/lib/install.js

Also wish I could define everything in one file instead of having to have multiple: lib/index.js lib/install.js index.js cli.js. npm exposes through an environment variable when it's run through a postinstall script, so could use that info to have special behavior on install.

Better error handling and messages when something fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants