@duonghieu0712z/create-tauri-vue-template 1.0.1 → 1.0.3
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/.gitattributes +0 -2
- package/template/.github/workflows/code-quality.yml +6 -83
- package/template/.github/workflows/quality-checks.yml +89 -0
- package/template/.github/workflows/release.yml +13 -5
- package/template/package.json +10 -9
- package/template/pnpm-lock.yaml +731 -717
- package/template/rust-toolchain.toml +1 -0
- package/template/{bump-version.js → scripts/bump-version.js} +1 -1
- package/template/src/generated/auto-import.d.ts +2 -0
- package/template/src-tauri/Cargo.lock +1 -1
- package/template/src-tauri/Cargo.toml +39 -0
- package/template/src-tauri/build.rs +1 -1
- package/template/src-tauri/clippy.toml +3 -0
- package/template/src-tauri/rustfmt.toml +14 -0
- package/template/src-tauri/src/command/mod.rs +2 -2
- package/template/src-tauri/src/lib.rs +15 -7
- package/template/src-tauri/src/main.rs +1 -1
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.3",
|
|
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
|
},
|
package/template/.gitattributes
CHANGED
|
@@ -23,8 +23,6 @@ jobs:
|
|
|
23
23
|
|
|
24
24
|
- name: Setup pnpm
|
|
25
25
|
uses: pnpm/action-setup@v6
|
|
26
|
-
with:
|
|
27
|
-
version: 11
|
|
28
26
|
|
|
29
27
|
- name: Setup Node.js
|
|
30
28
|
uses: actions/setup-node@v7
|
|
@@ -43,84 +41,9 @@ jobs:
|
|
|
43
41
|
if: github.event_name == 'pull_request'
|
|
44
42
|
run: pnpm commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|
|
45
43
|
|
|
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@v7
|
|
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
|
|
44
|
+
quality:
|
|
45
|
+
name: Code quality
|
|
46
|
+
uses: ./.github/workflows/quality-checks.yml
|
|
47
|
+
permissions:
|
|
48
|
+
checks: write
|
|
49
|
+
contents: read
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
|
|
22
|
+
- name: Setup Node.js
|
|
23
|
+
uses: actions/setup-node@v7
|
|
24
|
+
with:
|
|
25
|
+
node-version: 24
|
|
26
|
+
cache: pnpm
|
|
27
|
+
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: pnpm install --frozen-lockfile
|
|
30
|
+
|
|
31
|
+
- name: Check formatting
|
|
32
|
+
run: pnpm format
|
|
33
|
+
|
|
34
|
+
- name: Check oxlint
|
|
35
|
+
run: pnpm lint:check:oxlint --format=github
|
|
36
|
+
|
|
37
|
+
- name: Check ESLint
|
|
38
|
+
uses: reviewdog/action-eslint@v1
|
|
39
|
+
with:
|
|
40
|
+
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-check' || 'github-check' }}
|
|
41
|
+
filter_mode: ${{ github.event_name == 'pull_request' && 'added' || 'nofilter' }}
|
|
42
|
+
fail_level: error
|
|
43
|
+
eslint_flags: '. --cache'
|
|
44
|
+
|
|
45
|
+
- name: Check types
|
|
46
|
+
run: pnpm type-check
|
|
47
|
+
|
|
48
|
+
- name: Build frontend
|
|
49
|
+
run: pnpm build-only
|
|
50
|
+
|
|
51
|
+
tauri-quality:
|
|
52
|
+
name: Tauri quality (${{ matrix.os }})
|
|
53
|
+
runs-on: ${{ matrix.os }}
|
|
54
|
+
|
|
55
|
+
strategy:
|
|
56
|
+
fail-fast: false
|
|
57
|
+
matrix:
|
|
58
|
+
os:
|
|
59
|
+
- macos-latest
|
|
60
|
+
- ubuntu-latest
|
|
61
|
+
- windows-latest
|
|
62
|
+
|
|
63
|
+
steps:
|
|
64
|
+
- name: Checkout repository
|
|
65
|
+
uses: actions/checkout@v7
|
|
66
|
+
|
|
67
|
+
- name: Install Linux dependencies
|
|
68
|
+
if: matrix.os == 'ubuntu-latest'
|
|
69
|
+
run: |
|
|
70
|
+
sudo apt-get update
|
|
71
|
+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
|
72
|
+
|
|
73
|
+
- name: Setup Rust
|
|
74
|
+
uses: dtolnay/rust-toolchain@stable
|
|
75
|
+
with:
|
|
76
|
+
components: rustfmt, clippy
|
|
77
|
+
|
|
78
|
+
- name: Rust cache
|
|
79
|
+
uses: swatinem/rust-cache@v2
|
|
80
|
+
with:
|
|
81
|
+
workspaces: './src-tauri -> target'
|
|
82
|
+
|
|
83
|
+
- name: Check formatting
|
|
84
|
+
working-directory: src-tauri
|
|
85
|
+
run: cargo fmt -- --check
|
|
86
|
+
|
|
87
|
+
- name: Check Clippy
|
|
88
|
+
working-directory: src-tauri
|
|
89
|
+
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
|
|
@@ -54,7 +61,8 @@ jobs:
|
|
|
54
61
|
.gsub(/[\[\].]/, '')
|
|
55
62
|
.gsub(/[^a-z0-9 _-]/, '')
|
|
56
63
|
.gsub(/\s+/, '-')
|
|
57
|
-
|
|
64
|
+
changelog_ref = event_name == 'workflow_dispatch' ? ENV.fetch('GITHUB_SHA') : "v#{heading_name}"
|
|
65
|
+
changelog_url = "#{ENV.fetch('GITHUB_SERVER_URL')}/#{ENV.fetch('GITHUB_REPOSITORY')}/blob/#{changelog_ref}/CHANGELOG.md##{anchor}"
|
|
58
66
|
body = "#{match[:body].strip}\n\n[See full changelog](#{changelog_url})"
|
|
59
67
|
end
|
|
60
68
|
rescue StandardError
|
|
@@ -72,7 +80,9 @@ jobs:
|
|
|
72
80
|
|
|
73
81
|
build:
|
|
74
82
|
name: Build release (${{ matrix.label }})
|
|
75
|
-
needs:
|
|
83
|
+
needs:
|
|
84
|
+
- changelog
|
|
85
|
+
- quality
|
|
76
86
|
permissions:
|
|
77
87
|
contents: write
|
|
78
88
|
runs-on: ${{ matrix.os }}
|
|
@@ -106,8 +116,6 @@ jobs:
|
|
|
106
116
|
|
|
107
117
|
- name: Setup pnpm
|
|
108
118
|
uses: pnpm/action-setup@v6
|
|
109
|
-
with:
|
|
110
|
-
version: 11
|
|
111
119
|
|
|
112
120
|
- name: Setup Node.js
|
|
113
121
|
uses: actions/setup-node@v7
|
|
@@ -136,4 +144,4 @@ jobs:
|
|
|
136
144
|
releaseBody: ${{ needs.changelog.outputs.body }}
|
|
137
145
|
releaseDraft: true
|
|
138
146
|
prerelease: false
|
|
139
|
-
releaseAssetNamePattern: '[
|
|
147
|
+
releaseAssetNamePattern: '[mainBinaryName]-v[version]-${{ matrix.platform }}-[arch][setup][ext]'
|
package/template/package.json
CHANGED
|
@@ -20,16 +20,16 @@
|
|
|
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.29.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.41"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@commitlint/cli": "^21.2.1",
|
|
@@ -43,25 +43,26 @@
|
|
|
43
43
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
44
44
|
"@vue/tsconfig": "^0.9.1",
|
|
45
45
|
"eslint": "^10.8.0",
|
|
46
|
-
"eslint-plugin-oxlint": "^1.
|
|
46
|
+
"eslint-plugin-oxlint": "^1.77.0",
|
|
47
47
|
"eslint-plugin-vue": "^10.10.0",
|
|
48
48
|
"husky": "^9.1.7",
|
|
49
49
|
"jiti": "^2.7.0",
|
|
50
50
|
"lint-staged": "^17.2.0",
|
|
51
|
-
"npm-run-all2": "^9.0.
|
|
52
|
-
"oxfmt": "^0.
|
|
53
|
-
"oxlint": "^1.
|
|
51
|
+
"npm-run-all2": "^9.0.3",
|
|
52
|
+
"oxfmt": "^0.62.0",
|
|
53
|
+
"oxlint": "^1.77.0",
|
|
54
54
|
"picomatch": "^4.0.5",
|
|
55
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.1
|
|
60
|
+
"vite": "^8.2.1",
|
|
61
61
|
"vite-plugin-vue-devtools": "^8.2.1",
|
|
62
62
|
"vue-tsc": "^3.3.8"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.12.0"
|
|
66
|
-
}
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "pnpm@11.26.0"
|
|
67
68
|
}
|