alexlafroscia / ember-cli-stencil

Automatic discovery of Stencil.js components for your Ember application
26 stars 7 forks source link

Automatically import stencil collections #2

Closed alexlafroscia closed 6 years ago

alexlafroscia commented 6 years ago

The addon should be able to discover and automatically import Stencil collections

  1. Look for dependencies that seem to be Stencil collections
    • The package.json should have a collection key that is probably enough of a heuristic for now
  2. Read the collection metadata JSON file to find all of the defined components
  3. Pull those files into the public tree

The React integration guide seems to reference an approach that's similar to this but manual.

In addition to automatically adding the correct files to the public tree, we should be able to generate a vendor file that would take the place of the explicit import step referenced in the React documentation. I want to avoid requiring users to import the initial file.