Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.25 KB

README.md

File metadata and controls

45 lines (26 loc) · 1.25 KB

tgr-snippet-pack

WARNING: experimental, partially completed


A pack of code snippets for React, Jest, GraphQL with Typescript.

Install

ext install tgrstack.tgr-snippet-pack

Alternatively you can open the extensions panel and search for 'TGRStack snippet'.

Supported languages (file extensions)

  • TypeScript (.ts)
  • TypeScript React (.tsx)

Snippets

Rather than using difficult to remember shortcuts, each snippet is available while writing a good name for it. Feel free to PR better naming schemas or Fork and make your own.

Building

Snippets are in the ./snippets/ directory and I am using json5 to enable commenting.

The build script can be ran with npm run prepare. It combines some of the files into /dist/ two files: typescript.json and typescriptreact.json.

TGRStack contributions

  • updated references to es9
  • better naming
  • compiled into a package of similarly written snippets
  • no semicolons!

References

License

MIT