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"