@duonghieu0712z/create-tauri-vue-template 0.1.2 → 1.0.0
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 +1 -1
- package/template/.github/workflows/code-quality.yml +3 -0
- package/template/.github/workflows/release.yml +13 -8
- package/template/lint-staged.config.js +1 -1
- package/template/package.json +9 -9
- package/template/pnpm-lock.yaml +416 -418
- package/template/src/styles/globals.css +0 -21
- package/template/src-tauri/Cargo.lock +15 -46
package/package.json
CHANGED
|
@@ -31,19 +31,20 @@ jobs:
|
|
|
31
31
|
require 'securerandom'
|
|
32
32
|
|
|
33
33
|
ref = ENV.fetch('GITHUB_REF_NAME')
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
event_name = ENV.fetch('GITHUB_EVENT_NAME')
|
|
35
|
+
heading_name = event_name == 'workflow_dispatch' ? 'Unreleased' : ref.sub(/^v/, '')
|
|
36
|
+
if heading_name == ref
|
|
36
37
|
abort 'package.json is required to resolve the release version.' unless File.exist?('package.json')
|
|
37
|
-
|
|
38
|
+
heading_name = JSON.parse(File.read('package.json')).fetch('version')
|
|
38
39
|
end
|
|
39
40
|
|
|
40
|
-
body = "
|
|
41
|
+
body = "#{heading_name} release artifacts."
|
|
41
42
|
|
|
42
43
|
if File.exist?('CHANGELOG.md')
|
|
43
44
|
begin
|
|
44
45
|
content = File.read('CHANGELOG.md')
|
|
45
|
-
|
|
46
|
-
pattern = /^##\s+(?<heading>\[?v?#{
|
|
46
|
+
escaped_heading = Regexp.escape(heading_name)
|
|
47
|
+
pattern = /^##\s+(?<heading>\[?v?#{escaped_heading}\]?(?:\s+-[^\r\n]*)?)\r?\n(?<body>.*?)(?=^##\s+|\z)/m
|
|
47
48
|
match = content.match(pattern)
|
|
48
49
|
|
|
49
50
|
if match && !match[:body].strip.empty?
|
|
@@ -82,12 +83,16 @@ jobs:
|
|
|
82
83
|
include:
|
|
83
84
|
- os: macos-latest
|
|
84
85
|
label: macos-aarch64
|
|
85
|
-
|
|
86
|
+
platform: macos
|
|
87
|
+
- os: macos-26-intel
|
|
86
88
|
label: macos-x86_64
|
|
89
|
+
platform: macos
|
|
87
90
|
- os: ubuntu-latest
|
|
88
91
|
label: ubuntu
|
|
92
|
+
platform: linux
|
|
89
93
|
- os: windows-latest
|
|
90
94
|
label: windows
|
|
95
|
+
platform: windows
|
|
91
96
|
|
|
92
97
|
steps:
|
|
93
98
|
- name: Checkout repository
|
|
@@ -131,4 +136,4 @@ jobs:
|
|
|
131
136
|
releaseBody: ${{ needs.changelog.outputs.body }}
|
|
132
137
|
releaseDraft: true
|
|
133
138
|
prerelease: false
|
|
134
|
-
releaseAssetNamePattern: '[
|
|
139
|
+
releaseAssetNamePattern: '[name]-v[version]-${{ matrix.platform }}-[arch][setup][ext]'
|
|
@@ -32,5 +32,5 @@ export default {
|
|
|
32
32
|
? [createCommand('oxlint --fix', filtered), createCommand('eslint --fix', filtered)]
|
|
33
33
|
: [];
|
|
34
34
|
},
|
|
35
|
-
'*.rs': () => ['cargo
|
|
35
|
+
'*.rs': () => ['cargo fmt --manifest-path src-tauri/Cargo.toml'],
|
|
36
36
|
};
|
package/template/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "husky"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lucide/vue": "^1.
|
|
27
|
+
"@lucide/vue": "^1.24.0",
|
|
28
28
|
"@tauri-apps/api": "^2.11.1",
|
|
29
29
|
"class-variance-authority": "^0.7.1",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -32,34 +32,34 @@
|
|
|
32
32
|
"vue": "^3.5.39"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@commitlint/cli": "^21.2.
|
|
35
|
+
"@commitlint/cli": "^21.2.1",
|
|
36
36
|
"@commitlint/config-conventional": "^21.2.0",
|
|
37
37
|
"@tailwindcss/vite": "^4.3.2",
|
|
38
38
|
"@tauri-apps/cli": "^2.11.4",
|
|
39
39
|
"@tsconfig/node24": "^24.0.4",
|
|
40
|
-
"@types/node": "^26.1.
|
|
40
|
+
"@types/node": "^26.1.1",
|
|
41
41
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
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.
|
|
45
|
+
"eslint": "^10.7.0",
|
|
46
|
+
"eslint-plugin-oxlint": "^1.73.0",
|
|
47
47
|
"eslint-plugin-vue": "^10.9.2",
|
|
48
48
|
"husky": "^9.1.7",
|
|
49
49
|
"jiti": "^2.7.0",
|
|
50
50
|
"lint-staged": "^17.0.8",
|
|
51
51
|
"npm-run-all2": "^9.0.2",
|
|
52
|
-
"oxfmt": "^0.
|
|
53
|
-
"oxlint": "^1.
|
|
52
|
+
"oxfmt": "^0.58.0",
|
|
53
|
+
"oxlint": "^1.73.0",
|
|
54
54
|
"picomatch": "^4.0.5",
|
|
55
55
|
"tailwindcss": "^4.3.2",
|
|
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.1.4",
|
|
61
61
|
"vite-plugin-vue-devtools": "^8.1.5",
|
|
62
|
-
"vue-tsc": "^3.3.
|
|
62
|
+
"vue-tsc": "^3.3.7"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.12.0"
|