https://github.com/cuixiaorui/vite-scaffold-template
for vite template
https://github.com/cuixiaorui/vite-scaffold-template
Last synced: about 2 months ago
JSON representation
for vite template
- Host: GitHub
- URL: https://github.com/cuixiaorui/vite-scaffold-template
- Owner: cuixiaorui
- Created: 2021-02-24T08:27:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-05T02:39:53.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T05:12:54.448Z (2 months ago)
- Language: JavaScript
- Size: 694 KB
- Stars: 18
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite-scaffold-template
基于 vite 的项目模板
集成项目必备的基建
> 开箱即用
## Feature
- ts
- vuex
- vue-router
- e2e
- cypress
- test unit
- jest + vtu + @testing-library/vue
- eslint + prettier
- verify git commit message
- CI
- alias
- mock api - msw## 测试
- .test 后缀的为 单元测试
- .spec 后缀的为 e2e 测试和 component test 测试e2e 的可以放到 tests/e2e 中
component test 的测试可以和组件.vue 放到一起
单元测试可以放到 tests/unit 或者和具体的逻辑文件放到一起## cypress 的使用
因为 cypress 的 expect 和 jest 的 expect 是冲突的
现在的解决方案是使用 [local-cypress](https://github.com/bahmutov/local-cypress) 来解决