The repository uses Rush for monorepo management.
$ npm i -g @microsoft/rush
The build script only works inside a Git repository, so, always use git
to clone this repository. "Download ZIP" option in GitHub code menu or source code tarball in GitHub releases will NOT work.
git clone https://github.com/yume-chan/ya-webadb.git
cd ya-webadb
$ rush install
-
Build all packages:
$ rush build
-
Watch changes and rebuild in all libraries:
$ rush build:watch
rush version --bump
export NPM_AUTH_TOKEN=... # Copy NPM auth token from ~/.npmrc
rush publish -p --include-all --set-access-level public
rush update # Update lock file
WebUSB and Service Worker (which is used for file downloading) requires Secure Context (HTTPS or localhost).
- If you have a domain name, add a free SSL certificate from Let's Encrypt.
- If you are using IP address or can't get a free SSL certificate, either
- Add a self-issued SSL certificate and trust it on every device accessing it.
- Add the hostname to
chrome://flags/#unsafely-treat-insecure-origin-as-secure
on every device accessing it.