create-vue 3.8.0 → 3.9.1

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 (72) hide show
  1. package/locales/en-US.json +3 -1
  2. package/locales/fr-FR.json +3 -1
  3. package/locales/tr-TR.json +64 -0
  4. package/locales/zh-CN.json +3 -1
  5. package/outfile.cjs +39 -15
  6. package/package.json +10 -8
  7. package/template/base/_gitignore +2 -0
  8. package/template/base/jsconfig.json +8 -0
  9. package/template/base/node_modules/.bin/vite +2 -2
  10. package/template/base/package.json +4 -3
  11. package/template/base/src/assets/main.css +1 -1
  12. package/template/config/cypress/cypress.config.js +2 -2
  13. package/template/config/cypress/node_modules/.bin/cypress +2 -2
  14. package/template/config/cypress/node_modules/.bin/server-test +2 -2
  15. package/template/config/cypress/node_modules/.bin/start-server-and-test +2 -2
  16. package/template/config/cypress/node_modules/.bin/start-test +2 -2
  17. package/template/config/cypress/package.json +2 -2
  18. package/template/config/cypress-ct/cypress.config.js +2 -2
  19. package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
  20. package/template/config/cypress-ct/package.json +2 -2
  21. package/template/config/jsx/node_modules/.bin/browserslist +4 -4
  22. package/template/config/jsx/node_modules/.bin/vite +2 -2
  23. package/template/config/jsx/package.json +3 -3
  24. package/template/config/nightwatch/nightwatch/nightwatch.d.ts +4 -2
  25. package/template/config/nightwatch/{nightwatch.conf.js → nightwatch.conf.cjs} +5 -4
  26. package/template/config/nightwatch/node_modules/.bin/browserslist +4 -4
  27. package/template/config/nightwatch/node_modules/.bin/chromedriver +2 -2
  28. package/template/config/nightwatch/node_modules/.bin/geckodriver +2 -2
  29. package/template/config/nightwatch/node_modules/.bin/nightwatch +2 -2
  30. package/template/config/nightwatch/node_modules/.bin/ts-node +2 -2
  31. package/template/config/nightwatch/node_modules/.bin/ts-node-cwd +2 -2
  32. package/template/config/nightwatch/node_modules/.bin/ts-node-esm +2 -2
  33. package/template/config/nightwatch/node_modules/.bin/ts-node-script +2 -2
  34. package/template/config/nightwatch/node_modules/.bin/ts-node-transpile-only +2 -2
  35. package/template/config/nightwatch/node_modules/.bin/ts-script +2 -2
  36. package/template/config/nightwatch/node_modules/.bin/vite +4 -4
  37. package/template/config/nightwatch/package.json +9 -9
  38. package/template/config/nightwatch/tests/e2e/example.js +1 -4
  39. package/template/config/nightwatch-ct/package.json +5 -2
  40. package/template/config/pinia/package.json +1 -1
  41. package/template/config/playwright/e2e/vue.spec.js +1 -1
  42. package/template/config/playwright/node_modules/.bin/playwright +2 -2
  43. package/template/config/playwright/package.json +1 -1
  44. package/template/config/playwright/playwright.config.js +5 -8
  45. package/template/config/router/package.json +1 -1
  46. package/template/config/typescript/node_modules/.bin/tsc +2 -2
  47. package/template/config/typescript/node_modules/.bin/tsserver +2 -2
  48. package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
  49. package/template/config/typescript/package.json +4 -4
  50. package/template/config/vitest/node_modules/.bin/vitest +2 -2
  51. package/template/config/vitest/package.json +4 -4
  52. package/template/tsconfig/base/package.json +1 -1
  53. package/template/tsconfig/base/tsconfig.app.json +1 -0
  54. package/template/tsconfig/base/tsconfig.node.json +1 -0
  55. package/template/tsconfig/nightwatch/nightwatch/tsconfig.json +3 -1
  56. package/template/tsconfig/nightwatch-ct/tsconfig.app.json +1 -0
  57. package/template/tsconfig/vitest/package.json +1 -4
  58. package/template/config/cypress/cypress.config.ts +0 -8
  59. package/template/config/cypress-ct/cypress.config.ts +0 -15
  60. package/template/config/nightwatch/nightwatch/custom-assertions/elementHasCount.js +0 -45
  61. package/template/config/nightwatch/nightwatch/custom-assertions/elementHasCount.ts +0 -43
  62. package/template/config/nightwatch/nightwatch/custom-commands/strictClick.js +0 -19
  63. package/template/config/nightwatch/nightwatch/custom-commands/strictClick.ts +0 -18
  64. package/template/config/nightwatch/nightwatch/globals.js +0 -23
  65. package/template/config/nightwatch/node_modules/.bin/wait-on +0 -17
  66. package/template/config/playwright/playwright.config.ts +0 -112
  67. package/template/tsconfig/base/tsconfig.json +0 -11
  68. package/template/tsconfig/cypress-ct/package.json +0 -5
  69. package/template/tsconfig/cypress-ct/tsconfig.json +0 -14
  70. package/template/tsconfig/nightwatch/tsconfig.json +0 -17
  71. package/template/tsconfig/nightwatch-ct/tsconfig.json +0 -14
  72. package/template/tsconfig/vitest/tsconfig.json +0 -14
