Skip to content

Commit 16e0d63

Browse files
authored
feat: Desktop Application for Vue Simulator [Tauri] (CircuitVerse#374)
* feat: Desktop Application for Vue Simulator [Tauri]
1 parent cb13645 commit 16e0d63

34 files changed

+4535
-1083
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
public/output
1415

1516
# Editor directories and files
1617
.vscode/*

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build]
2-
command = "npm run build && mkdir -p ./dist && cp -r ../public/* ./dist/ && mv ./dist/simulatorvue/index.html ./dist/"
2+
command = "npm run build && mkdir -p ./dist && cp -r ./public/* ./dist/ && mv ./dist/output/index.html ./dist/"
33

44
[[redirects]]
55
from = "/simulatorvue/*"
66
to = "/index.html"
7-
status = 200
7+
status = 200

package-lock.json

Lines changed: 313 additions & 1066 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"serve": "vite preview",
7-
"build": "vite build",
8-
"dev": "vite",
6+
"serve": "cross-env VITE_BASE_URL=/simulatorvue/ vite preview",
7+
"build": "cross-env VITE_BASE_URL=./ vite build --mode build --emptyOutDir",
8+
"dev": "cross-env VITE_BASE_URL=/simulatorvue/ vite",
9+
"tauri": "cross-env VITE_BASE_URL=/simulatorvue/ tauri",
910
"preview": "vite preview",
1011
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
1112
"format": "prettier . --write",
@@ -15,6 +16,7 @@
1516
"dependencies": {
1617
"@fortawesome/fontawesome-free": "^6.5.1",
1718
"@mdi/font": "5.9.55",
19+
"@tauri-apps/api": "^1.6.0",
1820
"@tiptap/core": "^2.0.3",
1921
"@tiptap/extension-character-count": "^2.0.3",
2022
"@tiptap/extension-subscript": "^2.0.3",
@@ -44,10 +46,13 @@
4446
"@commitlint/cli": "^17.0.2",
4547
"@commitlint/config-conventional": "^17.0.2",
4648
"@intlify/vite-plugin-vue-i18n": "^3.4.0",
49+
"@tauri-apps/cli": "^1.6.1",
4750
"@types/jquery": "^3.5.14",
4851
"@types/webfontloader": "^1.0.0",
4952
"@vitejs/plugin-vue": "^2.3.3",
5053
"@vue/test-utils": "^2.4.6",
54+
"cross-env": "^7.0.3",
55+
"dotenv": "^16.4.5",
5156
"eslint": "^8.17.0",
5257
"eslint-config-prettier": "^8.5.0",
5358
"eslint-plugin-vue": "^9.1.0",

src-tauri/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/

0 commit comments

Comments
 (0)