cloudflare / serverless-cloudflare-workers

Serverless provider plugin for Cloudflare Workers
BSD 3-Clause "New" or "Revised" License
175 stars 37 forks source link

Lifecycle events? #29

Open avidal opened 5 years ago

avidal commented 5 years ago

Can the plugin be adjusted so that it emits proper life cycle events when making changes? For instance, if you want to do something after the worker is deployed, but before the routes are? Or after the KV namespaces are created?

The serverless docs are a bit sparse on writing plugins, but it looks like if you want to emit lifecycle events you have to define commands; but then you can hook into the normal deploy command to run the full suite.

ghost commented 5 years ago

@azworn