@duonghieu0712z/create-tauri-vue-template 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/template/.github/workflows/code-quality.yml +7 -82
- package/template/.github/workflows/quality-checks.yml +91 -0
- package/template/.github/workflows/release.yml +12 -3
- package/template/.oxfmtrc.json +1 -0
- package/template/package.json +17 -17
- package/template/{bump-version.js → scripts/bump-version.js} +1 -1
- package/template/src/styles/globals.css +5 -4
- package/template/src-tauri/Cargo.lock +584 -842
- package/template/pnpm-lock.yaml +0 -4471
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duonghieu0712z/create-tauri-vue-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Create a Tauri 2 + Vue 3 desktop app from the tauri-vue-template starter.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/node": "^26.0.0",
|
|
33
33
|
"husky": "^9.1.7",
|
|
34
34
|
"lint-staged": "^17.0.5",
|
|
35
|
-
"oxfmt": "^0.
|
|
35
|
+
"oxfmt": "^0.66.0",
|
|
36
36
|
"oxlint": "^1.66.0",
|
|
37
37
|
"typescript": "~6.0.3"
|
|
38
38
|
},
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
version: 11
|
|
28
28
|
|
|
29
29
|
- name: Setup Node.js
|
|
30
|
-
uses: actions/setup-node@
|
|
30
|
+
uses: actions/setup-node@v7
|
|
31
31
|
with:
|
|
32
32
|
node-version: 24
|
|
33
33
|
cache: pnpm
|
|
@@ -43,84 +43,9 @@ jobs:
|
|
|
43
43
|
if: github.event_name == 'pull_request'
|
|
44
44
|
run: pnpm commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
name:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
uses: actions/checkout@v7
|
|
53
|
-
|
|
54
|
-
- name: Setup pnpm
|
|
55
|
-
uses: pnpm/action-setup@v6
|
|
56
|
-
with:
|
|
57
|
-
version: 11
|
|
58
|
-
|
|
59
|
-
- name: Setup Node.js
|
|
60
|
-
uses: actions/setup-node@v6
|
|
61
|
-
with:
|
|
62
|
-
node-version: 24
|
|
63
|
-
cache: pnpm
|
|
64
|
-
|
|
65
|
-
- name: Install dependencies
|
|
66
|
-
run: pnpm install --frozen-lockfile
|
|
67
|
-
|
|
68
|
-
- name: Check formatting
|
|
69
|
-
run: pnpm format
|
|
70
|
-
|
|
71
|
-
- name: Check oxlint
|
|
72
|
-
run: pnpm lint:check:oxlint --format=github
|
|
73
|
-
|
|
74
|
-
- name: Check ESLint
|
|
75
|
-
uses: reviewdog/action-eslint@v1
|
|
76
|
-
with:
|
|
77
|
-
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-check' || 'github-check' }}
|
|
78
|
-
filter_mode: ${{ github.event_name == 'pull_request' && 'added' || 'nofilter' }}
|
|
79
|
-
fail_level: error
|
|
80
|
-
eslint_flags: '. --cache'
|
|
81
|
-
|
|
82
|
-
- name: Check types
|
|
83
|
-
run: pnpm type-check
|
|
84
|
-
|
|
85
|
-
- name: Build frontend
|
|
86
|
-
run: pnpm build-only
|
|
87
|
-
|
|
88
|
-
tauri-quality:
|
|
89
|
-
name: Tauri quality (${{ matrix.os }})
|
|
90
|
-
runs-on: ${{ matrix.os }}
|
|
91
|
-
|
|
92
|
-
strategy:
|
|
93
|
-
fail-fast: false
|
|
94
|
-
matrix:
|
|
95
|
-
os:
|
|
96
|
-
- macos-latest
|
|
97
|
-
- ubuntu-latest
|
|
98
|
-
- windows-latest
|
|
99
|
-
|
|
100
|
-
steps:
|
|
101
|
-
- name: Checkout repository
|
|
102
|
-
uses: actions/checkout@v7
|
|
103
|
-
|
|
104
|
-
- name: Install Linux dependencies
|
|
105
|
-
if: matrix.os == 'ubuntu-latest'
|
|
106
|
-
run: |
|
|
107
|
-
sudo apt-get update
|
|
108
|
-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
|
109
|
-
|
|
110
|
-
- name: Setup Rust
|
|
111
|
-
uses: dtolnay/rust-toolchain@stable
|
|
112
|
-
with:
|
|
113
|
-
components: rustfmt, clippy
|
|
114
|
-
|
|
115
|
-
- name: Rust cache
|
|
116
|
-
uses: swatinem/rust-cache@v2
|
|
117
|
-
with:
|
|
118
|
-
workspaces: './src-tauri -> target'
|
|
119
|
-
|
|
120
|
-
- name: Check formatting
|
|
121
|
-
working-directory: src-tauri
|
|
122
|
-
run: cargo fmt -- --check
|
|
123
|
-
|
|
124
|
-
- name: Check Clippy
|
|
125
|
-
working-directory: src-tauri
|
|
126
|
-
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
46
|
+
quality:
|
|
47
|
+
name: Code quality
|
|
48
|
+
uses: ./.github/workflows/quality-checks.yml
|
|
49
|
+
permissions:
|
|
50
|
+
checks: write
|
|
51
|
+
contents: read
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: Quality Checks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
checks: write
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
frontend-quality:
|
|
12
|
+
name: Frontend quality
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v7
|
|
18
|
+
|
|
19
|
+
- name: Setup pnpm
|
|
20
|
+
uses: pnpm/action-setup@v6
|
|
21
|
+
with:
|
|
22
|
+
version: 11
|
|
23
|
+
|
|
24
|
+
- name: Setup Node.js
|
|
25
|
+
uses: actions/setup-node@v7
|
|
26
|
+
with:
|
|
27
|
+
node-version: 24
|
|
28
|
+
cache: pnpm
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: pnpm install --frozen-lockfile
|
|
32
|
+
|
|
33
|
+
- name: Check formatting
|
|
34
|
+
run: pnpm format
|
|
35
|
+
|
|
36
|
+
- name: Check oxlint
|
|
37
|
+
run: pnpm lint:check:oxlint --format=github
|
|
38
|
+
|
|
39
|
+
- name: Check ESLint
|
|
40
|
+
uses: reviewdog/action-eslint@v1
|
|
41
|
+
with:
|
|
42
|
+
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-check' || 'github-check' }}
|
|
43
|
+
filter_mode: ${{ github.event_name == 'pull_request' && 'added' || 'nofilter' }}
|
|
44
|
+
fail_level: error
|
|
45
|
+
eslint_flags: '. --cache'
|
|
46
|
+
|
|
47
|
+
- name: Check types
|
|
48
|
+
run: pnpm type-check
|
|
49
|
+
|
|
50
|
+
- name: Build frontend
|
|
51
|
+
run: pnpm build-only
|
|
52
|
+
|
|
53
|
+
tauri-quality:
|
|
54
|
+
name: Tauri quality (${{ matrix.os }})
|
|
55
|
+
runs-on: ${{ matrix.os }}
|
|
56
|
+
|
|
57
|
+
strategy:
|
|
58
|
+
fail-fast: false
|
|
59
|
+
matrix:
|
|
60
|
+
os:
|
|
61
|
+
- macos-latest
|
|
62
|
+
- ubuntu-latest
|
|
63
|
+
- windows-latest
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- name: Checkout repository
|
|
67
|
+
uses: actions/checkout@v7
|
|
68
|
+
|
|
69
|
+
- name: Install Linux dependencies
|
|
70
|
+
if: matrix.os == 'ubuntu-latest'
|
|
71
|
+
run: |
|
|
72
|
+
sudo apt-get update
|
|
73
|
+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
|
74
|
+
|
|
75
|
+
- name: Setup Rust
|
|
76
|
+
uses: dtolnay/rust-toolchain@stable
|
|
77
|
+
with:
|
|
78
|
+
components: rustfmt, clippy
|
|
79
|
+
|
|
80
|
+
- name: Rust cache
|
|
81
|
+
uses: swatinem/rust-cache@v2
|
|
82
|
+
with:
|
|
83
|
+
workspaces: './src-tauri -> target'
|
|
84
|
+
|
|
85
|
+
- name: Check formatting
|
|
86
|
+
working-directory: src-tauri
|
|
87
|
+
run: cargo fmt -- --check
|
|
88
|
+
|
|
89
|
+
- name: Check Clippy
|
|
90
|
+
working-directory: src-tauri
|
|
91
|
+
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
@@ -11,6 +11,13 @@ concurrency:
|
|
|
11
11
|
cancel-in-progress: true
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
+
quality:
|
|
15
|
+
name: Code quality
|
|
16
|
+
uses: ./.github/workflows/quality-checks.yml
|
|
17
|
+
permissions:
|
|
18
|
+
checks: write
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
14
21
|
changelog:
|
|
15
22
|
name: Read release changelog
|
|
16
23
|
runs-on: ubuntu-latest
|
|
@@ -72,7 +79,9 @@ jobs:
|
|
|
72
79
|
|
|
73
80
|
build:
|
|
74
81
|
name: Build release (${{ matrix.label }})
|
|
75
|
-
needs:
|
|
82
|
+
needs:
|
|
83
|
+
- changelog
|
|
84
|
+
- quality
|
|
76
85
|
permissions:
|
|
77
86
|
contents: write
|
|
78
87
|
runs-on: ${{ matrix.os }}
|
|
@@ -110,7 +119,7 @@ jobs:
|
|
|
110
119
|
version: 11
|
|
111
120
|
|
|
112
121
|
- name: Setup Node.js
|
|
113
|
-
uses: actions/setup-node@
|
|
122
|
+
uses: actions/setup-node@v7
|
|
114
123
|
with:
|
|
115
124
|
node-version: 24
|
|
116
125
|
cache: pnpm
|
|
@@ -136,4 +145,4 @@ jobs:
|
|
|
136
145
|
releaseBody: ${{ needs.changelog.outputs.body }}
|
|
137
146
|
releaseDraft: true
|
|
138
147
|
prerelease: false
|
|
139
|
-
releaseAssetNamePattern: '[
|
|
148
|
+
releaseAssetNamePattern: '[mainBinaryName]-v[version]-${{ matrix.platform }}-[arch][setup][ext]'
|
package/template/.oxfmtrc.json
CHANGED
package/template/package.json
CHANGED
|
@@ -20,46 +20,46 @@
|
|
|
20
20
|
"lint:fix:eslint": "eslint --fix . --cache",
|
|
21
21
|
"format": "oxfmt --check .",
|
|
22
22
|
"format:fix": "oxfmt .",
|
|
23
|
-
"bump": "node bump-version.js",
|
|
23
|
+
"bump": "node scripts/bump-version.js",
|
|
24
24
|
"prepare": "husky"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lucide/vue": "^1.
|
|
27
|
+
"@lucide/vue": "^1.28.0",
|
|
28
28
|
"@tauri-apps/api": "^2.11.1",
|
|
29
29
|
"class-variance-authority": "^0.7.1",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
31
|
"tailwind-merge": "^3.6.0",
|
|
32
|
-
"vue": "^3.5.
|
|
32
|
+
"vue": "^3.5.40"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@commitlint/cli": "^21.2.1",
|
|
36
36
|
"@commitlint/config-conventional": "^21.2.0",
|
|
37
|
-
"@tailwindcss/vite": "^4.3.
|
|
37
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
38
38
|
"@tauri-apps/cli": "^2.11.4",
|
|
39
39
|
"@tsconfig/node24": "^24.0.4",
|
|
40
|
-
"@types/node": "^26.1.
|
|
41
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
40
|
+
"@types/node": "^26.1.2",
|
|
41
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
42
42
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
43
43
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
44
44
|
"@vue/tsconfig": "^0.9.1",
|
|
45
|
-
"eslint": "^10.
|
|
46
|
-
"eslint-plugin-oxlint": "^1.
|
|
47
|
-
"eslint-plugin-vue": "^10.
|
|
45
|
+
"eslint": "^10.8.0",
|
|
46
|
+
"eslint-plugin-oxlint": "^1.75.0",
|
|
47
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
48
48
|
"husky": "^9.1.7",
|
|
49
49
|
"jiti": "^2.7.0",
|
|
50
|
-
"lint-staged": "^17.0
|
|
51
|
-
"npm-run-all2": "^9.0.
|
|
52
|
-
"oxfmt": "^0.
|
|
53
|
-
"oxlint": "^1.
|
|
50
|
+
"lint-staged": "^17.2.0",
|
|
51
|
+
"npm-run-all2": "^9.0.3",
|
|
52
|
+
"oxfmt": "^0.61.0",
|
|
53
|
+
"oxlint": "^1.75.0",
|
|
54
54
|
"picomatch": "^4.0.5",
|
|
55
|
-
"tailwindcss": "^4.3.
|
|
55
|
+
"tailwindcss": "^4.3.3",
|
|
56
56
|
"tw-animate-css": "^1.4.0",
|
|
57
57
|
"typescript": "~6.0.3",
|
|
58
58
|
"unplugin-auto-import": "^21.0.0",
|
|
59
59
|
"unplugin-vue-components": "^32.1.0",
|
|
60
|
-
"vite": "^8.
|
|
61
|
-
"vite-plugin-vue-devtools": "^8.1
|
|
62
|
-
"vue-tsc": "^3.3.
|
|
60
|
+
"vite": "^8.2.0",
|
|
61
|
+
"vite-plugin-vue-devtools": "^8.2.1",
|
|
62
|
+
"vue-tsc": "^3.3.8"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.12.0"
|
|
@@ -5,7 +5,7 @@ import { readFile, writeFile } from 'node:fs/promises';
|
|
|
5
5
|
function parseArgs() {
|
|
6
6
|
const args = process.argv.slice(2).filter((arg) => arg !== '--');
|
|
7
7
|
if (args.length !== 1 || args[0].startsWith('--')) {
|
|
8
|
-
throw new Error('Usage: node bump-version.js VERSION');
|
|
8
|
+
throw new Error('Usage: node scripts/bump-version.js VERSION');
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import 'tailwindcss';
|
|
2
2
|
@import 'tw-animate-css';
|
|
3
3
|
|
|
4
|
-
@import '
|
|
4
|
+
@import './fonts.css';
|
|
5
5
|
|
|
6
6
|
@custom-variant dark (&:is(.dark *));
|
|
7
7
|
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
body {
|
|
138
|
-
@apply bg-background text-
|
|
138
|
+
@apply bg-background font-ui text-sm text-foreground;
|
|
139
139
|
@apply cursor-default antialiased select-none;
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -144,7 +144,8 @@
|
|
|
144
144
|
@apply cursor-pointer;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
input
|
|
148
|
-
|
|
147
|
+
input,
|
|
148
|
+
input::-webkit-inner-spin-button {
|
|
149
|
+
@apply appearance-none;
|
|
149
150
|
}
|
|
150
151
|
}
|