Usage
Running @gwigz/slua-create, interactive prompts, and options
Running the CLI
Run without arguments to start the interactive wizard:
npx @gwigz/slua-createPass a directory name to skip the first prompt:
npx @gwigz/slua-create ./my-projectInteractive Prompts
The CLI walks you through the following steps:
- Project directory where to create the project (skipped if a positional argument is given)
- Template choose between
single(onemain.ts) ormulti(custombuild.tswith multiple entry points) - Extras optional add-ons (see below)
- Git whether to initialize a Git repository
- Install packages whether to run the package manager install automatically
Extras
| Extra | Description |
|---|---|
| JSX templates | Adds @gwigz/jsx-inline for JSX template support |
| Config module | Adds @gwigz/slua-modules/config for runtime config |
| StyLua formatting | Adds a StyLua config for Lua output formatting |
| Linting | Adds oxlint for TypeScript linting |
| Formatting | Adds oxfmt for TypeScript formatting |
Package Manager Detection
The CLI automatically detects the package manager you used to invoke it
(npm, pnpm, or bun) and uses the same one for install commands and
the suggested run script in the final message.