Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: unravel hapi server configuration
This touches and changes a lot of things, so that the hapi server creation is now at the heart and center of this module (where it belongs). Because the tests aren't really tests – they just check if certain internal functions exist – this has to touch and delete tests as well. While that totally looks like it's breaking everything the surfacing API remains exactly the same. The function signature of `require('hoodie-server')` changed, so that it doesn't auto start the hoodie-server, but it just passes it to the callback. This way the CLI actually takes care of starting it, and some logging could already be separated out of the logic. This will eventually make testing easier. This is an API that was never documented or public and therefor this is not a breaking change. * * * This commit was sponsored by The Hoodie Firm. You can hire The Hoodie Firm: http://go.hood.ie/thehoodiefirm * * * This commit was sponsored by The Hoodie Firm. You can hire The Hoodie Firm: http://go.hood.ie/thehoodiefirm
- Loading branch information
1 parent
619bab9
commit f6d7c0e
Showing
21 changed files
with
145 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/server/hapi_plugins/api/index.js → lib/hapi_plugins/api/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.