create-vue 2.1.0-beta → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/outfile.cjs +454 -2896
  2. package/package.json +6 -3
  3. package/template/base/.vscode/extensions.json +1 -1
  4. package/template/base/node_modules/.bin/terser +17 -0
  5. package/template/base/node_modules/.bin/vite +17 -0
  6. package/template/base/package.json +6 -5
  7. package/template/{code/default → base}/src/assets/base.css +0 -0
  8. package/template/{code/default → base}/src/assets/logo.svg +0 -0
  9. package/template/base/src/assets/main.css +35 -0
  10. package/template/base/vite.config.js +1 -1
  11. package/template/code/default/src/App.vue +5 -39
  12. package/template/code/router/src/App.vue +6 -40
  13. package/template/code/typescript-default/src/App.vue +5 -39
  14. package/template/code/typescript-router/src/App.vue +6 -40
  15. package/template/{code/default/cypress/integration/example.spec.js → config/cypress/cypress/e2e/example.cy.js} +0 -0
  16. package/template/config/cypress/cypress/{jsconfig.json → e2e/jsconfig.json} +1 -1
  17. package/template/config/cypress/cypress/support/commands.ts +37 -0
  18. package/template/config/cypress/cypress/support/{index.js → e2e.js} +0 -0
  19. package/template/config/cypress/cypress.config.js +8 -0
  20. package/template/config/cypress/cypress.config.ts +8 -0
  21. package/template/config/cypress/node_modules/.bin/cypress +17 -0
  22. package/template/config/cypress/node_modules/.bin/server-test +17 -0
  23. package/template/config/cypress/node_modules/.bin/start-server-and-test +17 -0
  24. package/template/config/cypress/node_modules/.bin/start-test +17 -0
  25. package/template/config/cypress/package.json +4 -9
  26. package/template/config/cypress-ct/cypress/support/component-index.html +12 -0
  27. package/template/config/cypress-ct/cypress/support/component.js +30 -0
  28. package/template/config/cypress-ct/cypress/support/component.ts +42 -0
  29. package/template/config/cypress-ct/cypress.config.js +15 -0
  30. package/template/config/cypress-ct/cypress.config.ts +15 -0
  31. package/template/config/cypress-ct/node_modules/.bin/cypress +17 -0
  32. package/template/config/cypress-ct/package.json +12 -0
  33. package/template/{code/typescript-default/src/components/__tests__/HelloWorld.spec.ts → config/cypress-ct/src/components/__tests__/HelloWorld.cy.js} +2 -3
  34. package/template/config/jsx/node_modules/.bin/vite +17 -0
  35. package/template/config/jsx/package.json +9 -0
  36. package/template/config/jsx/vite.config.js +23 -0
  37. package/template/config/pinia/package.json +2 -1
  38. package/template/config/router/package.json +1 -1
  39. package/template/config/typescript/node_modules/.bin/npm-run-all +17 -0
  40. package/template/config/typescript/node_modules/.bin/run-p +17 -0
  41. package/template/config/typescript/node_modules/.bin/run-s +17 -0
  42. package/template/config/typescript/node_modules/.bin/tsc +17 -0
  43. package/template/config/typescript/node_modules/.bin/tsserver +17 -0
  44. package/template/config/typescript/node_modules/.bin/vue-tsc +17 -0
  45. package/template/config/typescript/package.json +7 -5
  46. package/template/config/vitest/node_modules/.bin/vitest +17 -0
  47. package/template/config/vitest/package.json +14 -0
  48. package/template/config/vitest/src/components/__tests__/HelloWorld.spec.js +11 -0
  49. package/template/entry/default/src/main.js +2 -0
  50. package/template/entry/pinia/src/main.js +2 -0
  51. package/template/entry/router/src/main.js +2 -0
  52. package/template/entry/router-and-pinia/src/main.js +2 -0
  53. package/template/eslint/package.json +11 -0
  54. package/template/tsconfig/base/package.json +5 -0
  55. package/template/tsconfig/base/tsconfig.config.json +8 -0
  56. package/template/tsconfig/base/tsconfig.json +16 -0
  57. package/template/tsconfig/cypress/cypress/e2e/tsconfig.json +10 -0
  58. package/template/tsconfig/cypress-ct/tsconfig.app.json +12 -0
  59. package/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +8 -0
  60. package/template/tsconfig/cypress-ct/tsconfig.json +14 -0
  61. package/template/tsconfig/vitest/package.json +8 -0
  62. package/template/tsconfig/vitest/tsconfig.app.json +12 -0
  63. package/template/tsconfig/vitest/tsconfig.json +14 -0
  64. package/template/tsconfig/vitest/tsconfig.vitest.json +9 -0
  65. package/template/code/default/src/components/__tests__/HelloWorld.spec.js +0 -13
  66. package/template/code/router/cypress/integration/example.spec.js +0 -13
  67. package/template/code/router/src/assets/base.css +0 -74
  68. package/template/code/router/src/assets/logo.svg +0 -1
  69. package/template/code/router/src/components/__tests__/HelloWorld.spec.js +0 -13
  70. package/template/code/typescript-default/cypress/integration/example.spec.ts +0 -8
  71. package/template/code/typescript-default/src/assets/base.css +0 -74
  72. package/template/code/typescript-default/src/assets/logo.svg +0 -1
  73. package/template/code/typescript-router/cypress/integration/example.spec.ts +0 -13
  74. package/template/code/typescript-router/src/assets/base.css +0 -74
  75. package/template/code/typescript-router/src/assets/logo.svg +0 -1
  76. package/template/code/typescript-router/src/components/__tests__/HelloWorld.spec.ts +0 -13
  77. package/template/config/cypress/cypress/plugins/index.js +0 -28
  78. package/template/config/cypress/cypress.json +0 -7
  79. package/template/config/typescript/tsconfig.json +0 -24
