Pārlūkot izejas kodu

fix(boilerplate): add .gitkeep in public folder (#15765)

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 public folder to sites/assets
version-14
Faris Ansari pirms 3 gadiem
committed by GitHub
vecāks
revīzija
bf19ebdeb6
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      frappe/utils/boilerplate.py

+ 5
- 0
frappe/utils/boilerplate.py Parādīt failu

@@ -62,6 +62,11 @@ def make_boilerplate(dest, app_name, no_git=False):
frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "public", frappe.create_folder(os.path.join(dest, hooks.app_name, hooks.app_name, "public",
"js")) "js"))


# 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
with open(os.path.join(dest, hooks.app_name, hooks.app_name, "public", ".gitkeep"), "w") as f:
f.write('')

with open(os.path.join(dest, hooks.app_name, hooks.app_name, "__init__.py"), "w") as f: with open(os.path.join(dest, hooks.app_name, hooks.app_name, "__init__.py"), "w") as f:
f.write(frappe.as_unicode(init_template)) f.write(frappe.as_unicode(init_template))




Notiek ielāde…
Atcelt
Saglabāt