Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.43 KB

SNIPPETS.md

File metadata and controls

20 lines (15 loc) · 1.43 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.

If you don't want the snippets, delete the snippets file

Snippets

Snippet Description
sfc Create an arrow function component
createNewPage Create a new Polaris page with a LegacyCard
createNewPageEmpty Create a new Polaris page with a LegacyCard and Empty State
createapi Create a new endpoint for /api
createproxy Create a new endpoint for /api/proxy_route
createwebhook Create a new webhook function
createClientGql Create a new GraphQL Client with online tokens
createOfflineClientGql Create a new GraphQL Client with offline tokens