Skip to content

Commit

Permalink
Merge pull request #11 from kouts/dev
Browse files Browse the repository at this point in the history
fix: added vitest for unit testing
  • Loading branch information
kouts committed May 11, 2024
2 parents 78c7376 + 7633857 commit 03ce2c4
Show file tree
Hide file tree
Showing 14 changed files with 1,399 additions and 3,841 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ module.exports = {
'vue/multi-word-component-names': 'off'
}
}
]
],
globals: {
vi: true
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A single page app [Vite](https://vitejs.dev) starter template, created to easily
**Features**

- TypeScript
- Jest for unit testing
- Vitest for unit testing
- Pinia for state management
- Vue Router 4 for client-side routing
- Bootstrap 5.2 for layout and styling
Expand Down Expand Up @@ -60,4 +60,4 @@ pnpm run typecheck

### Customize configuration

See [Configuration Reference](https://vitejs.dev/guide/).
See [Configuration Reference](https://vitejs.dev/guide/).
16 changes: 0 additions & 16 deletions babel.config.js

This file was deleted.

File renamed without changes.
26 changes: 0 additions & 26 deletions jest.config.js

This file was deleted.

File renamed without changes.
41 changes: 19 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,47 @@
"license": "MIT",
"repository": "https://github.com/kouts/vue3-ts-vite-starter-template",
"packageManager": "pnpm@8.9.2",
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint \"**/*.{vue,ts,js}\"",
"lint-fix": "eslint --fix \"**/*.{vue,ts,js}\"",
"test:unit": "jest",
"test:unit": "vitest",
"test:unit-coverage": "vitest run --coverage",
"typecheck": "vue-tsc --noEmit",
"prepare": "husky"
},
"dependencies": {
"bootstrap": "^5.3.3",
"pinia": "^2.1.7",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
"vue": "^3.4.27",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@babel/core": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@fullhuman/postcss-purgecss": "^5.0.0",
"@fullhuman/vue-cli-plugin-purgecss": "^5.0.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@fullhuman/vue-cli-plugin-purgecss": "^6.0.0",
"@kouts/eslint-config": "^0.0.14",
"@types/jest": "^29.5.12",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.11.30",
"@types/node": "^20.12.11",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/compiler-sfc": "^3.4.21",
"@vue/test-utils": "^2.4.5",
"@vue/vue3-jest": "^29.2.6",
"@vitest/coverage-v8": "^1.6.0",
"@vue/compiler-sfc": "^3.4.27",
"@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.19",
"babel-jest": "^29.7.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"sass": "^1.72.0",
"ts-jest": "^29.1.2",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vue-tsc": "^2.0.7"
"sass": "^1.77.1",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.17"
}
}
Loading

0 comments on commit 03ce2c4

Please sign in to comment.