Skip to content

Commit

Permalink
refactor: misc DX improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Uninen committed Nov 18, 2024
1 parent 7b879f9 commit 4d89455
Show file tree
Hide file tree
Showing 8 changed files with 451 additions and 449 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ jobs:
PLAYWRIGHT_BROWSERS_PATH: 0

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
- uses: actions/checkout@v4.2.2
- uses: actions/cache@v4.1.2
with:
path: /home/runner/.local/share/pnpm/store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v2.4.1
with:
version: 9
run_install: true
- uses: actions/setup-node@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: 22
cache: 'pnpm'

- name: Type Check
run: pnpm type-check
run: pnpm ts

- name: Install Playwright browsers
run: npx playwright install --with-deps
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 7.1.0 (2024-11-19)

- Refactor: renamed `type-check` command to `ts`.
- Refactor: changed `with { type: 'json' }` for package.json import.
- Chore: pinned GH workflow action versions.
- Chore: bumped all deps.

## 7.0.1 (2024-11-12)

- Fix: fixed Eslint config.
Expand Down
3 changes: 2 additions & 1 deletion auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ declare global {
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
}

// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
Expand Down Expand Up @@ -183,4 +184,4 @@ declare module 'vue' {
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
}
}
}
2 changes: 0 additions & 2 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
FooterComponent: typeof import('./src/components/FooterComponent.vue')['default']
HeaderComponent: typeof import('./src/components/HeaderComponent.vue')['default']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "vite-ts-tailwind-starter",
"version": "7.0.1",
"version": "7.1.0",
"type": "module",
"scripts": {
"dev": "cross-env DEBUG=0 vite",
"build": "run-p type-check \"build-only {@}\" --",
"build": "run-p ts \"build-only {@}\" --",
"build-only": "vite build",
"preview": "vite build && vite preview",
"start": "pnpm dev & wait-on tcp:3000 -v",
Expand All @@ -14,20 +14,20 @@
"test:ci": "vitest run --coverage",
"test:ci-e2e": "playwright test",
"lint": "eslint . --fix",
"type-check": "vue-tsc --build --force"
"ts": "vue-tsc --build --force"
},
"dependencies": {
"@unhead/vue": "1.11.11",
"pinia": "2.2.6",
"vue": "3.5.12",
"vue": "3.5.13",
"vue-router": "4.4.5"
},
"devDependencies": {
"@egoist/tailwindcss-icons": "1.8.1",
"@iconify/json": "2.2.270",
"@iconify/json": "2.2.273",
"@iconify/types": "2.0.0",
"@pinia/testing": "0.1.7",
"@playwright/test": "1.48.2",
"@playwright/test": "1.49.0",
"@rushstack/eslint-patch": "1.10.4",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.9",
Expand All @@ -37,10 +37,10 @@
"@types/jsdom": "21.1.7",
"@types/lodash-es": "4.17.12",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/eslint-plugin": "8.15.0",
"@vitejs/plugin-vue": "5.2.0",
"@vitest/coverage-v8": "2.1.4",
"@vitest/eslint-plugin": "1.1.8",
"@vitest/coverage-v8": "2.1.5",
"@vitest/eslint-plugin": "1.1.10",
"@vue/eslint-config-prettier": "10.1.0",
"@vue/eslint-config-typescript": "14.1.3",
"@vue/test-utils": "2.4.6",
Expand All @@ -49,7 +49,7 @@
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"eslint": "9.15.0",
"eslint-plugin-playwright": "2.0.1",
"eslint-plugin-playwright": "2.1.0",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-vue": "9.31.0",
"jsdom": "25.0.1",
Expand All @@ -59,13 +59,13 @@
"postcss-import": "16.1.0",
"postcss-nesting": "13.0.1",
"prettier": "3.3.3",
"tailwindcss": "3.4.14",
"tailwindcss": "3.4.15",
"typescript": "5.6.3",
"unplugin-auto-import": "0.18.3",
"unplugin-auto-import": "0.18.4",
"unplugin-vue-components": "0.27.4",
"vite": "5.4.11",
"vite-plugin-vue-devtools": "7.6.4",
"vitest": "2.1.4",
"vitest": "2.1.5",
"vue-tsc": "2.1.10",
"wait-on": "8.0.1"
}
Expand Down
Loading

0 comments on commit 4d89455

Please sign in to comment.