Drush command for scaffolding frontend components

Created on 20 August 2024, 11 months ago

Motivation

Modules already ship with default vue3 components, which can be used by the frontend by default - such as a general views template.
More specific modules or recipes might want to ship with dedicated frontend parts. We should make it easy to take this frontend components over and/or update them.

Proposed resolution

Add command drush custom-element:init [vue3|svelte|...] [--update] <target>

Modules like custom elements should be able to generate some of those dynamically and/or provide a dedicated command for updating those components by MODULE or entity-type. e.g. we could support optional --module XY and --entity-type NODE parameters

It will go through module directories and add
A drush config option for the default component location would be good to have, including a sane default which is able to detect nuxt in a project "frontend" folder.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024