Turbo87 / intellij-emberjs

Ember.js support for JetBrains IDEs (IntelliJ, WebStorm, ...)
Apache License 2.0
218 stars 33 forks source link

Detect addons by package.json keywords #184

Open dwickern opened 6 years ago

dwickern commented 6 years ago

Ember-cli detects addons based on the keywords field in package.json (source):

  "keywords": [
    "ember-addon"
  ],

We currently look for a .ember-cli file in the directory but not all addons have it. For example ember-code-snippet.

Turbo87 commented 6 years ago

Checking the keywords would certainly be the better option, but it is also a little more complex to code so I used .ember-cli as a good-enough heuristic. Feel free to adjust this if you think it's worth it.