create-vue 3.2.3 → 3.3.2

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.
package/outfile.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.2.3 | MIT */
2
+ /*! create-vue v3.3.2 | MIT */
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2754,6 +2754,9 @@ var fs2 = __toESM(require("fs"), 1);
2754
2754
  var path2 = __toESM(require("path"), 1);
2755
2755
  function preOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
2756
2756
  for (const filename of fs2.readdirSync(dir)) {
2757
+ if (filename === ".git") {
2758
+ continue;
2759
+ }
2757
2760
  const fullpath = path2.resolve(dir, filename);
2758
2761
  if (fs2.lstatSync(fullpath).isDirectory()) {
2759
2762
  dirCallback(fullpath);
@@ -2767,6 +2770,9 @@ function preOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
2767
2770
  }
2768
2771
  function postOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
2769
2772
  for (const filename of fs2.readdirSync(dir)) {
2773
+ if (filename === ".git") {
2774
+ continue;
2775
+ }
2770
2776
  const fullpath = path2.resolve(dir, filename);
2771
2777
  if (fs2.lstatSync(fullpath).isDirectory()) {
2772
2778
  postOrderDirectoryTraverse(fullpath, dirCallback, fileCallback);
@@ -2887,13 +2893,13 @@ var path3 = __toESM(require("path"), 1);
2887
2893
 
2888
2894
  // template/eslint/package.json
2889
2895
  var devDependencies = {
2890
- "@rushstack/eslint-patch": "^1.1.0",
2896
+ "@rushstack/eslint-patch": "^1.1.4",
2891
2897
  "@vue/eslint-config-prettier": "^7.0.0",
2892
2898
  "@vue/eslint-config-typescript": "^11.0.0",
2893
- eslint: "^8.5.0",
2899
+ eslint: "^8.21.0",
2894
2900
  "eslint-plugin-cypress": "^2.12.1",
2895
- "eslint-plugin-vue": "^9.0.0",
2896
- prettier: "^2.5.1"
2901
+ "eslint-plugin-vue": "^9.3.0",
2902
+ prettier: "^2.7.1"
2897
2903
  };
2898
2904
 
2899
2905
  // utils/renderEslint.ts
@@ -2905,7 +2911,10 @@ addEslintDependency("eslint");
2905
2911
  addEslintDependency("eslint-plugin-vue");
2906
2912
  var config = {
2907
2913
  root: true,
2908
- extends: ["plugin:vue/vue3-essential"]
2914
+ extends: ["plugin:vue/vue3-essential"],
2915
+ parserOptions: {
2916
+ ecmaVersion: "latest"
2917
+ }
2909
2918
  };
2910
2919
  function configureEslint({ language, styleGuide, needsPrettier, needsCypress, needsCypressCT }) {
2911
2920
  switch (`${styleGuide}-${language}`) {
@@ -3230,7 +3239,7 @@ Scaffolding project in ${root}...`);
3230
3239
  const userAgent = process.env.npm_config_user_agent ?? "";
3231
3240
  const packageManager = /pnpm/.test(userAgent) ? "pnpm" : /yarn/.test(userAgent) ? "yarn" : "npm";
3232
3241
  fs4.writeFileSync(path4.resolve(root, "README.md"), generateReadme({
3233
- projectName: result.projectName ?? defaultProjectName,
3242
+ projectName: result.projectName ?? result.packageName ?? defaultProjectName,
3234
3243
  packageManager,
3235
3244
  needsTypeScript,
3236
3245
  needsVitest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.2.3",
3
+ "version": "3.3.2",
4
4
  "description": "An easy way to start a Vue project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "template"
12
12
  ],
13
13
  "engines": {
14
- "node": "^14.16.0 || >=16.0.0"
14
+ "node": "^14.18.0 || >=16.0.0"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "@types/eslint": "^8.4.5",
29
29
  "@types/prompts": "^2.0.14",
30
30
  "@vue/tsconfig": "^0.1.3",
31
- "esbuild": "^0.14.49",
31
+ "esbuild": "^0.14.53",
32
32
  "esbuild-plugin-license": "^1.2.2",
33
33
  "husky": "^8.0.1",
34
34
  "kolorist": "^1.5.1",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.9.14/node_modules/vite/bin/vite.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@3.0.1/node_modules/vite/bin/vite.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../node_modules/.pnpm/vite@2.9.14/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/vite@3.0.1/node_modules/vite/bin/vite.js" "$@"
17
17
  fi
@@ -8,7 +8,7 @@
8
8
  "vue": "^3.2.37"
9
9
  },
10
10
  "devDependencies": {
11
- "@vitejs/plugin-vue": "^2.3.3",
12
- "vite": "^2.9.14"
11
+ "@vitejs/plugin-vue": "^3.0.1",
12
+ "vite": "^3.0.4"
13
13
  }
14
14
  }
@@ -1,4 +1,4 @@
1
- import { fileURLToPath, URL } from 'url'
1
+ import { fileURLToPath, URL } from 'node:url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import vue from '@vitejs/plugin-vue'
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "scripts": {
3
- "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open --e2e'",
4
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'"
3
+ "test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'",
4
+ "test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'"
5
5
  },
6
6
  "devDependencies": {
7
- "cypress": "^10.3.0",
7
+ "cypress": "^10.4.0",
8
8
  "start-server-and-test": "^1.14.0"
9
9
  }
10
10
  }
@@ -28,6 +28,7 @@ import { mount } from 'cypress/vue'
28
28
  // your custom command.
29
29
  // Alternatively, can be defined in cypress/support/component.d.ts
30
30
  // with a <reference path="./component" /> at the top of your spec.
31
+ /* eslint-disable @typescript-eslint/no-namespace */
31
32
  declare global {
32
33
  namespace Cypress {
33
34
  interface Chainable {
@@ -7,6 +7,6 @@
7
7
  "vue": "^3.2.37"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^10.3.0"
10
+ "cypress": "^10.4.0"
11
11
  }
12
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/create-vue/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@3.0.1/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.0.1/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -1,5 +1,9 @@
1
1
  {
2
+ "dependencies": {
3
+ "vue": "^3.2.37"
4
+ },
2
5
  "devDependencies": {
3
- "@vitejs/plugin-vue-jsx": "^1.3.10"
6
+ "@vitejs/plugin-vue-jsx": "^2.0.0",
7
+ "vite": "^3.0.4"
4
8
  }
5
9
  }
@@ -1,4 +1,4 @@
1
- import { fileURLToPath, URL } from 'url'
1
+ import { fileURLToPath, URL } from 'node:url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import vue from '@vitejs/plugin-vue'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "pinia": "^2.0.14",
3
+ "pinia": "^2.0.17",
4
4
  "vue": "^3.2.37"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "vue": "^3.2.37",
4
- "vue-router": "^4.1.2"
4
+ "vue-router": "^4.1.3"
5
5
  }
6
6
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.4_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
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
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.38.4_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
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
17
  fi
@@ -5,9 +5,9 @@
5
5
  "type-check": "vue-tsc --noEmit"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^16.11.43",
8
+ "@types/node": "^16.11.47",
9
9
  "npm-run-all": "^4.1.5",
10
10
  "typescript": "~4.7.4",
11
- "vue-tsc": "^0.38.4"
11
+ "vue-tsc": "^0.39.5"
12
12
  }
13
13
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.0_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.0_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
17
17
  fi
@@ -8,6 +8,6 @@
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.0.2",
10
10
  "jsdom": "^20.0.0",
11
- "vitest": "^0.18.0"
11
+ "vitest": "^0.21.0"
12
12
  }
13
13
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@rushstack/eslint-patch": "^1.1.0",
3
+ "@rushstack/eslint-patch": "^1.1.4",
4
4
  "@vue/eslint-config-prettier": "^7.0.0",
5
5
  "@vue/eslint-config-typescript": "^11.0.0",
6
- "eslint": "^8.5.0",
6
+ "eslint": "^8.21.0",
7
7
  "eslint-plugin-cypress": "^2.12.1",
8
- "eslint-plugin-vue": "^9.0.0",
9
- "prettier": "^2.5.1"
8
+ "eslint-plugin-vue": "^9.3.0",
9
+ "prettier": "^2.7.1"
10
10
  }
11
11
  }
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "extends": "./tsconfig.app.json",
3
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "cypress/support/component.*"],
3
+ "include": [
4
+ "env.d.ts",
5
+ "src/**/*",
6
+ "src/**/*.vue",
7
+ "cypress/support/component.*",
8
+ "cypress/support/commands.ts"
9
+ ],
4
10
  "exclude": [],
5
11
  "compilerOptions": {
6
12
  "composite": true
@@ -3,6 +3,6 @@
3
3
  "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
4
4
  },
5
5
  "devDependencies": {
6
- "@types/jsdom": "^16.2.14"
6
+ "@types/jsdom": "^20.0.0"
7
7
  }
8
8
  }