Create a Zig project without installing Zig.
npm create zig my-app
bun create zig my-app
pnpm create zig my-appThen:
cd my-app
npm install
npm start- Runs
zig initin the new directory, using Zig from @zigc/cli. - Adds a
package.jsonwith@zigc/clias a dev dependency, sozigcomes fromnode_modules. - Adds
.zig-cache/,zig-out/andnode_modules/to.gitignore.
| Script | Runs |
|---|---|
npm run build |
zig build |
npm start |
zig build run |
npm test |
zig build test |
npm run zig -- <args> |
zig <args> |
| Flag | Description |
|---|---|
-m, --minimal |
Use the minimal zig init template |
MIT