Skip to content

Commit

Permalink
build: remove Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
chansee97 committed Mar 13, 2024
1 parent 015e5ef commit 0352922
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 项目根目录
VITE_BASE_URL=/
# 项目名称
VITE_APP_TITLE = Virtuoso
VITE_APP_TITLE = vite-vue3-starter
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
</div>

<div align='center'>
<h1>Virtuoso</h1>
<h1>vite-vue3-starter</h1>
<h4>Virtuoso</h4>
</div>

<div align='center' >
A quick start template for a vue project, based on Vite, Unocss
A quick start template for a vue3 project, based on Vite, Unocss
</div>

<div align='center'>
Expand All @@ -16,7 +17,7 @@

<div align='center'>

<b>English</b> | [简体中文](https://github.com/chansee97/virtuoso/blob/main/README.zh-CN.md)
<b>English</b> | [简体中文](https://github.com/chansee97/vite-vue3-starter.vercel.app/blob/main/README.zh-CN.md)
</div>

## Features
Expand All @@ -32,17 +33,16 @@
- Dark mode adaptation
- [Components auto importing](./src/components)
- [APIs auto importing](https://github.com/antfu/unplugin-auto-import) - use Composition API and others directly
- e2e testing - end-to-end testing with [cypress](https://www.cypress.io/)

## Usage
### GitHub Template
[Create a repo from this template on GitHub.](https://github.com/chansee97/virtuoso/generate)
[Create a repo from this template on GitHub.](https://github.com/chansee97/vite-vue3-starter/generate)

### Development

```bash
# clone
git clone https://github.com/chansee97/virtuoso.git
git clone https://github.com/chansee97/vite-vue3-starter.vercel.app.git
# Installation of dependencies
pnpm i
# Development visit http://localhost:5200
Expand Down
12 changes: 6 additions & 6 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
</div>

<div align='center'>
<h1>Virtuoso</h1>
<h1>vite-vue3-starter</h1>
<h4>Virtuoso</h4>
</div>

<div align='center' >
一个基于Vite, Unocss的Vue快速启动模板
一个基于Vite, Unocss的Vue3快速启动模板
</div>

<div align='center' style="margin:2em 0;">
Expand All @@ -16,7 +17,7 @@

<div align='center' style="margin:2em 0;">

[英语](https://github.com/chansee97/virtuoso/blob/main/README.md) | <b>简体中文</b>
[英语](https://github.com/chansee97/vite-vue3-starter/blob/main/README.md) | <b>简体中文</b>
</div>

## 特点
Expand All @@ -32,17 +33,16 @@
- 暗黑模式适配
- [组件自动引入](./src/components)
- [API自动引入](https://github.com/antfu/unplugin-auto-import) - 直接使用Composition和其他文件夹的API
- e2e测试 - 使用[cypress](https://www.cypress.io/)进行端到端测试

## 用法
### GitHub 模板
[根据此模板在 GitHub 上创建一个 repo](https://github.com/chansee97/virtuoso/generate)
[根据此模板在 GitHub 上创建一个 repo](https://github.com/chansee97/vite-vue3-starter/generate)

### 开发

```bash
# clone
git clone https://github.com/chansee97/virtuoso.git
git clone https://github.com/chansee97/vite-vue3-starter.git
# Installation of dependencies
pnpm i
# Development visit http://localhost:5200
Expand Down
14 changes: 0 additions & 14 deletions cypress.config.ts

This file was deleted.

15 changes: 0 additions & 15 deletions cypress/e2e/basic.cy.ts

This file was deleted.

37 changes: 0 additions & 37 deletions cypress/support/commands.ts

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/support/e2e.ts

This file was deleted.

12 changes: 0 additions & 12 deletions cypress/tsconfig.json

This file was deleted.

27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "virtuoso",
"name": "vite-vue3-starter",
"type": "module",
"version": "0.1.0",
"author": "Rock Chen",
"license": "MIT",
"homepage": "https://github.com/chansee97/virtuoso",
"homepage": "https://github.com/chansee97/vite-vue3-starter",
"repository": {
"type": "git",
"url": "git+https://github.com/chansee97/virtuoso.git"
"url": "git+https://github.com/chansee97/vite-vue3-starter.git"
},
"bugs": {
"url": "https://github.com/chansee97/virtuoso/issues"
"url": "https://github.com/chansee97/vite-vue3-starter/issues"
},
"keywords": [
"vue",
Expand All @@ -32,35 +32,34 @@
},
"dependencies": {
"@unocss/reset": "^0.58.5",
"@vueuse/core": "^10.8.0",
"@vueuse/core": "^10.9.0",
"axios": "^1.6.7",
"nprogress": "^0.2.0",
"pinia": "^2.1.7",
"vue": "^3.4.20",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.4",
"@antfu/eslint-config": "^2.8.1",
"@iconify-json/icon-park-outline": "^1.1.15",
"@types/node": "^20.11.20",
"@types/node": "^20.11.26",
"@types/nprogress": "^0.2.3",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"cypress": "^13.6.6",
"eslint": "^8.57.0",
"lint-staged": "^15.2.2",
"naive-ui": "^2.38.1",
"simple-git-hooks": "^2.9.0",
"typescript": "^5.3.3",
"simple-git-hooks": "^2.10.0",
"typescript": "^5.4.2",
"unocss": "^0.58.5",
"unplugin-auto-import": "^0.17.5",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-router": "^0.8.4",
"vite": "^5.1.4",
"vite": "^5.1.6",
"vite-bundle-visualizer": "^1.0.1",
"vite-plugin-pwa": "^0.19.0",
"vite-plugin-pwa": "^0.19.2",
"vite-plugin-vue-layouts": "^0.11.0",
"vue-tsc": "^1.8.27"
"vue-tsc": "^2.0.6"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
6 changes: 3 additions & 3 deletions src/components/VFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ function toggleDark() {
<span class="i-icon-park-outline-network-tree" />
</n-button>
</router-link>
<a
href="https://github.com/chansee97/virtuoso" target="_blank"
> <n-button title="Github Repo"><div class="i-icon-park-outline-github" /></n-button></a>
<a href="https://github.com/chansee97/vite-vue3-starter" target="_blank"> <n-button title="Github Repo">
<div class="i-icon-park-outline-github" />
</n-button></a>

<n-button title="Toggle" @click="toggleDark">
<span :class="isDark ? 'i-icon-park-outline-sun' : 'i-icon-park-outline-moon' " />
Expand Down

0 comments on commit 0352922

Please sign in to comment.