The addon should be able to discover and automatically import Stencil collections
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
Read the collection metadata JSON file to find all of the defined components
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.
The addon should be able to discover and automatically import Stencil collections
package.json
should have acollection
key that is probably enough of a heuristic for nowpublic
treeThe 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 avendor
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.