-
Notifications
You must be signed in to change notification settings - Fork 459
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
add onkrakenmount property; removed node v4, v6 and added node 10 in travis CI config #514
Conversation
@tlivings @aheckmann @grawk @shaunwarman review? |
lib/bootstrap.js
Outdated
@@ -27,6 +27,10 @@ var debug = require('debuglog')('kraken/bootstrap'); | |||
|
|||
module.exports = function (app, options) { | |||
|
|||
// on bootstrapinit | |||
const onbootstrapinit = options.onbootstrapinit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that this is invoked when kraken is mounted in an express app and express app instance is available to pass down the callback function. Thoughts on calling this as onkrakenmount
or onmount
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues with the code change. Would just recommend to remove node 6 from the travis config.
test/kraken.js
Outdated
|
||
options = { | ||
onkrakenmount: function (app) { | ||
const serverListen = app.listen; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just assert that the app is an express instance.
moving the implementation details from #513
This will let have modules the app instance once Kraken (express sub-app) mounts.