@stremio/stremio-core-web
v0.48.2
Published
Bridge between stremio-core and stremio-web
Downloads
984
Readme
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-watch
cargo 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.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
stremio-core-web-v
, e.g.git tag stremio-core-web-v0.47.4
git push origin stremio-core-web-v0.47.4
- Create a new Release with the created tag and the tag name as a title, e.g.
stremio-core-web v0.47.4
- Publish the Release
- CI will automatically build and release the
npm
package to the registry