- Copy this directory and rename to
vendure-plugin-YOUR-PLUGIN-NAME
- Update the
name
anddescription
field inpackage.json
- Update this Readme: What does the plugin do? How can someone use your plugin in their project?
- Run
yarn
to install the dependencies - Run
yarn start
to start the server
The admin is now available at http://localhost:3050/admin
. Login with superadmin/superadmin
The shop GraphQL http://localhost:3050/shop-api
. Here you can test your custom GraphQL query:
{
exampleQuery
}
- Run
yarn test
to run the e2e test. - Don't forget to implement your own!
- Make sure you are logged in to NPM
yarn build
yarn publish
That's it!
(Maybe share your accomplishments in the Vendure slack?
- Check out the docs to see the possibilities of a plugin
- Check out GraphQL codegen to generate Typescript types for your custom GraphQL types