By mglaman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
The generate-theme command will now look for a theme_name.starterkit.yml file within the theme's root. If the file exists, it will assume the theme is cloneable (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. You can change the behavior of this with the contents of the new theme_name.starterkit.yml, in which you can declare the following:
ignore- Files to ignore (not copy over). Paths can be wildcards (e.g.*.yml) or globs (e.g.**/*.js). Entire directories can also be ignored (e.g.tests/**)no_edit- Files where the contents will not be edited. Paths can be wildcards (e.g.*.yml) or globs (e.g.**/*.js)no_rename- Files that will not have their filename renamed. Paths can be wildcards (e.g.*.yml) or globs (e.g.**/*.js)info- Additional properties that will be placed in the new theme’s info.yml file. Existing properties can be removed by giving them anullvalue.
See starterkit_theme.starterkit.yml for an example.
Impacts:
Themers