Open chrisvdm opened 2 years ago
Edit: yarn rw g stripe <payment-flow>
to yarn rw <d/g> stripe custom cmds
Just noting that dbAuth has it's own generator built into the framework:
yarn rw g dbAuth
This generates four pages. Code can be found here: https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/generate/dbAuth/dbAuth.js.
Maybe dbAuth should be re-architected to use the new plugin api when it's ready. And could be used to guide its development as well.
I think you mean dbAuth becomes the default auth implementation and all the third party auth providers become plugins. 😉
Here is a list of API requests that could be useful for plugin development
Hook commands into yarn rw dev
yarn rw dev = yarn rw dev + stripe listen
Install/Remove packages
yarn rw setup plugin stripe
Create pages and components from templates
yarn rw g page Cart plugins/stripe/templates/CartTemplate
Custom CLI commands
yarn rw <d/g> stripe custom cmds
Perhaps a plugin file structure suggestion that when one were to run the command to setup an integration it automatically finds things like schemas, serverless functions, templates and adds it to the app