.gitignore for MoonBit
17 ignore rules for MoonBit, ready to copy into your repository.
Language for WebAssembly, JavaScript and native targets
The complete .gitignore for MoonBit
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 16:49:32 UTC
# Technologies: MoonBit
### MoonBit ###
_build/
# Local MoonBit package cache
.mooncakes/
moonbit-coverage-*.txt
_coverage/
bisect.coverage
*.js.map
# Node.js dependencies
node_modules/
*.wasm
*.wat
# MoonBit agent runtime state
.moonagent/
*.ll
*.bc
# Object file
*.o
*.s
# Compiler output
*.out
# Windows executable
*.exe
# macOS debug symbols
*.dSYM/
What these MoonBit rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
MoonBit default build output directory.
| Pattern | What it ignores |
|---|---|
_build/ |
MoonBit default build output directory. |
Local MoonBit package cache directory.
| Pattern | What it ignores |
|---|---|
.mooncakes/ |
Local MoonBit package cache |
Coverage reports generated by MoonBit tooling.
| Pattern | What it ignores |
|---|---|
moonbit-coverage-*.txt |
Coverage reports generated by MoonBit tooling. |
Coverage output directory used by coverage commands.
| Pattern | What it ignores |
|---|---|
_coverage/ |
Coverage output directory used by coverage commands. |
Bisect runtime coverage data file.
| Pattern | What it ignores |
|---|---|
bisect.coverage |
Bisect runtime coverage data file. |
Source map files generated for JavaScript output.
| Pattern | What it ignores |
|---|---|
*.js.map |
Source map files generated for JavaScript output. |
Node.js dependencies used in JS target workflows.
| Pattern | What it ignores |
|---|---|
node_modules/ |
Node.js dependencies |
Compiled WebAssembly binaries.
| Pattern | What it ignores |
|---|---|
*.wasm |
Compiled WebAssembly binaries. |
WebAssembly text format output.
| Pattern | What it ignores |
|---|---|
*.wat |
WebAssembly text format output. |
MoonBit agent runtime state and temporary files.
| Pattern | What it ignores |
|---|---|
.moonagent/ |
MoonBit agent runtime state |
LLVM textual intermediate representation (IR) files.
| Pattern | What it ignores |
|---|---|
*.ll |
LLVM textual intermediate representation (IR) files. |
LLVM bitcode files.
| Pattern | What it ignores |
|---|---|
*.bc |
LLVM bitcode files. |
Native object files from LLVM/native compilation.
| Pattern | What it ignores |
|---|---|
*.o |
Object file |
Generated assembly source files.
| Pattern | What it ignores |
|---|---|
*.s |
Generated assembly source files. |
Default executable output name on Unix-like systems.
| Pattern | What it ignores |
|---|---|
*.out |
Compiler output |
Native executable output on Windows.
| Pattern | What it ignores |
|---|---|
*.exe |
Windows executable |
*.dSYM/ |
macOS debug symbols |
How to use this .gitignore for MoonBit
- Copy the MoonBit rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.