-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
Description
I wanted to create this to capture the thoughts while they are fresh in my mind after context on a client project where this would have saved some time:
I think we should formalize a config/stubs directory which has the following properties:
- is watched for changes to files within, triggering a restart of express on change
- captures syntax errors in watched stub files and catches the exception to avoid killing express
- (optional) loosely formalize a blessed JSON stub format (simplest thing is
module.exports = {}for now), we don't need to get too complicated here - (optional) auto require stubs based on filename such that they are available within
config/server.{js,coffee}either as a local in the scope or on the node global object
The first two would be mostly quality of life improvements to the way I use the existing API stubbing feature, the latter two are things that would be really cool if we could make them not suck in implementation ;)
If anyone is willing to pair with me on this, I'd like to start with the first two which are captured in #268.