When building Ziex, I needed something to make it possible for web developers to bootstrap Ziex and Zig with their existing tooling (npx/bunx), and also in order to make Ziex deployable to Vercel/Cloudflare through their easy CI/CD deployment process, which only supports running Node Package Managers. I needed a way to run Zig compiler through those package managers. There were a few existing ones, but most of them are outdated and not maintained anymore. So published this on NPM.
Latest stable version
bunx @zigc/cli version
Master branch (updated daily)
bunx @zigc/cli@master version
Or a specific version
bunx @zigc/cli@0.14.1 version
Installing globally
bun i -g @zigc/cli
zig version
Installing in a package
bun i @zigc/cli
bun zig version
Using in package.json scripts
{
"scripts": {
"build": "zig build"
},
"devDependencies": {
"@zigc/cli": "0.15.20"
}
}
Repository: GitHub - ziex-dev/zigc: Home to Zig compiler published to NPM registry to be used as `npx @zigc/cli version` · GitHub
NPM: https://www.npmjs.com/package/@zigc/cli