@@ -0,0 +1,42 @@
1
+ // ***********************************************************
2
+ // This example support/component.ts 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/vue2'
26
+
27
+ // Augment the Cypress namespace to include type definitions for
28
+ // your custom command.
29
+ // Alternatively, can be defined in cypress/support/component.d.ts
30
+ // with a <reference path="./component" /> at the top of your spec.
31
+ declare global {
32
+ namespace Cypress {
33
+ interface Chainable {
34
+ mount: typeof mount
35
+ }
36
+ }
37
+ }
38
+
39
+ Cypress.Commands.add('mount', mount)
40
+
41
+ // Example use:
42
+ // cy.mount(MyComponent)
@@ -0,0 +1,15 @@
1
+ const { defineConfig } = require('cypress')
2
+
3
+ module.exports = 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
+ })
@@ -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
+ })
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.3.0/node_modules/cypress/bin/cypress" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.3.0/node_modules/cypress/bin/cypress" "$@"
17
+ fi
@@ -0,0 +1,12 @@
1
+ {
2
+ "scripts": {
3
+ "test:unit": "cypress open --component",
4
+ "test:unit:ci": "cypress run --component --quiet --reporter spec"
5
+ },
6
+ "dependencies": {
7
+ "vue": "^2.7.7"
8
+ },
9
+ "devDependencies": {
10
+ "cypress": "^10.3.0"
11
+ }
12
+ }
@@ -1,13 +1,12 @@
1
- import { mount } from '@cypress/vue'
2
1
  import HelloWorld from '../HelloWorld.vue'
3
2
 
