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:
parent
20952ebe00
commit
a71134ee2b
2 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ class TestBoilerPlate(unittest.TestCase):
|
|||
"__init__.py",
|
||||
"hooks.py",
|
||||
"patches.txt",
|
||||
"patches",
|
||||
"templates",
|
||||
"www",
|
||||
"config",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue