summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-04-19 23:37:47 +0100
committerBrooks J Rady <b.j.rady@gmail.com>2021-04-19 23:37:47 +0100
commitfee999ec40b469564e65c8c551f463805003ba6d (patch)
treee66c4f4bce0d22aa22de4408b4e0c9db5b71b0fa /Makefile.toml
parent996c197fcf9fbc655e7cf7e741c62ad71970c322 (diff)
fix(naming): made plugin terminology more consistent
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 68767eaf2..83cdcb854 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -64,7 +64,7 @@ args = ["clippy", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
# Release building and installing Zellij
[tasks.install]
workspace = false
-dependencies = ["build-tiles-release", "wasm-opt-tiles", "build-release"]
+dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release"]
script_runner = "@duckscript"
script = '''
if is_dir ${CARGO_MAKE_TASK_ARGS}
@@ -74,20 +74,20 @@ else
end
'''
-[tasks.build-tiles-release]
+[tasks.build-plugins-release]
env = { "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" = ["."] }
run_task = { name = "build-release", fork = true }
-[tasks.wasm-opt-tiles]
+[tasks.wasm-opt-plugins]
script_runner = "@duckscript"
script = '''
-tiles = glob_array ${CARGO_TARGET_DIR}/wasm32-wasi/release/*.wasm
+plugins = glob_array ${CARGO_TARGET_DIR}/wasm32-wasi/release/*.wasm
-for tile in ${tiles}
- tile_name = basename ${tile}
- tile_out = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets/plugins/${tile_name}
- if is_path_newer ${tile} ${tile_out}
- exec wasm-opt -O ${tile} -o ${tile_out}
+for plugin in ${plugins}
+ plugin_name = basename ${plugin}
+ plugin_out = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/assets/plugins/${plugin_name}
+ if is_path_newer ${plugin} ${plugin_out}
+ exec wasm-opt -O ${plugin} -o ${plugin_out}
end
end
'''
@@ -95,7 +95,7 @@ end
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
-dependencies = ["build-tiles-release", "wasm-opt-tiles", "build-release"]
+dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release"]
command = "cargo"
args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"]
@@ -103,7 +103,7 @@ args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"
[tasks.publish]
clear = true
workspace = false
-dependencies = ["build-tiles-release", "wasm-opt-tiles", "build-release", "publish-zellij-tile"]
+dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "publish-zellij-tile"]
run_task = "publish-zellij"
[tasks.publish-zellij-tile]