Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.14 KB

SNIPPETS.md

File metadata and controls

17 lines (13 loc) · 1.14 KB

Snippets

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.

Snippets

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
createwebhook Create a new webhook function
createOnlineClientGql Create a new GraphQL Client with online tokens
createOfflineClientGql Create a new GraphQL Client with offline tokens