Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.78 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.78 KB

Stremio Core Web

npm

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.

  1. Install cargo-watch
    • cargo install cargo-watch
    • With cargo-binstall (prebuilt binaries): cargo binstall cargo-watch
  2. Run cargo wasm-watch

Publishing

  1. Update version to the next minor/major/patch version in Cargo (Cargo.toml and Cargo.lock) and npm (package.json and package-lock.json), e.g. from 0.44.13 to 0.44.14.
  2. Commit the change with the new version as a message, e.g. 0.44.14
  3. Wait for CI to build successfully
  4. Push a new tag starting with v, e.g. git tag v0.44.14 git push origin v0.44.14
  5. Create a new Release with the created tag and the tag name as a title, e.g. v0.44.14
  6. Publish the Release
  7. CI will automatically build and release the npm package to the registry