Skip to content

Commit bda8696

Browse files
committed
version 3.15.0 snapshot
1 parent 7cf8d27 commit bda8696

File tree

14,385 files changed

+355902
-18131
lines changed

Some content is hidden

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

14,385 files changed

+355902
-18131
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
+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,6 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 100
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig",
6+
"esbenp.prettier-vscode"
7+
]
8+
}
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# bare-cypress-eslint-prettier
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+
```
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)
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')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import js from '@eslint/js'
2+
import pluginVue from 'eslint-plugin-vue'
3+
import globals from 'globals'
4+
import pluginCypress from 'eslint-plugin-cypress/flat'
5+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
6+
7+
export default [
8+
{
9+
name: 'app/files-to-lint',
10+
files: ['**/*.{js,mjs,jsx,vue}'],
11+
},
12+
13+
{
14+
name: 'app/files-to-ignore',
15+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
16+
},
17+
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
},
23+
},
24+
},
25+
26+
js.configs.recommended,
27+
...pluginVue.configs['flat/essential'],
28+
29+
{
30+
...pluginCypress.configs.recommended,
31+
files: [
32+
'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
33+
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
34+
'cypress/support/**/*.{js,ts,jsx,tsx}'
35+
],
36+
},
37+
skipFormatting,
38+
]
+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>
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+
}
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "bare-cypress-eslint-prettier",
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+
"prepare": "cypress install",
11+
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
12+
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
13+
"test:unit": "cypress run --component",
14+
"test:unit:dev": "cypress open --component",
15+
"lint": "eslint . --fix",
16+
"format": "prettier --write src/"
17+
},
18+
"dependencies": {
19+
"vue": "^3.5.13"
20+
},
21+
"devDependencies": {
22+
"@eslint/js": "^9.21.0",
23+
"@vitejs/plugin-vue": "^5.2.1",
24+
"@vue/eslint-config-prettier": "^10.2.0",
25+
"cypress": "^14.1.0",
26+
"eslint": "^9.21.0",
27+
"eslint-plugin-cypress": "^4.2.0",
28+
"eslint-plugin-vue": "~10.0.0",
29+
"globals": "^16.0.0",
30+
"prettier": "3.5.3",
31+
"start-server-and-test": "^2.0.10",
32+
"vite": "^6.2.1",
33+
"vite-plugin-vue-devtools": "^7.7.2"
34+
},
35+
"format": "prettier --write src/"
36+
}
4.19 KB
Binary file not shown.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup></script>
2+
3+
<template>
4+
<h1>You did it!</h1>
5+
</template>
6+
7+
<style scoped></style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import App from '../App.vue'
2+
3+
describe('App', () => {
4+
it('mounts and renders properly', () => {
5+
cy.mount(App)
6+
cy.get('h1').should('contain', 'You did it!')
7+
})
8+
})
+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')
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-eslint/.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
22
charset = utf-8
33
indent_size = 2
44
indent_style = space

0 commit comments

Comments
 (0)