@gwigz/slua-create
v0.1.1
Published
Scaffold new TSTL-powered SLua projects
Readme
@gwigz/slua-create
Scaffold new TSTL-powered SLua projects.
Usage
npx @gwigz/slua-create
# or
pnpm dlx @gwigz/slua-create
# or
bunx @gwigz/slua-createYou can also pass a directory as the first argument:
npx @gwigz/slua-create my-project
# or
pnpm dlx @gwigz/slua-create my-project
# or
bunx @gwigz/slua-create my-projectTemplates
- Single script provides one
main.ts, that outputs a single script - Multi-script provides a custom
build.tsthat can build mutiple scripts
Extras
| Extra | Description | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | JSX templates | @gwigz/jsx-inline | | Config module | @gwigz/slua-modules/config | | Yield module | @gwigz/slua-modules/yield | | StyLua formatting | Lua output formatting via StyLua | | Linting | TypeScript linting via oxlint with @gwigz/slua-oxlint-config | | Formatting | TypeScript formatting via oxfmt |
Documentation
Full API reference and usage examples are available at slua.gwigz.link/docs/create.
