jiwonz/multitarget

Build your pure pesde project easier targeting both `luau` and `roblox` targets at the same time

pesde-multitarget

Build your pure pesde project easier targeting both luau and roblox targets at the same time

How to use

pesde add (recommended)

Add & Install this pesde package and darklua as a dev_dependency:

pesde add pesde/darklua --dev -t lune # Pass if darklua is installed already.

pesde add jiwonz/multitarget --dev -t lune

pesde install

Use as a binary:

multitarget help

Use a library in a lune script:

-- lune/build.luau

local multitarget = require("../lune_packages/multitarget")

multitarget.build(nil, "./path/to/output", { -- pesde project file path defaults to "pesde.toml"
	luau = true,
	roblox = true,
})

pesde x

Execute directly without installation:

pesde x jiwonz/multitarget --help

Usage

build

Builds your pesde project targeting to luau and roblox.

With a binary:

multitarget build --output ./path/to/output --roblox --luau --lune # You can set targets manually. Roblox target with luau project will require `darklua` to convert requires.

multitarget build --output ./path/to/output # If none of target argument is given, This will set available targets automatically.

multitarget build -o ./path/to/output # Shorter arguments are supported.

multitarget build ./path/to/pesde.toml -o ./path/to/output # You can pass pesde.toml optionally.

With pesde x:

pesde x jiwonz/multitarget build ...