Skip to content

Commit e716bb6

Browse files
author
nguoianphu
committed
Update README
1 parent b658518 commit e716bb6

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,44 @@ Pokémon Type Calculator helps you figure out offense/defense matchups for Poké
1212

1313
## Development
1414

15+
```bash
16+
npm install
17+
npm run start
1518
```
16-
$ npm install
17-
$ npm run start
19+
20+
## Deployment
21+
22+
Refer Github Action for details on how to build and deploy it to Github Page, Web server, APK android files.
23+
24+
<https://github.com/nguoianphu/pkmn.help/blob/vitejs/.github/workflows/build.yml>
25+
26+
### Deploy to Web server or Github pages
27+
28+
```bash
29+
rm -rf dist
30+
cp -Rf webpack.config.gh-pages.js webpack.config.js || true
31+
cp -Rf vite.config.githubpage.ts vite.config.ts || true
32+
npm run build
33+
34+
# Output is dist folder
1835
```
1936

37+
### Build Android APK
38+
39+
Refer above Github Action or this <https://github.com/nguoianphu/capacitor>
40+
41+
```bash
42+
npm run build
43+
44+
mkdir -p app
45+
cp -r dist app/
46+
cp -r package.json app/
47+
48+
docker run --rm -it -v ./app:/app ghcr.io/nguoianphu/capacitor
49+
# docker run --rm -it -v ./app:/app nguoianphu/capacitor
50+
```
51+
52+
2053
## New features in my forked
2154

2255
Info for **Pokemon GO** only

0 commit comments

Comments
 (0)