mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
upgrade yarn to pnpm because why not
This commit is contained in:
@@ -8,15 +8,15 @@ def buildWeb():
|
||||
os.chdir("interface")
|
||||
print("Building web interface...")
|
||||
try:
|
||||
env.Execute("yarn")
|
||||
env.Execute("yarn typesafe-i18n --no-watch")
|
||||
env.Execute("pnpm install")
|
||||
env.Execute("pnpm typesafe-i18n --no-watch")
|
||||
with open("./src/i18n/i18n-util.ts") as r:
|
||||
text = r.read().replace("Locales = 'pl'", "Locales = 'en'")
|
||||
with open("./src/i18n/i18n-util.ts", "w") as w:
|
||||
w.write(text)
|
||||
print("Setting WebUI locale to 'en'")
|
||||
env.Execute("yarn build")
|
||||
env.Execute("yarn webUI")
|
||||
env.Execute("pnpm build")
|
||||
env.Execute("pnpm webUI")
|
||||
finally:
|
||||
os.chdir("..")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user