From a435d5857c44d8984b6ec07a7478ea226d55cee6 Mon Sep 17 00:00:00 2001 From: azur Date: Sat, 22 Nov 2025 23:12:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20darklua=20for=20minify=20p?= =?UTF-8?q?roduction=20script.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .darklua.json | 15 +++++++++++++++ package.json | 3 ++- rokit.toml | 7 +++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .darklua.json create mode 100644 rokit.toml diff --git a/.darklua.json b/.darklua.json new file mode 100644 index 0000000..c75fe36 --- /dev/null +++ b/.darklua.json @@ -0,0 +1,15 @@ +{ + "generator": "dense", + "rules": [ + "remove_comments", + "remove_spaces", + "compute_expression", + "convert_luau_number", + "group_local_assignment", + "remove_empty_do", + "remove_function_call_parens", + "remove_nil_declaration", + "remove_unused_if_branch", + "remove_unused_variable" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index aae948a..00fdaf5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "build": "rbxtsc", "watch": "rbxtsc -w", - "lint": "eslint" + "lint": "eslint", + "production": "darklua minify out out" }, "keywords": [], "author": "Aconit team", diff --git a/rokit.toml b/rokit.toml new file mode 100644 index 0000000..b52dfbf --- /dev/null +++ b/rokit.toml @@ -0,0 +1,7 @@ +# This file lists tools managed by Rokit, a toolchain manager for Roblox projects. +# For more information, see https://github.com/rojo-rbx/rokit + +# New tools can be added by running `rokit add ` in a terminal. + +[tools] +darklua = "seaofvoices/darklua@0.17.2"