mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 11:22:04 +00:00
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:
parent
cedb24d494
commit
2fa33d5c44
@ -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/`)
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user