4
3
  describe('HelloWorld', () => {
5
4
  it('playground', () => {
6
- mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
5
+ cy.mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
7
6
  })
8
7
 
9
8
  it('renders properly', () => {
10
- mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
9
+ cy.mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
11
10
  cy.get('h1').should('contain', 'Hello Cypress')
12
11
  })
13
12
  })
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@3.0.2/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.0.2/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -0,0 +1,9 @@
1
+ {
2
+ "dependencies": {
3
+ "vue": "^2.7.7"
4
+ },
5
+ "devDependencies": {
6
+ "@vitejs/plugin-vue2-jsx": "^1.0.2",
7
+ "vite": "^3.0.2"
8
+ }
9
+ }
@@ -0,0 +1,23 @@
1
+ import { fileURLToPath, URL } from 'node:url'
2
+
3
+ import { defineConfig } from 'vite'
4
+ import legacy from '@vitejs/plugin-legacy'
5
+ import vue2 from '@vitejs/plugin-vue2'
6
+ import vue2Jsx from '@vitejs/plugin-vue2-jsx'
7
+
8
+ // https://vitejs.dev/config/
9
+ export default defineConfig({
10
+ plugins: [
11
+ vue2(),
12
+ vue2Jsx(),
13
+ legacy({
14
+ targets: ['ie >= 11'],
15
+ additionalLegacyPolyfills: ['regenerator-runtime/runtime']
16
+ })
17
+ ],
18
+ resolve: {
19
+ alias: {
20
+ '@': fileURLToPath(new URL('./src', import.meta.url))
21
+ }
22
+ }
23
+ })
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "pinia": "^2.0.11"
3
+ "pinia": "^2.0.16",
4
+ "vue": "^2.7.7"
4
5
  }
5
6
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue-router": "^3.5.3"
3
+ "vue-router": "^3.5.4"
4
4
  }
5
5
  }
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/npm-run-all/index.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/npm-run-all/index.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/run-p/index.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/run-p/index.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/run-s/index.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/npm-run-all@4.1.5/node_modules/npm-run-all/bin/run-s/index.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/bin/tsserver" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.8_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.8_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
17
+ fi
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "scripts": {
3
- "build": "vue-tsc --noEmit && vite build",
4
- "typecheck": "vue-tsc --noEmit"
3
+ "build": "run-p type-check build-only",
4
+ "build-only": "vite build",
5
+ "type-check": "vue-tsc --noEmit"
5
6
  },
6
7
  "devDependencies": {
7
- "@types/node": "^16.11.25",
8
- "typescript": "~4.7.3",
9
- "vue-tsc": "^0.38.2"
8
+ "@types/node": "^16.11.45",
9
+ "npm-run-all": "^4.1.5",
10
+ "typescript": "~4.7.4",
11
+ "vue-tsc": "^0.38.8"
10
12
  }
11
13
  }
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
17
+ fi
@@ -0,0 +1,14 @@
1
+ {
2
+ "scripts": {
3
+ "test:unit": "vitest --environment jsdom"
4
+ },
5
+ "dependencies": {
6
+ "vue": "^2.7.7"
7
+ },
8
+ "devDependencies": {
9
+ "@vue/test-utils": "^1.3.0",
10
+ "jsdom": "^20.0.0",
11
+ "vitest": "^0.18.1",
12
+ "vue-template-compiler": "^2.7.7"
13
+ }
14
+ }
@@ -0,0 +1,11 @@
1
+ import { describe, it, expect } from 'vitest'
2
+
3
+ import { mount } from '@vue/test-utils'
4
+ import HelloWorld from '../HelloWorld.vue'
5
+
6
+ describe('HelloWorld', () => {
7
+ it('renders properly', () => {
8
+ const wrapper = mount(HelloWorld, { propsData: { msg: 'Hello Vitest' } })
9
+ expect(wrapper.text()).toContain('Hello Vitest')
10
+ })
11
+ })
@@ -1,6 +1,8 @@
1
1
  import Vue from 'vue'
2
2
  import App from './App.vue'
3
3
 
4
+ import './assets/main.css'
5
+
4
6
  new Vue({
5
7
  render: (h) => h(App)
6
8
  }).$mount('#app')
@@ -3,6 +3,8 @@ import { createPinia, PiniaVuePlugin } from 'pinia'
3
3
 
4
4
  import App from './App.vue'
5
5
 
6
+ import './assets/main.css'
7
+
6
8
  Vue.use(PiniaVuePlugin)
