A collection of snippets to quickly create further boilerplate code with relevant functions and checks.
I selected these snippets from my regular use and code that I was writing over and over again. Instead of again including a __templates/
directory that was causing a lot of confusion, it made more sense to add this as a workspace snippet library instead. This also avoided the issue of creating and maintaining extensions.
Snippet | Description |
---|---|
sfc |
Create an arrow function component |
createNewPage |
Create a new Polaris page with a Card |
createapi |
Create a new endpoint for /api |
createproxy |
Create a new endpoint for /api/proxy_route |
createcheckout |
Create a new endpoint for /api/checkout |
createwebhook |
Create a new webhook function |
createOnlineClientGql |
Create a new GraphQL Client with online tokens |
createOfflineClientGql |
Create a new GraphQL Client with offline tokens |