@calimero-network/calimero-cli-js
v0.1.2
Published
CLI build tools for Calimero applications
Readme
@calimero-network/calimero-cli-js
CLI build tools for compiling Calimero applications to WebAssembly.
Installation
npm install -g @calimero-network/calimero-cli-js
# or
pnpm add -g @calimero-network/calimero-cli-jsAutomatic Installation
Build dependencies (QuickJS, WASI-SDK, Binaryen) are automatically installed when you install the package via npm/pnpm. The postinstall script will download:
- QuickJS v0.1.3 (~10MB)
- WASI-SDK v11 (~150MB)
- Binaryen tools (~5MB)
No manual setup required! The dependencies will be installed in the package's deps directory.
Manual Installation (if needed)
If automatic installation fails, you can manually run:
cd node_modules/@calimero-network/calimero-cli-js
pnpm install-deps
# or
npm run install-depsUsage
Build a Service
calimero-sdk build src/app.ts -o build/service.wasmOptions
--verbose- Show detailed build output--no-optimize- Skip WASM optimization
Build Pipeline
TypeScript/JavaScript
↓
[Rollup] Bundle
↓
[QuickJS] Compile to C
↓
[Clang] Compile to WASM
↓
[Optimize] Final WASMTroubleshooting
"QuickJS compiler not found"
Run the dependency installer:
pnpm install-deps"WASI-SDK not found"
Same fix - run:
pnpm install-depsDocumentation
See the main repository documentation for complete guides.
License
Apache-2.0
