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

Tweaks and refactoring #218

Merged
merged 8 commits into from May 8, 2017
Merged

Tweaks and refactoring #218

merged 8 commits into from May 8, 2017

Conversation

schnittstabil
Copy link
Contributor

@schnittstabil schnittstabil commented May 3, 2017

Some refactoring to improve readability, modularity and testability.
Plus some basic tests for opt.open --no-local.

@schnittstabil
Copy link
Contributor Author

open-editor – Nice, I have had the same idea 👍

@sindresorhus
Copy link
Member

@schnittstabil Hah, yeah. That is quite the coincidence and bad timing on my part... I started working on it last Sunday, but been waiting until now to get the package name from npm support (It was name grabbed).

Should I push the change to integrate open-editor to master and then you rebase or do you prefer to do it directly here?

@schnittstabil
Copy link
Contributor Author

schnittstabil commented May 4, 2017

Feel free to integrate it, I won't be able to do it until this weekend.

package.json Outdated
"index.js",
"cli.js",
"open-report.js",
"options-manager.js",
Copy link
Member

Choose a reason for hiding this comment

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

I think it's time to move files into a lib folder.

@schnittstabil
Copy link
Contributor Author

@sindresorhus updated (including a fix for --open)

--cwd=<dir> Working directory for files
--stdin Validate/fix code from stdin
--stdin-filename Specify a filename for the --stdin option
--version Show the version number
Copy link
Member

Choose a reason for hiding this comment

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

I usually don't document this. It's implied knowledge. Same with --help.

@sindresorhus
Copy link
Member

updated (including a fix for --open)

Oh, can't believe I missed that... Thanks for noticing :)

@sindresorhus sindresorhus merged commit 0c6dbf5 into xojs:master May 8, 2017
@sindresorhus
Copy link
Member

Yay! This is a huge improvement to the code base. Thank you for doing this @schnittstabil 🎉

Would you be interested in joining the project? ✨

@schnittstabil
Copy link
Contributor Author

I'd be glad to 😀

@sindresorhus
Copy link
Member

Awesome 🙌

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.

None yet

2 participants