Motivation
With lupus decoupled, we have everything in place to auto-register components. The users should not be required re-type the frontend base url and component-index.json path.
Proposed resolution
- Make preview provider plugins optionally provide the path to nuxt component index json
- During module installation and when loading the components overview page, check auto preview-provider for component-index. If found during install, auto-register it. If found at the page-load, simply list as available source! So the user can simply press "Update components".
Remaining tasks
Allow preview provider plugins to announce component-index files.
Issue fork canvas_extjs-3573058
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
fagoimplemented and add tests. Also added a new drush command to trigger the same logic.
Comment #5
fagoworks good and comes with test coverage, merged!
Comment #8
fagoNote: this needs to change from https://www.drupal.org/project/custom_elements/issues/3573064 to work.