ember-addon-snippets-atom
Ember addon snippets for Atom.
Consuming ember addon snippets in Atom
- Install the package with
apm install ember-addon-snippets
or through the atom preferences panel. - 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.
- restart atom
- add or remove a project folder
- press
ctrl-alt-e
cd
to your opened project and runnpm install
(Only works if it creates or modifies anode_modules/ember-*/snippets/snippets.json
)
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.
- Create a
snippets
folder at the root of your ember project. - Create a
atom
folder inside thesnippets
folder. - Create a
snippets.json
file inside thesnippets
folder. - 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"
},
...
},
...
}