Skip to content

Commit

Permalink
feat: added hmr in store
Browse files Browse the repository at this point in the history
  • Loading branch information
Uninen committed Nov 7, 2024
1 parent 95380d9 commit 8f6c7fa
Show file tree
Hide file tree
Showing 8 changed files with 655 additions and 674 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ jobs:
run: pnpm test:ci

- name: Coverage
uses: davelosert/vitest-coverage-report-action@v2.6.0
uses: davelosert/vitest-coverage-report-action@v2.7.0
if: ${{ always() }}
11 changes: 9 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Changelog

## 6.1.0 (2024-11-07)

- Feat: added HMR support to Pinia store.
- Feat: enabled `preprocessorMaxWorkers` settings in Vite config. This speeds up CSS processing in larger projects.
- Chore: changed Playwright mobile test to use iPhone SE.
- Chore: bumped all deps.

## 6.0.0 (2024-10-24)

- Feat: migrated Eslint configs to the new flat format
- Feat: added VSCode settings and extension recommendations
- Feat: migrated Eslint configs to the new flat format.
- Feat: added VSCode settings and extension recommendations.
- Chore: bumped all deps.

## 5.4.0 (2024-06-20)
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-ts-tailwind-starter",
"version": "6.0.0",
"version": "6.1.0",
"type": "module",
"scripts": {
"dev": "cross-env DEBUG=0 vite",
Expand All @@ -17,30 +17,30 @@
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"@unhead/vue": "1.11.10",
"pinia": "2.2.4",
"@unhead/vue": "1.11.11",
"pinia": "2.2.6",
"vue": "3.5.12",
"vue-router": "4.4.5"
},
"devDependencies": {
"@egoist/tailwindcss-icons": "1.8.1",
"@iconify/json": "2.2.263",
"@iconify/json": "2.2.269",
"@iconify/types": "2.0.0",
"@pinia/testing": "0.1.6",
"@playwright/test": "1.48.1",
"@pinia/testing": "0.1.7",
"@playwright/test": "1.48.2",
"@rushstack/eslint-patch": "1.10.4",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.9",
"@tailwindcss/line-clamp": "0.4.4",
"@tailwindcss/typography": "0.5.15",
"@tsconfig/node20": "20.1.4",
"@tsconfig/node22": "22.0.0",
"@types/jsdom": "21.1.7",
"@types/lodash-es": "4.17.12",
"@types/node": "22.8.1",
"@typescript-eslint/eslint-plugin": "8.11.0",
"@typescript-eslint/parser": "8.11.0",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "8.13.0",
"@typescript-eslint/parser": "8.13.0",
"@vitejs/plugin-vue": "5.1.4",
"@vitest/coverage-v8": "2.1.3",
"@vitest/coverage-v8": "2.1.4",
"@vitest/eslint-plugin": "1.1.7",
"@vue/eslint-config-prettier": "10.1.0",
"@vue/eslint-config-typescript": "14.1.3",
Expand All @@ -49,10 +49,10 @@
"autoprefixer": "10.4.20",
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"eslint": "9.13.0",
"eslint-plugin-playwright": "2.0.0",
"eslint": "9.14.0",
"eslint-plugin-playwright": "2.0.1",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-vue": "9.29.1",
"eslint-plugin-vue": "9.30.0",
"jsdom": "25.0.1",
"lodash-es": "4.17.21",
"npm-run-all2": "7.0.1",
Expand All @@ -65,9 +65,9 @@
"unplugin-auto-import": "0.18.3",
"unplugin-vue-components": "0.27.4",
"vite": "5.4.10",
"vite-plugin-vue-devtools": "7.5.4",
"vitest": "2.1.3",
"vue-tsc": "2.1.6",
"vite-plugin-vue-devtools": "7.6.3",
"vitest": "2.1.4",
"vue-tsc": "2.1.10",
"wait-on": "8.0.1"
}
}
24 changes: 16 additions & 8 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import type { PlaywrightTestConfig } from '@playwright/test'
import { devices } from '@playwright/test'
import { defineConfig, devices } from '@playwright/test'

const config: PlaywrightTestConfig = {
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests/e2e',
timeout: 30 * 1000,
expect: {
Expand Down Expand Up @@ -30,10 +40,10 @@ const config: PlaywrightTestConfig = {
},
projects: [
{
name: 'iPhone 6',
name: 'iPhone SE',
use: {
browserName: 'webkit',
...devices['iPhone 6'],
...devices['iPhone SE'],
},
},
{
Expand All @@ -51,6 +61,4 @@ const config: PlaywrightTestConfig = {
},
},
],
}

export default config
})
Loading

0 comments on commit 8f6c7fa

Please sign in to comment.