From dbc8c18b3465a9a1ce59f0380695dd68b9b9c4aa Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 11 Dec 2021 07:51:48 +0000 Subject: [PATCH] Add 1.18.x support Also install node modules if needed --- .gitignore | 3 +++ go4it | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index faa5cefcf..99f978178 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ +# Minecraft/loader versions /mc-* + +# Build output /.idea /.gradle /logs diff --git a/go4it b/go4it index 5f80b4f21..6b1f9ce40 100755 --- a/go4it +++ b/go4it @@ -33,7 +33,7 @@ class Branch: BRANCHES: List[Branch] = [ Branch('mc-1.16.x'), Branch('mc-1.17.x', parent='mc-1.16.x', java="16"), - # Branch('mc-fabric-1.17.x', parent='mc-1.17.x', java="16"), + Branch('mc-1.18.x', parent='mc-1.17.x', java="17"), ] @@ -97,6 +97,11 @@ def setup() -> None: with open("build.gradle", "w") as h: pass + log("Installing npm packages") + for branch in BRANCHES: + if not os.path.isdir(os.path.join(branch.name, "node_module")): + run_in(branch, "npm", "ci") + def gen_runs() -> None: """