How to Start Development
- Run
pnpm install
You can run pnpm build and pnpm dev.
pnpm build outputs files, while pnpm dev is used for debugging the code with file watch.
Refer to “How to Debug” for instructions on using pnpm dev.
How to Debug
Windows
- Install
gh clifrom https://cli.github.com/ - Visit noraneko-runtime Action.
- Go to latest successful build and check the id in url.
It is run_id and is number.
the
Releaseversion is recommended. - Run
gh run download -R nyanrus/noraneko-runtime -n noraneko-win-amd64-dev [run_id] - Run
pnpm dev. - The browser will launch, and if you change some files, you could rerun
pnpm dev. If the source you changed supports HMR, it will reload the browser so you’ll not need to rerun.
GNU/Linux
- Install
gh clifrom https://cli.github.com/ andlbzip2from your package manager. - Visit noraneko-runtime Action.
- Go to latest successful build and check the id in url. It is run_id and is number.
- Run
gh run download -R nyanrus/noraneko-runtime -n noraneko-linux-amd64-dev [run_id] - Run
mkdir -p _dist/bin - Run
tar --strip-components=1 -xvf ./noraneko-*.tar.bz2 -C _dist/bin - Run
pnpm dev - The browser will launch, and if you change some files, you could rerun
pnpm dev. If the source you changed supports HMR, it will reload the browser so you’ll not need to rerun.