@@ -1,43 +0,0 @@
1
- /**
2
- * A custom Nightwatch assertion. The assertion name is the filename.
3
- *
4
- * Example usage:
5
- * browser.assert.elementHasCount(selector, count)
6
- *
7
- * For more information on custom assertions see:
8
- * https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html
9
- *
10
- */
11
-
12
- exports.assertion = function elementHasCount(selector: string, count: number) {
13
- // Message to be displayed on the console while running this assertion.
14
- this.message = `Testing if element <${selector}> has count: ${count}`
15
-
16
- // Expected value of the assertion, to be displayed in case of failure.
17
- this.expected = count
18
-
19
- // Given the result value (from `this.value` below), this function will
20
- // evaluate if the assertion has passed.
21
- this.evaluate = function (value: any) {
22
- return value === count
23
- }
24
-
25
- // Retrieve the value from the result object we got after running the
26
- // assertion command (defined below), which is to be evaluated against
27
- // the value passed into the assertion as the second argument.
28
- this.value = function (result: Record<string, any>) {
29
- return result.value
30
- }
31
-
32
- // Script to be executed in the browser to find the actual element count.
33
- function elementCountScript(_selector: string) {
34
- // eslint-disable-next-line
35
- return document.querySelectorAll(_selector).length
36
- }
37
-
38
- // The command to be executed by the assertion runner, to find the actual
39
- // result. Nightwatch API is available as `this.api`.
40
- this.command = function (callback: () => void) {
41
- this.api.execute(elementCountScript, [selector], callback)
42
- }
43
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * A non-class-based custom-command in Nightwatch. The command name is the filename.
3
- *
4
- * Usage:
5
- * browser.strictClick(selector)
6
- *
7
- * This command is not used yet used in any of the examples.
8
- *
9
- * For more information on working with custom-commands see:
10
- * https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
11
- *
12
- * @param {string} selector
13
- */
14
-
15
- module.exports = {
16
- command: function (selector) {
17
- return this.waitForElementVisible(selector).click(selector)
18
- }
19
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * A non-class-based custom-command in Nightwatch. The command name is the filename.
3
- *
4
- * Usage:
5
- * browser.strictClick(selector)
6
- *
7
- * This command is not used yet used in any of the examples.
8
- *
9
- * For more information on working with custom-commands see:
10
- * https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
11
- *
12
- */
13
-
14
- module.exports = {
15
- command: function (selector: string) {
16
- return this.waitForElementVisible(selector).click(selector)
17
- }
18
- }
@@ -1,23 +0,0 @@
1
- const waitOn = require('wait-on')
2
- const { setup, teardown } = require('@nightwatch/vue')
3
-
4
- const serverPort = process.env.CI ? '4173' : '5173'
5
-
6
- module.exports = {
7
- before(done) {
8
- setup()
9
- waitOn({
10
- resources: [`http-get://localhost:${serverPort}`],
11
- verbose: true,
12
- headers: {
13
- accept: 'text/html'
14
- }
15
- }).then(() => {
16
- done()
17
- })
18
- },
19
-
20
- after() {
21
- teardown()
22
- }
23
- }
@@ -1,17 +0,0 @@
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/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../wait-on/bin/wait-on" "$@"
15
- else
16
- exec node "$basedir/../wait-on/bin/wait-on" "$@"
17
- fi
@@ -1,112 +0,0 @@
1
- import type { PlaywrightTestConfig } from '@playwright/test'
2
- import { devices } from '@playwright/test'
3
-
4
- /**
5
- * Read environment variables from file.
6
- * https://github.com/motdotla/dotenv
7
- */
8
- // require('dotenv').config();
9
-
10
- /**
11
- * See https://playwright.dev/docs/test-configuration.
12
- */
13
- const config: PlaywrightTestConfig = {
14
- testDir: './e2e',
15
- /* Maximum time one test can run for. */
16
- timeout: 30 * 1000,
17
- expect: {
18
- /**
19
- * Maximum time expect() should wait for the condition to be met.
20
- * For example in `await expect(locator).toHaveText();`
21
- */
22
- timeout: 5000
23
- },
24
- /* Fail the build on CI if you accidentally left test.only in the source code. */
25
- forbidOnly: !!process.env.CI,
26
- /* Retry on CI only */
27
- retries: process.env.CI ? 2 : 0,
28
- /* Opt out of parallel tests on CI. */
29
- workers: process.env.CI ? 1 : undefined,
30
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
31
- reporter: 'html',
32
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
33
- use: {
34
- /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
35
- actionTimeout: 0,
36
- /* Base URL to use in actions like `await page.goto('/')`. */
37
- baseURL: 'http://localhost:5173',
38
-
39
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
40
- trace: 'on-first-retry',
41
-
42
- /* Only on CI systems run the tests headless */
43
- headless: !!process.env.CI
44
- },
45
-
46
- /* Configure projects for major browsers */
47
- projects: [
48
- {
49
- name: 'chromium',
50
- use: {
51
- ...devices['Desktop Chrome']
52
- }
53
- },
54
- {
55
- name: 'firefox',
56
- use: {
57
- ...devices['Desktop Firefox']
58
- }
59
- },
60
- {
61
- name: 'webkit',
62
- use: {
63
- ...devices['Desktop Safari']
64
- }
65
- }
66
-
67
- /* Test against mobile viewports. */
68
- // {
69
- // name: 'Mobile Chrome',
70
- // use: {
71
- // ...devices['Pixel 5'],
72
- // },
73
- // },
74
- // {
75
- // name: 'Mobile Safari',
76
- // use: {
77
- // ...devices['iPhone 12'],
78
- // },
79
- // },
80
-
81
- /* Test against branded browsers. */
82
- // {
83
- // name: 'Microsoft Edge',
84
- // use: {
85
- // channel: 'msedge',
86
- // },
87
- // },
88
- // {
89
- // name: 'Google Chrome',
90
- // use: {
91
- // channel: 'chrome',
92
- // },
93
- // },
94
- ],
95
-
96
- /* Folder for test artifacts such as screenshots, videos, traces, etc. */
97
- // outputDir: 'test-results/',
98
-
99
- /* Run your local dev server before starting the tests */
100
- webServer: {
101
- /**
102
- * Use the dev server by default for faster feedback loop.
103
- * Use the preview server on CI for more realistic testing.
104
- Playwright will re-use the local server if there is already a dev-server running.
105
- */
106
- command: process.env.CI ? 'vite preview --port 5173' : 'vite dev',
107
- port: 5173,
108
- reuseExistingServer: !process.env.CI
109
- }
110
- }
111
-
112
- export default config
@@ -1,11 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- }
10
- ]
11
- }
@@ -1,5 +0,0 @@
1
- {
2
- "scripts": {
3
- "type-check": "vue-tsc --noEmit -p tsconfig.cypress-ct.json --composite false"
4
- }
5
- }
@@ -1,14 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- },
10
- {
11
- "path": "./tsconfig.cypress-ct.json"
12
- }
13
- ]
14
- }
@@ -1,17 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- },
10
- {
11
- "path": "./tsconfig.vitest.json"
12
- },
13
- {
14
- "path": "./nightwatch/tsconfig.json"
15
- }
16
- ]
17
- }
@@ -1,14 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- },
10
- {
11
- "path": "./nightwatch/tsconfig.json"
12
- }
13
- ]
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- },
10
- {
11
- "path": "./tsconfig.vitest.json"
12
- }
13
- ]
14
- }