Problem/Motivation
Recently with Drupal 10.3 a new starterkit.yml file has been introduced as mentioned here. The generate-theme command will now look for a theme_name.starterkit.yml file within the theme's root, this replaces the starterkit: true within the theme’s info.yml file.
The theme generator command will loop through all files and filenames and do a string replace of the machine_name of the starterkit theme with the machine_name of the new theme which may mean we can reduce some of the work being leveraged by our custom generator.
Proposed resolution
Create starterkit.yml file and remove key in info.yml file
Review and test generator for new options provided by the yml file.
Issue fork prototype-3443348
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
jldust commentedComment #5
pixelwhip commentedThanks for working on this @jldust. For some reason the /tests folder wasn't getting removed despite it being in the ignore list. I added a work around for that. For some reason the Cypress tests that test the generated theme aren't passing on Tugboat despite them passing locally. Manually testing the changes works. There are some commits I've added that help address the issue but it still isn't fully passing. I don't want to hold this change up any longer though so I'm going to pause here. I think this is good to go otherwise.
Comment #6
b-ry commented@jdust I tested this and it looks good to me. Works great!
Comment #8
jldust commentedThanks for testing this, I agree about merging this in and creating another ticket to resolve the Cypress testing issues.
Comment #9
jldust commented