ember-addon-snippets

Ember addon snippets for Atom.

ciena-blueplanet

269

0

1.0.0

MIT

GitHub

ember-addon-snippets-atom

Ember addon snippets for Atom.

Consuming ember addon snippets in Atom

  1. Install the package with apm install ember-addon-snippets or through the atom preferences panel.
  2. Note that there are 4 ways to trigger the snippets refreshal. I.e, to make the package fetch the snippets from your opened project's addons.

Follow these instructions to add snippets compatible with this package to your ember addons.

Adding snippets to your ember addons

Follow these instructions to add snippets to your ember addons. It will ensure that they can be consumed by this atom package.

  1. Create a snippets folder at the root of your ember project.
  2. Create a atom folder inside the snippets folder.
  3. Create a snippets.json file inside the snippets folder.
  4. Fill snippets/atom/snippets.json with snippets. Your file should have the following format.
{
    ".source.hbs": {
        "ember-frost-button": {
            "prefix": "frost-button",
            "body": "{{frost-button}} $1"
        },
        ...
    },
    ".source.js": {
        "Console log": {
            "prefix": "log",
            "body": "console.log $1"
        },
        ...
    },
    ...
}