Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.43 KB

CONTRIBUTING.md

File metadata and controls

58 lines (39 loc) · 1.43 KB

Development

The repository uses Rush for monorepo management.

Install Rush globally

$ npm i -g @microsoft/rush

Get code

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

Install dependencies

$ rush install

Everyday commands

  • Build all packages:

    $ rush build
  • Watch changes and rebuild in all libraries:

    $ rush build:watch

Release new versions

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

FAQ

1. WebUSB and File downloading doesn't work in development/self-host environment?

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.