From 3fce30b2af59cbd986ebd432e7c25615dcadaff3 Mon Sep 17 00:00:00 2001 From: Cam <21029087+cxmeel@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:07:41 +0000 Subject: [PATCH] Create darklua configs --- .github/workflows/docs.yml | 2 +- .github/workflows/pull-request.yml | 2 +- .gitignore | 1 + standalone.darklua.json | 21 +++++++++++++++++++++ wally.darklua.json | 20 ++++++++++++++++++++ 5 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 standalone.darklua.json create mode 100644 wally.darklua.json diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 36ffcd1..981f857 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Deploy Docs +name: deploy-docs on: workflow_dispatch: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index aa1e963..fc004ec 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,4 +1,4 @@ -name: auto-format +name: pull-request concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} diff --git a/.gitignore b/.gitignore index 77b402b..08fa77c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ sourcemap.json /out /include /build +/dist diff --git a/standalone.darklua.json b/standalone.darklua.json new file mode 100644 index 0000000..43beeb0 --- /dev/null +++ b/standalone.darklua.json @@ -0,0 +1,21 @@ +{ + "bundle": { + "require_mode": { + "name": "path", + "sources": { + "@Pkg": "Packages", + "@DevPkg": "DevPackages", + "@Sift": "src" + } + } + }, + "rules": [ + "compute_expression", + "filter_after_early_return", + "remove_empty_do", + "remove_nil_declaration", + "remove_unused_if_branch", + "remove_unused_while" + ], + "generator": "dense" +} diff --git a/wally.darklua.json b/wally.darklua.json new file mode 100644 index 0000000..2d9473a --- /dev/null +++ b/wally.darklua.json @@ -0,0 +1,20 @@ +{ + "process": [ + { + "rule": "convert_require", + "current": { + "name": "path", + "sources": { + "@Pkg": "Packages", + "@DevPkg": "DevPackages", + "@Sift": "src" + } + }, + "target": { + "name": "roblox", + "rojo_sourcemap": "./sourcemap.json", + "indexing_style": "wait_for_child" + } + } + ] +}