Skip to content

Commit d38a8e0

Browse files
authored
feat(eidw): setup tauri (#40)
1 parent 60b7207 commit d38a8e0

38 files changed

+405
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"svelte.svelte-vscode",
4+
"tauri-apps.tauri-vscode",
5+
"rust-lang.rust-analyzer"
6+
]
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"svelte.enable-ts-plugin": true
3+
}

infrastructure/eid-wallet/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ The eID wallet service will be a mobile application which uses the secure crypto
3232
### Key Rotation requested by Notary
3333

3434
![](../../images/notary-init-rot.png)
35+
36+
# Tauri + SvelteKit + TypeScript
37+
38+
This template should help get you started developing with Tauri, SvelteKit and TypeScript in Vite.
39+
40+
## Recommended IDE Setup
41+
42+
[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).
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "eid-wallet",
3+
"version": "0.1.0",
4+
"description": "",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12+
"tauri": "tauri"
13+
},
14+
"license": "MIT",
15+
"dependencies": {
16+
"@tauri-apps/api": "^2",
17+
"@tauri-apps/plugin-opener": "^2"
18+
},
19+
"devDependencies": {
20+
"@sveltejs/adapter-static": "^3.0.6",
21+
"@sveltejs/kit": "^2.9.0",
22+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
23+
"svelte": "^5.0.0",
24+
"svelte-check": "^4.0.0",
25+
"typescript": "~5.6.2",
26+
"vite": "^6.0.3",
27+
"@tauri-apps/cli": "^2"
28+
}
29+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Generated by Tauri
6+
# will have schema files for capabilities auto-completion
7+
/gen/schemas
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
name = "eid-wallet"
3+
version = "0.1.0"
4+
description = "A Tauri App"
5+
authors = ["you"]
6+
edition = "2021"
7+
8+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9+
10+
[lib]
11+
# The `_lib` suffix may seem redundant but it is necessary
12+
# to make the lib name unique and wouldn't conflict with the bin name.
13+
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
14+
name = "eid_wallet_lib"
15+
crate-type = ["staticlib", "cdylib", "rlib"]
16+
17+
[build-dependencies]
18+
tauri-build = { version = "2", features = [] }
19+
20+
[dependencies]
21+
tauri = { version = "2", features = [] }
22+
tauri-plugin-opener = "2"
23+
serde = { version = "1", features = ["derive"] }
24+
serde_json = "1"
25+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
tauri_build::build()
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../gen/schemas/desktop-schema.json",
3+
"identifier": "default",
4+
"description": "Capability for the main window",
5+
"windows": ["main"],
6+
"permissions": [
7+
"core:default",
8+
"opener:default"
9+
]
10+
}
3.43 KB
Loading

0 commit comments

Comments
 (0)