emberjs / ember-optional-features

MIT License
40 stars 15 forks source link

How do enable it inside an in-repo-addon? #14

Closed sumeetattree closed 6 years ago

sumeetattree commented 6 years ago

I've included the @ember/optional-features in the addon's package.json. And I've tried creating a config/optional-features.json in the root directory of addon. Still no dice.

Edit: I realized I haven't explained it in detail. I have a few template only components (or partials) that I am trying to use in the in of the addon templates. I couldn't find any documentation to include template only components into the application. I keep running into <component-name> is not a helper.

I suspect that the component files aren't being included in the application. I've read this issue and it's still not clear how to include a template that is not backed by a js file.

2nd Edit: This is what my package.json looks like:

  "name": "ember-wizard",
  "dependencies": {
    "@ember/optional-features": "^0.5.2",
    "babel-plugin-htmlbars-inline-precompile": "^0.2.4",
    "ember-cli-babel": "^6.8.2",
    "ember-cli-htmlbars": "^2.0.3",
    "ember-cli-htmlbars-inline-precompile": "^1.0.0"
  }
Turbo87 commented 6 years ago

This plugin is not supposed to be used in addons, only in apps

rwjblue commented 6 years ago

Correct. You can use this addon from an addon's dummy app or from a project itself.