fix(DX): Add patches folder when generating new app boilerplate (#37352)

* fix(DX): add patches folder creation when generating new app boilerplate

* test: add patches folder to paths_inside_app
This commit is contained in:
Kerolles Fathy 2026-02-23 07:38:20 +02:00 committed by GitHub
parent 20952ebe00
commit a71134ee2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -64,6 +64,7 @@ class TestBoilerPlate(unittest.TestCase):
"__init__.py",
"hooks.py",
"patches.txt",
"patches",
"templates",
"www",
"config",

View file

@ -147,6 +147,7 @@ def _create_app_boilerplate(dest, hooks, no_git=False):
frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "config"), with_init=True)
frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "public", "css"))
frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "public", "js"))
frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "patches"), with_init=True)
# add .gitkeep file so that public folder is committed to git
# this is needed because if public doesn't exist, bench build doesn't symlink the apps assets