Development
Requirements
The development repository uses pnpm as package manager.
WASM tools
Install Emscripten preferably using Emscripten SDK.
$ git clone https://github.com/emscripten-core/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest
$ source ./emsdk_env.sh
You also need to have Binaryen and wabt available on your system.
Building
In the project root of mediainfo.js run the following commands to build.
$ pnpm install
$ pnpm build
Find the resulting files in the dist
directory.
Tests
Run a test suite against the dist build.
$ pnpm test