Closed bartoszglow closed 3 years ago
@bartoszglow it may be a good idea to switch to a solution like https://www.npmjs.com/package/ignore or https://www.npmjs.com/package/ignore-walk - this allows you to consume the .gitignore file without a git init
this issue is currently blocking the test suite of https://github.com/adobe/aem-project-archetype/pull/747 (integration of a site template into the aem archetype)
Issue fixed with #17 and released in version 2.2.0
Problem is in the way that template-builder builds the
aem-site-template-basic-x.x.x.zip
file. It relies on the fact that Site Template should be a git repository so it can createtheme-sources
folder by filtering only necessary files from thetheme
folder based on its.gitignore
. To do that it has to be a proper git project (with.git
folder).Expected Behaviour
theme-sources.zip
file is part ofaem-site-template-basic-4.0.1.zip
file created by runningnpx aem-site-template-builder
therefore theme sources can be downloaded from AEM.Actual Behaviour
theme-sources.zip
file is missing inaem-site-template-basic-4.0.1.zip
file created by runningnpx aem-site-template-builder
therefore theme sources can not be downloaded from AEM.Reproduce Steps
source-code
from Site Template Basic 4.0.1.aem-site-template-basic-4.0.1.zip
.aem-site-template-basic-4.0.1
.npx aem-site-template-builder
.aem-site-template-basic-4.0.1.zip
. (make sure to not upload source code but generated package)Further Explanation
aem-site-template-basic-x.x.x.zip
file created by running Reproduce Steps does not containtheme-sources.zip
file in the package. Due to that you can’t download theme sources in AEM.Proposed Solution
theme
content intotheme-sources.zip
file.theme-sources.zip
before compiling and buildingtheme
so it is less polluted.Workarounds
For now there are 2 workarounds: