This repository contains a project that compiles MoonScript into Lua and bundles it into a single Lua file using Tape. It simplifies the process of integrating MoonScript code into your Lua projects by creating a single, standalone Lua file.
Favorting this repo and forking it when using it in projects would mean a lot. Anything helps but nothing is needed from you to use it!
Before you can use this tool, you'll need to have the following software installed:
- Node.js (version 12 or newer)
- MoonScript (version 0.5.0 or newer)
- Tape-Lua (version 3.3.0 or newer)
- Python (version 3.0 or newer)
These are my prefered ways of installing.
1: Install luarocks to setup MoonScript
scoop install luarocks
scoop install cmake
scoop install mingw
2: Install moonscript
luarocks install moonscript --dev
luarocks install moonpick
3: Install node.js & tape
scoop install nodejs
npm install -g tape-lua
4: Install python
scoop install python
5: Clone repository
git clone https://github.com/windows-fryer/moon_bundler.git
cd moon_bundler
Open this file inside of Visual Stuio Code, put your source code inside of src, and run the build task. You'll have your lua code inside of build
and bundle inside of bundle
.