forked from tauri-apps/tauri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update plugin example based on CTA (tauri-apps#5213)
Co-authored-by: Lucas Nogueira <[email protected]>
- Loading branch information
1 parent
488a756
commit 0d5835d
Showing
38 changed files
with
418 additions
and
307 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
tooling/cli/templates/plugin/with-api/examples/svelte-app/.gitignore
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
tooling/cli/templates/plugin/with-api/examples/svelte-app/package.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.05 KB
tooling/cli/templates/plugin/with-api/examples/svelte-app/public/favicon.png
Binary file not shown.
68 changes: 0 additions & 68 deletions
68
tooling/cli/templates/plugin/with-api/examples/svelte-app/public/global.css
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
tooling/cli/templates/plugin/with-api/examples/svelte-app/public/index.html
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
tooling/cli/templates/plugin/with-api/examples/svelte-app/rollup.config.js
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/Cargo.crate-manifest
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/rustfmt.toml
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
tooling/cli/templates/plugin/with-api/examples/svelte-app/src-tauri/src/main.rs
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
tooling/cli/templates/plugin/with-api/examples/svelte-app/src/App.svelte
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
tooling/cli/templates/plugin/with-api/examples/svelte-app/src/main.ts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
tooling/cli/templates/plugin/with-api/examples/svelte-app/tsconfig.json
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
tooling/cli/templates/plugin/with-api/examples/tauri-app/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
7 changes: 7 additions & 0 deletions
7
tooling/cli/templates/plugin/with-api/examples/tauri-app/.vscode/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"svelte.svelte-vscode", | ||
"tauri-apps.tauri-vscode", | ||
"rust-lang.rust-analyzer" | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
tooling/cli/templates/plugin/with-api/examples/tauri-app/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Svelte + Vite | ||
|
||
This template should help get you started developing with Tauri and Svelte in Vite. | ||
|
||
## Recommended IDE Setup | ||
|
||
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer). | ||
|
14 changes: 14 additions & 0 deletions
14
tooling/cli/templates/plugin/with-api/examples/tauri-app/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Tauri + Svelte</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
34 changes: 34 additions & 0 deletions
34
tooling/cli/templates/plugin/with-api/examples/tauri-app/jsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "Node", | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
/** | ||
* svelte-preprocess cannot figure out whether you have | ||
* a value or a type, so tell TypeScript to enforce using | ||
* `import type` instead of `import` for Types. | ||
*/ | ||
"importsNotUsedAsValues": "error", | ||
"isolatedModules": true, | ||
"resolveJsonModule": true, | ||
/** | ||
* To have warnings / errors of the Svelte compiler at the | ||
* correct position, enable source maps by default. | ||
*/ | ||
"sourceMap": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"baseUrl": ".", | ||
/** | ||
* Typecheck JS in `.svelte` and `.js` files by default. | ||
* Disable this if you'd like to use dynamic types. | ||
*/ | ||
"checkJs": true | ||
}, | ||
/** | ||
* Use global.d.ts instead of compilerOptions.types | ||
* to avoid limiting type declarations. | ||
*/ | ||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] | ||
} |
Oops, something went wrong.