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

Remove server and replace with only port #104

Merged
merged 5 commits into from
Jun 19, 2017
Merged

Remove server and replace with only port #104

merged 5 commits into from
Jun 19, 2017

Conversation

alallier
Copy link
Owner

This PR:

  • Removed server out of params. Now reload just uses port. This allows the app to become simpler for many reasons:
  • Closes can't find reload.js #95 as it allows the reload path to be configured, allowing someone to use the reload route in their application if they needed outside of reload.
  • Refactors the params again to start with the only required argument app, everything else has defaults and is in an optional object param.
  • Added error handling. Throws error when no arguments or invalid arguments are passed to reload

alallier added 2 commits June 19, 2017 18:19
…the app to become simpler for many reasons:

* Allows for easy setup in an app
* Removes complex two part function for people who have split up app and server (this reverses #71)

This commit closes #95 as it allows the reload path to be configured, allowing someone to use the `reload` route in their application if they needed outside of reload.

This commit refactors the params again to start with the only required argument app, everything else has defaults and is in an optional object param.
…Invalid arguments are checked for to the best of our ability
@alallier alallier added this to the v2.0.0 milestone Jun 19, 2017
@alallier
Copy link
Owner Author

Going to merge since it's going into V2. Should be able to do a full review once it makes it there

@alallier alallier merged commit 38a6231 into alallier:v2.0.0 Jun 19, 2017
@alallier alallier deleted the removeServerAndReplaceWithOnlyPort branch June 19, 2017 23:00
@alallier
Copy link
Owner Author

This closes #102

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.

1 participant