Problem/Motivation
I am currently creating a starterkit theme which includes a .npmrc and .gitlab-ci.yml file which are needed for proper package publishing.
Even if I am ignoring them explicitly in ignore: key in NAME.starterkit.yml they get copied over when trying to generate a theme based on my starterkit theme.
ignore:
- "/.gitlab-ci.yml"
- "/.npmrc"
The reason for this is that in GenerateTheme.php the dotfiles are not included which needs to be added explicitly by adding ->ignoreDotFiles(FALSE) to it.
Steps to reproduce
- Add a
.npmrc file to your starterkit theme
- Add
.npmrc to the ignore: key in NAME.starterkit.yml file
- Generate your theme
- You will see that the generated theme has a copy of
.npmrc
Proposed resolution
Include dotfiles in loadStarterKitConfig method.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #2
yannickooComment #3
yannickooComment #4
yannickooComment #6
yannickooComment #7
smustgrave commentedSmall comment on the MR, looks super close.
Comment #8
yannickooFeedback has been implemented and MR can be checked again 💅
Comment #9
smustgrave commentedFeedback appears to be addressed
Comment #10
longwaveThanks, the fix makes sense.
Backported to 11.3.x as an eligible bug fix.
Committed and pushed 2275ac6bd7e to main and fa09738bb27 to 11.x and 7fb11404a93 to 11.3.x. Thanks!