chore: Fix example readme instructions. Add pnpm build:debug. (#12983)

* chore: Fix example readme instructions. Add `pnpm build:debug`.

* keep terser on bundle.global.js build to avoid file modifications

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Fabian-Lars 2025-03-15 16:51:40 +01:00 committed by GitHub
parent cedb24d494
commit 2fa33d5c44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 16 deletions

View File

@ -9,23 +9,10 @@ In the future, this app will be used on Tauri's integration tests.
- Compile Tauri
go to root of the Tauri repo and run:
Linux / Mac:
```
# choose to install node cli (1)
bash .scripts/setup.sh
```
Windows:
```
./.scripts/setup.ps1
```
- Install dependencies (Run inside of this folder `examples/api/`)
```bash
$ pnpm i
pnpm i
pnpm build:debug
```
- Run the app in development mode (Run inside of this folder `examples/api/`)

View File

@ -16,7 +16,9 @@
"eslint:check": "pnpm run -r eslint:check",
"ts:check": "pnpm run -r ts:check",
"build": "pnpm run -r build",
"build:debug": "pnpm run -r build:debug",
"build:api": "pnpm run --filter \"@tauri-apps/api\" build",
"build:api:debug": "pnpm run --filter \"@tauri-apps/api\" build:debug",
"build:cli": "pnpm run --filter \"@tauri-apps/cli\" build",
"build:cli:debug": "pnpm run --filter \"@tauri-apps/cli\" build:debug",
"test": "pnpm run -r test",

View File

@ -36,7 +36,8 @@
"./package.json": "./package.json"
},
"scripts": {
"build": "rollup -c --configPlugin typescript",
"build": "rollup -c --configPlugin typescript --plugin terser",
"build:debug": "rollup -c --configPlugin typescript",
"npm-pack": "pnpm build && cd ./dist && npm pack",
"npm-publish": "pnpm build && cd ./dist && pnpm publish --access public --loglevel silly --no-git-checks",
"ts:check": "tsc --noEmit",

View File

@ -1,3 +1,7 @@
# napi-rs can't handle custom target-dir configs yet so we make sure it's set to the default
[build]
target-dir = "target"
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"