diff --git a/.husky/pre-commit b/.husky/pre-commit index 16b2f37..2979b13 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1,4 @@ +#!/bin/bash echo "Running pre-commit hook..." if command -v pnpm >/dev/null 2>&1; then diff --git a/.vscode/settings.json b/.vscode/settings.json index a16c80e..83c5d42 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,17 +3,12 @@ "source.fixAll": "explicit" }, "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[typescript]":{ + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, "typescript.tsdk": "node_modules/typescript/lib", - "typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"], - // https://github.com/antfu/vscode-file-nesting-config - "explorer.fileNesting.enabled": true, - "explorer.fileNesting.patterns": { - "tsconfig.json": "tsconfig.*.json, env.d.ts", - "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*", - "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig" - } + "typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"] } diff --git a/package.json b/package.json index 487eee7..729f070 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,15 @@ "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", - "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build --force", "lint": "eslint . --fix", "format": "prettier --write src/", "prepare": "husky", "dev+preview": "bunx dev-and-preview@1.0.0", - "taze": "pnpx taze", "playwright": "playwright test", "playwright:ui": "playwright test --ui", - "playwright:chromium": "playwright test --project=chromium", - "depcheck": "depcheck" + "playwright:chromium": "playwright test --project=chromium" }, "lint-staged": { "src/**/*.{js,ts,vue}": [ @@ -75,6 +72,8 @@ "@vue/eslint-config-typescript": "^14.1.1", "@vue/test-utils": "^2.4.6", "@vue/tsconfig": "^0.5.1", + "commitizen": "^4.3.1", + "cz-conventional-changelog": "^3.3.0", "depcheck": "^1.4.7", "eruda": "^3.4.0", "eslint": "^9.12.0", diff --git a/src/pages/a/index.vue b/src/pages/a/index.vue new file mode 100644 index 0000000..fb62d1f --- /dev/null +++ b/src/pages/a/index.vue @@ -0,0 +1,7 @@ + + + + +