@duonghieu0712z/create-tauri-vue-template 0.0.13 → 0.0.14

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/README.md CHANGED
@@ -16,7 +16,7 @@ Pass values directly when needed:
16
16
  pnpm create @duonghieu0712z/tauri-vue-template@latest my-app --name "My App" --id "com.example.my-app" --author "Your Name"
17
17
  ```
18
18
 
19
- The CLI copies the bundled template into the target directory, updates the package name, Tauri product name, application identifier, Rust crate names, release workflow metadata, and VS Code workspace settings.
19
+ The CLI copies the bundled template into the target directory, updates the package name, Tauri product name, application identifier, Rust crate names, release workflow metadata, VS Code workspace settings, and initializes a Git repository.
20
20
 
21
21
  ## Development
22
22
 
@@ -1,6 +1,9 @@
1
+ import { execFile } from 'node:child_process';
1
2
  import { access, copyFile, cp, mkdir, readdir, rm } from 'node:fs/promises';
2
3
  import { resolve } from 'node:path';
4
+ import { promisify } from 'node:util';
3
5
  import { renameProject } from './project.js';
6
+ const execFileAsync = promisify(execFile);
4
7
  export async function ensureEmptyTarget(path) {
5
8
  await mkdir(path, { recursive: true });
6
9
  const entries = await readdir(path);
@@ -33,6 +36,9 @@ async function restorePackagedGitignore(targetDir) {
33
36
  }
34
37
  }));
35
38
  }
39
+ async function initializeGitRepository(targetDir) {
40
+ await execFileAsync('git', ['init'], { cwd: targetDir });
41
+ }
36
42
  export async function scaffoldProject(targetDir, packageDir, identity) {
37
43
  const templateDir = resolve(packageDir, 'template');
38
44
  await ensureTemplate(templateDir);
@@ -41,4 +47,5 @@ export async function scaffoldProject(targetDir, packageDir, identity) {
41
47
  await restorePackagedGitignore(targetDir);
42
48
  await removeTemplateArtifacts(targetDir);
43
49
  await renameProject(targetDir, identity);
50
+ await initializeGitRepository(targetDir);
44
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duonghieu0712z/create-tauri-vue-template",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Create a Tauri 2 + Vue 3 desktop app from the tauri-vue-template starter.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,6 +23,8 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^25.9.1",
26
+ "husky": "^9.1.7",
27
+ "lint-staged": "^17.0.5",
26
28
  "oxfmt": "^0.51.0",
27
29
  "oxlint": "^1.66.0",
28
30
  "typescript": "~6.0.3"
@@ -36,6 +38,7 @@
36
38
  "format": "oxfmt --check .",
37
39
  "format:fix": "oxfmt .",
38
40
  "lint": "oxlint .",
39
- "lint:fix": "oxlint --fix ."
41
+ "lint:fix": "oxlint --fix .",
42
+ "lint-staged": "lint-staged"
40
43
  }
41
44
  }
@@ -41,7 +41,6 @@ jobs:
41
41
  - name: Check ESLint
42
42
  uses: reviewdog/action-eslint@v1
43
43
  with:
44
- github_token: ${{ secrets.GITHUB_TOKEN }}
45
44
  reporter: ${{ github.event_name == 'pull_request' && 'github-pr-check' || 'github-check' }}
46
45
  filter_mode: ${{ github.event_name == 'pull_request' && 'added' || 'nofilter' }}
47
46
  fail_level: error
package/template/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 duonghieu0712z
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.