Add function to skip files from starterkit theme

Created on 21 November 2022, about 2 years ago
Updated 10 November 2023, about 1 year ago

Problem/Motivation

There's no way currently to specify files that shouldn't be copied over to the new theme without a custom implementation in StarterKit::postProcess. We should simplify this process for starterkit theme authors.

Steps to reproduce

Generate a new theme from a starter kit. Notice that all files are copied over.

Proposed resolution

Add a new function to the StarterKitInterface that returns an array files that should not be copied over.

This function can be called either right before or right after $generator_classname::postProcess($tmp_dir, $destination_theme, $info['name']); to get a list of files to delete from the $tmp_dir before copying all those files over to the final destination path.

✨ Feature request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
StarterkitΒ  β†’

Last updated 18 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States andy-blum Ohio, USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024