Skip to content

Commit 09683d9

Browse files
committed
version 3.14.0 snapshot
1 parent a100920 commit 09683d9

File tree

7,255 files changed

+180061
-9221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,255 files changed

+180061
-9221
lines changed

bare-cypress-eslint/.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
2+
charset = utf-8
3+
indent_size = 2
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
end_of_line = lf
9+
max_line_length = 100

bare-cypress-eslint/.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

bare-cypress-eslint/.gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig"
6+
]
7+
}

bare-cypress-eslint/README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# bare-cypress-eslint
2+
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8+
9+
## Customize configuration
10+
11+
See [Vite Configuration Reference](https://vite.dev/config/).
12+
13+
## Project Setup
14+
15+
```sh
16+
pnpm install
17+
```
18+
19+
### Compile and Hot-Reload for Development
20+
21+
```sh
22+
pnpm dev
23+
```
24+
25+
### Compile and Minify for Production
26+
27+
```sh
28+
pnpm build
29+
```
30+
31+
### Run Headed Component Tests with [Cypress Component Testing](https://on.cypress.io/component)
32+
33+
```sh
34+
pnpm test:unit:dev # or `pnpm test:unit` for headless testing
35+
```
36+
37+
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
38+
39+
```sh
40+
pnpm test:e2e:dev
41+
```
42+
43+
This runs the end-to-end tests against the Vite development server.
44+
It is much faster than the production build.
45+
46+
But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):
47+
48+
```sh
49+
pnpm build
50+
pnpm test:e2e
51+
```
52+
53+
### Lint with [ESLint](https://eslint.org/)
54+
55+
```sh
56+
pnpm lint
57+
```

bare-cypress-eslint/cypress.config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
6+
baseUrl: 'http://localhost:4173',
7+
},
8+
component: {
9+
specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
10+
devServer: {
11+
framework: 'vue',
12+
bundler: 'vite',
13+
},
14+
},
15+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// https://on.cypress.io/api
2+
3+
describe('My First Test', () => {
4+
it('visits the app root url', () => {
5+
cy.visit('/')
6+
cy.contains('h1', 'You did it!')
7+
})
8+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Using fixtures to represent data",
3+
"email": "[email protected]",
4+
"body": "Fixtures are a great way to mock data for responses to routes"
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["es5", "dom"],
5+
"types": ["cypress"]
6+
},
7+
"include": ["./e2e/**/*", "./support/**/*"],
8+
"exclude": ["./support/component.*"]
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// ***********************************************
2+
// This example commands.js shows you how to
3+
// create various custom commands and overwrite
4+
// existing commands.
5+
//
6+
// For more comprehensive examples of custom
7+
// commands please read more here:
8+
// https://on.cypress.io/custom-commands
9+
// ***********************************************
10+
//
11+
//
12+
// -- This is a parent command --
13+
// Cypress.Commands.add('login', (email, password) => { ... })
14+
//
15+
//
16+
// -- This is a child command --
17+
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
18+
//
19+
//
20+
// -- This is a dual command --
21+
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
22+
//
23+
//
24+
// -- This will overwrite an existing command --
25+
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div data-cy-root></div>
11+
</body>
12+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// ***********************************************************
2+
// This example support/component.js is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands'
18+
19+
// Alternatively you can use CommonJS syntax:
20+
// require('./commands')
21+
22+
// Import global styles
23+
// import '@/assets/main.css'
24+
25+
import { mount } from 'cypress/vue'
26+
27+
Cypress.Commands.add('mount', mount)
28+
29+
// Example use:
30+
// cy.mount(MyComponent)
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ***********************************************************
2+
// This example support/index.js is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands'
18+
19+
// Alternatively you can use CommonJS syntax:
20+
// require('./commands')

bare-cypress-eslint/eslint.config.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import js from '@eslint/js'
2+
import pluginVue from 'eslint-plugin-vue'
3+
import pluginCypress from 'eslint-plugin-cypress/flat'
4+
5+
export default [
6+
{
7+
name: 'app/files-to-lint',
8+
files: ['**/*.{js,mjs,jsx,vue}'],
9+
},
10+
11+
{
12+
name: 'app/files-to-ignore',
13+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
14+
},
15+
16+
js.configs.recommended,
17+
...pluginVue.configs['flat/essential'],
18+
19+
{
20+
...pluginCypress.configs.recommended,
21+
files: [
22+
'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
23+
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
24+
'cypress/support/**/*.{js,ts,jsx,tsx}'
25+
],
26+
},
27+
]

bare-cypress-eslint/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

bare-cypress-eslint/jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

bare-cypress-eslint/package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "bare-cypress-eslint",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
11+
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
12+
"test:unit": "cypress run --component",
13+
"test:unit:dev": "cypress open --component",
14+
"lint": "eslint . --fix"
15+
},
16+
"dependencies": {
17+
"vue": "^3.5.13"
18+
},
19+
"devDependencies": {
20+
"@eslint/js": "^9.18.0",
21+
"@vitejs/plugin-vue": "^5.2.1",
22+
"cypress": "^14.0.0",
23+
"eslint": "^9.18.0",
24+
"eslint-plugin-cypress": "^4.1.0",
25+
"eslint-plugin-vue": "^9.32.0",
26+
"start-server-and-test": "^2.0.10",
27+
"vite": "^6.0.11",
28+
"vite-plugin-vue-devtools": "^7.7.0"
29+
}
30+
}
4.19 KB
Binary file not shown.

bare-cypress-eslint/src/App.vue

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup></script>
2+
3+
<template>
4+
<h1>Hello World</h1>
5+
</template>
6+
7+
<style scoped></style>

bare-cypress-eslint/src/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createApp } from 'vue'
2+
import App from './App.vue'
3+
4+
createApp(App).mount('#app')

bare-cypress-eslint/vite.config.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { fileURLToPath, URL } from 'node:url'
2+
3+
import { defineConfig } from 'vite'
4+
import vue from '@vitejs/plugin-vue'
5+
import vueDevTools from 'vite-plugin-vue-devtools'
6+
7+
// https://vite.dev/config/
8+
export default defineConfig({
9+
plugins: [
10+
vue(),
11+
vueDevTools(),
12+
],
13+
resolve: {
14+
alias: {
15+
'@': fileURLToPath(new URL('./src', import.meta.url))
16+
},
17+
},
18+
})

bare-cypress/cypress/e2e/jsconfig.json

-8
This file was deleted.

bare-cypress/cypress/jsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["es5", "dom"],
5+
"types": ["cypress"]
6+
},
7+
"include": ["./e2e/**/*", "./support/**/*"],
8+
"exclude": ["./support/component.*"]
9+
}

bare-cypress/cypress/support/component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import './commands'
2020
// require('./commands')
2121

2222
// Import global styles
23-
import '@/assets/main.css'
23+
// import '@/assets/main.css'
2424

2525
import { mount } from 'cypress/vue'
2626

bare-cypress/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
},
1818
"devDependencies": {
1919
"@vitejs/plugin-vue": "^5.2.1",
20-
"cypress": "^13.17.0",
21-
"start-server-and-test": "^2.0.9",
22-
"vite": "^6.0.5",
23-
"vite-plugin-vue-devtools": "^7.6.8"
20+
"cypress": "^14.0.0",
21+
"start-server-and-test": "^2.0.10",
22+
"vite": "^6.0.11",
23+
"vite-plugin-vue-devtools": "^7.7.0"
2424
}
2525
}

0 commit comments

Comments
 (0)