7
9
 
8
10
  new Vue({
@@ -3,6 +3,8 @@ import Vue from 'vue'
3
3
  import App from './App.vue'
4
4
  import router from './router'
5
5
 
6
+ import './assets/main.css'
7
+
6
8
  new Vue({
7
9
  router,
8
10
  render: (h) => h(App)
@@ -4,6 +4,8 @@ import { createPinia, PiniaVuePlugin } from 'pinia'
4
4
  import App from './App.vue'
5
5
  import router from './router'
6
6
 
7
+ import './assets/main.css'
8
+
7
9
  Vue.use(PiniaVuePlugin)
8
10
 
9
11
  new Vue({
@@ -0,0 +1,11 @@
1
+ {
2
+ "devDependencies": {
3
+ "@rushstack/eslint-patch": "^1.1.0",
4
+ "@vue/eslint-config-prettier": "^7.0.0",
5
+ "@vue/eslint-config-typescript": "^11.0.0",
6
+ "eslint": "^8.5.0",
7
+ "eslint-plugin-cypress": "^2.12.1",
8
+ "eslint-plugin-vue": "^9.0.0",
9
+ "prettier": "^2.5.1"
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "@vue/tsconfig": "^0.1.3"
4
+ }
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.node.json",
3
+ "include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
4
+ "compilerOptions": {
5
+ "composite": true,
6
+ "types": ["node"]
7
+ }
8
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.web.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
+ "compilerOptions": {
5
+ "baseUrl": ".",
6
+ "paths": {
7
+ "@/*": ["./src/*"]
8
+ }
9
+ },
10
+
11
+ "references": [
12
+ {
13
+ "path": "./tsconfig.config.json"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.web.json",
3
+ "include": ["./**/*", "../support/**/*"],
4
+ "compilerOptions": {
5
+ "isolatedModules": false,
6
+ "target": "es5",
7
+ "lib": ["es5", "dom"],
8
+ "types": ["cypress"]
9
+ }
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.web.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
+ "exclude": ["src/**/__tests__/*"],
5
+ "compilerOptions": {
6
+ "composite": true,
7
+ "baseUrl": ".",
8
+ "paths": {
9
+ "@/*": ["./src/*"]
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.app.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "cypress/support/component.*"],
4
+ "exclude": [],
5
+ "compilerOptions": {
6
+ "composite": true
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.config.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.app.json"
9
+ },
10
+ {
11
+ "path": "./tsconfig.cypress-ct.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "scripts": {
3
+ "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
4
+ },
5
+ "devDependencies": {
6
+ "@types/jsdom": "^16.2.14"
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.web.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
+ "exclude": ["src/**/__tests__/*"],
5
+ "compilerOptions": {
6
+ "composite": true,
7
+ "baseUrl": ".",
8
+ "paths": {
9
+ "@/*": ["./src/*"]
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.config.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.app.json"
9
+ },
10
+ {
11
+ "path": "./tsconfig.vitest.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.app.json",
3
+ "exclude": [],
4
+ "compilerOptions": {
5
+ "composite": true,
6
+ "lib": [],
7
+ "types": ["node", "jsdom"]
8
+ }
9
+ }
@@ -1,13 +0,0 @@
1
- import { mount } from '@cypress/vue'
2
- import HelloWorld from '../HelloWorld.vue'
3
-
4
- describe('HelloWorld', () => {
5
- it('playground', () => {
6
- mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
7
- })
8
-
9
- it('renders properly', () => {
10
- mount(HelloWorld, { propsData: { msg: 'Hello Cypress' } })
11
- cy.get('h1').should('contain', 'Hello Cypress')
12
- })
13
- })
@@ -1,13 +0,0 @@
1
- // https://docs.cypress.io/api/introduction/api.html
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
-
9
- it('navigates to the about page', () => {
10
- cy.visit('/about')
11
- cy.contains('h1', 'This is an about page')
12
- })
13
- })