Skip to content

Commit b7062b7

Browse files
New translations development.md (Chinese Simplified)
1 parent fc4815b commit b7062b7

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
id: development
3+
title: "App development"
4+
sidebar_label: App development
5+
---
6+
7+
8+
## Start your devserver
9+
Now that you have everything setup, you should start the development server provided by your UI framework. Here are a few examples:
10+
11+
SVELTE using yarn:
12+
```
13+
yarn rollup -c -w
14+
```
15+
16+
REACT-CREATE-APP using npm
17+
```
18+
npm run craco start
19+
```
20+
21+
QUASAR using global `@quasar/cli`
22+
```
23+
quasar dev
24+
```
25+
26+
> Every framework has its own development tooling. It is outside of the scope of this document to treat them all or keep them up to date - and tauri will not presume to do a better job then your framework.
27+
28+
## Inform tauri about localhost port
29+
Once your devserver is up and running, be sure that you have configured the `src-tauri/tauri.conf.json` to correctly point at the devserver. Normally, you will be informed about its port in the terminal where you spawned the devserver in the previous step.
30+
31+
Edit src-tauri/tauri.conf.json:
32+
```
33+
{
34+
"build": {
35+
"devPath": "http://localhost:8080"
36+
}
37+
}
38+
```
39+
40+
## Start tauri development window
41+
```
42+
local: yarn tauri dev
43+
global: tauri dev
44+
```
45+
46+
The first time you run this command, it will take several minutes for the rust package manager to pull all the required packages for building the windowing service. This only happens on the first time, subsequent builds of the development window will be 10x faster, as only the tauri components will need rebuilding.
47+
48+
## Notes:
49+
50+
### Cargo.toml
51+
In your project repository, you SHOULD commit the `src-tauri/Cargo.toml` to git because you want it to be deterministic. You SHOULD NOT commit the `src-tauri/target` folder or any of its contents.

0 commit comments

Comments
 (0)