- Install SwiftWasm
- Install Firebase CLI
$ cd functions
$ npm install
$ npm run serve
Generate Swift <=> TypeScript bridging code using WasmCallableKit.
$ git clone https://github.com/sidepelican/WasmCallableKit.git
$ cd WasmCallableKit/Codegen
$ swift run Codegen <path to this repo>/Sources/MySwiftLib/WasmExports.swift --swift_out <path to this repo>/Sources/MySwiftLib/Gen --ts_out <path to this repo>/functions/src/Gen