-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
Description
Currently CLI cannot be plugged into. Prisma is an internal plugin, except for the CLI aspect which cheats, importing prisma logic.
A challenge will be the schism between cli and app. A CLI does not obviously know about this in code:
app.use(myPlugin)
possible solution areas
- code-reflection (cli analyzes app code for
use
statements to know which plugins to activate in the cli - package.json/pumpkins-file config that opts-in to making cli use a plugin in the cli
- same as above, but opt-out, automatically using any
pumpkins-plugin-*
package.
Also think about where the config can live, e.g.:
app.use(myPlugin({...}))
Does the user configure the plugin cli behaviour here? That would mean, again, code reflection.