Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.78 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.78 KB

Installs Downloads Rating

Snippets for GJS and GTS in VSCode and (neo)vim

Preconfigured snippets for ember projects following Polaris Patterns.

Installation

Important

This extension is optimized for developers that use Ember Polaris patterns and features, which are supported back to ember-source 3.28. If you need Ember Octane (and earlier) snippets, this snippet pack is not for you.

Usage

Many snippets will show up in auto-completion prompts as you're typing. For example,

  • @ser will have a suggestion for @service declare $name: $type;
  • @cach will have a suggestion for a @cached getter.
  • await render will have a suggestion for the rendering tests' render boilerplate
  • etc

Whole file generating boilerplate, such as for tests are prefixed with g- for generate, similar to the ember-cli command's you'd use in the terminal to generate the same file contents.

  • g-rendering-test, g-application-test, g-unit-test
  • g-class-component, g-component
  • g-route
  • g-route-template
  • g-service
  • etc

Debugging

  • clone the repo
  • cd to the cloned repo
  • pnpm i
  • pnpm build
  • if using vscode, on the extensions panel, click "Install from VSIX" and select the vsix file generated from pnpm build