Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita100920

Browse files
committed
version 3.13.0 snapshot
1 parent7dd69dd commita100920

File tree

2,709 files changed

+52124
-4773
lines changed

Some content is hidden

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

2,709 files changed

+52124
-4773
lines changed

‎bare-cypress/.gitignore

Lines changed: 30 additions & 0 deletions
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

‎bare-cypress/.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

‎bare-cypress/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#bare-cypress
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+
```

‎bare-cypress/cypress.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import{defineConfig}from'cypress'
2+
3+
exportdefaultdefineConfig({
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+
})
Lines changed: 8 additions & 0 deletions
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+
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"target":"es5",
4+
"lib": ["es5","dom"],
5+
"types": ["cypress"]
6+
},
7+
"include": ["./**/*","../support/**/*"]
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name":"Using fixtures to represent data",
3+
"email":"hello@cypress.io",
4+
"body":"Fixtures are a great way to mock data for responses to routes"
5+
}
Lines changed: 25 additions & 0 deletions
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) => { ... })
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<metacharset="utf-8">
5+
<metahttp-equiv="X-UA-Compatible"content="IE=edge">
6+
<metaname="viewport"content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<divdata-cy-root></div>
11+
</body>
12+
</html>
Lines changed: 30 additions & 0 deletions
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)

‎bare-cypress/cypress/support/e2e.js

Lines changed: 20 additions & 0 deletions
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/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<htmllang="">
3+
<head>
4+
<metacharset="UTF-8">
5+
<linkrel="icon"href="/favicon.ico">
6+
<metaname="viewport"content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<divid="app"></div>
11+
<scripttype="module"src="/src/main.js"></script>
12+
</body>
13+
</html>

‎bare-cypress/jsconfig.json

Lines changed: 8 additions & 0 deletions
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/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name":"bare-cypress",
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+
},
15+
"dependencies": {
16+
"vue":"^3.5.13"
17+
},
18+
"devDependencies": {
19+
"@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"
24+
}
25+
}

‎bare-cypress/public/favicon.ico

4.19 KB
Binary file not shown.

‎bare-cypress/src/App.vue

Lines changed: 7 additions & 0 deletions
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/src/__tests__/App.cy.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
importAppfrom'../App.vue'
2+
3+
describe('App',()=>{
4+
it('mounts and renders properly',()=>{
5+
cy.mount(App)
6+
cy.get('h1').should('contain','Hello World')
7+
})
8+
})

‎bare-cypress/src/main.js

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

‎bare-cypress/vite.config.js

Lines changed: 18 additions & 0 deletions
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+
importvuefrom'@vitejs/plugin-vue'
5+
importvueDevToolsfrom'vite-plugin-vue-devtools'
6+
7+
// https://vite.dev/config/
8+
exportdefaultdefineConfig({
9+
plugins:[
10+
vue(),
11+
vueDevTools(),
12+
],
13+
resolve:{
14+
alias:{
15+
'@':fileURLToPath(newURL('./src',import.meta.url))
16+
},
17+
},
18+
})

‎bare-default/.gitignore

Lines changed: 30 additions & 0 deletions
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

‎bare-default/.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

‎bare-default/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#bare-default
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+
```

‎bare-default/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<htmllang="">
3+
<head>
4+
<metacharset="UTF-8">
5+
<linkrel="icon"href="/favicon.ico">
6+
<metaname="viewport"content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<divid="app"></div>
11+
<scripttype="module"src="/src/main.js"></script>
12+
</body>
13+
</html>

‎bare-default/jsconfig.json

Lines changed: 8 additions & 0 deletions
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+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp