stremio-core-web
stremio-core-web copied to clipboard
Bridge between stremio-core and stremio-web
Stremio Core Web
Bridge between stremio-core and stremio-web
Build
Builds a production wasm package and prepares the rest of the dependencies for the npm package.
npm install
npm run build
Development
Building the package using ./scripts/build.sh with --dev would allow you to see more logging messages being emitted, this is intended only for debugging as it will log messages with sensitive information!
./scripts/build.sh --dev
Or you can also use the development-specific Rust's wasm-watch alias from ./.cargo/config.toml.
It will automatically re-compile the package when a change on the files or dependencies is detected,
including when you're using a local patch for stremio-core.
- Install
cargo-watchcargo install cargo-watch- With
cargo-binstall(prebuilt binaries):cargo binstall cargo-watch
- Run
cargo wasm-watch
Publishing
- Update version to the next minor/major/patch version in Cargo (
Cargo.tomlandCargo.lock) and npm (package.jsonandpackage-lock.json), e.g. from0.44.13to0.44.14. - Commit the change with the new version as a message, e.g.
0.44.14 - Wait for CI to build successfully
- Push a new tag starting with
v, e.g.git tag v0.44.14git push origin v0.44.14 - Create a new Release with the created tag and the tag name as a title, e.g.
v0.44.14 - Publish the Release
- CI will automatically build and release the
npmpackage to the registry