-
Notifications
You must be signed in to change notification settings - Fork 417
Description
This is a Feature Proposal
Description
Serverless offers a fully working local invoke command that handles all possible
kinds of invocations, sets the function's environment correctly and much more.
There is no need to have a separate webpack invoke command that replicates (only)
parts of this functionality and binds resources to maintain it properly.
It would be better to integrate seamlessly with local invoke by hooking the important
lifecycle events exposed by the command. Finally, serverless invoke local should
invoke the function after the webpack compile has been triggered as part of the lifecycle
hooks in place.
To make it completely seamless, the webpack invoke command should techincally just use Serverless'
pluginManager to spawn the invoke local command like this: this.serverless.pluginManager.spawn('invoke:local').
This solution would also make the invocation provider independent as Serverless fully takes care of that already.
Related issue(s):
#128 (arbitrary provider support)