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

Split the building blocks into separate source files #1

Merged
merged 2 commits into from
Dec 2, 2014
Merged

Split the building blocks into separate source files #1

merged 2 commits into from
Dec 2, 2014

Conversation

nikcorg
Copy link
Contributor

@nikcorg nikcorg commented Dec 2, 2014

Largely, this PR splits up the monolithic lib/index into discrete files which can be required on their own. This, because I see them as being useful on their own, and there is really no reason to necessitate requiring the entire module when you need only a quarter of it. Also, I find it makes the code easier to read (and hopefully maintain), but that's just my opinion.

Unfortunately, for some reason, jsdoc2md didn't want to play along with me and thus the documentation is not up to date.

Niklas Lindgren added 2 commits December 2, 2014 15:53
Although each piece is also exposed via the default require,
the building blocks can be useful on their own and shouldn't
necessitate including all of the module.
@nikcorg nikcorg changed the title Split utils Split the building blocks into separate source files Dec 2, 2014
laurisvan added a commit that referenced this pull request Dec 2, 2014
Split the building blocks into separate source files
@laurisvan laurisvan merged commit 7e67489 into js-os:master Dec 2, 2014
@laurisvan
Copy link
Contributor

Works for me alright. Actually, I was thinking about splitting away the config reading part - it's probably better as its own module altogether...

@nikcorg
Copy link
Contributor Author

nikcorg commented Dec 2, 2014

I agree, but since you have a util-module, extracting it is negligible.

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