Bridge between stremio-core and stremio-web
Builds a production wasm package and prepares the rest of the dependencies for the npm package.
npm install
npm run build
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-watch
cargo install cargo-watch
- With
cargo-binstall
(prebuilt binaries):cargo binstall cargo-watch
- Run
cargo wasm-watch
- Update version to the next minor/major/patch version in Cargo (
Cargo.toml
andCargo.lock
) and npm (package.json
andpackage-lock.json
), e.g. from0.44.13
to0.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.14
git 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
npm
package to the registry