create-vue 3.0.6 → 3.0.7
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
|
@@ -5451,7 +5451,20 @@ function getCommand(packageManager, scriptName) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
|
|
5453
5453
|
// utils/generateReadme.js
|
|
5454
|
-
var sfcTypeSupportDoc =
|
|
5454
|
+
var sfcTypeSupportDoc = [
|
|
5455
|
+
"",
|
|
5456
|
+
"## Type Support for `.vue` Imports in TS",
|
|
5457
|
+
"",
|
|
5458
|
+
"TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.",
|
|
5459
|
+
"",
|
|
5460
|
+
"If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471) that is more performant. You can enable it by the following steps:",
|
|
5461
|
+
"",
|
|
5462
|
+
"1. Disable the built-in TypeScript Extension",
|
|
5463
|
+
" 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette",
|
|
5464
|
+
" 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`",
|
|
5465
|
+
"2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.",
|
|
5466
|
+
""
|
|
5467
|
+
].join("\n");
|
|
5455
5468
|
function generateReadme({
|
|
5456
5469
|
projectName,
|
|
5457
5470
|
packageManager,
|
|
@@ -5465,7 +5478,7 @@ This template should help get you started developing with Vue 3 in Vite.
|
|
|
5465
5478
|
|
|
5466
5479
|
## Recommended IDE Setup
|
|
5467
5480
|
|
|
5468
|
-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur).
|
|
5481
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).
|
|
5469
5482
|
${needsTypeScript ? sfcTypeSupportDoc : ""}
|
|
5470
5483
|
## Customize configuration
|
|
5471
5484
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "An easy way to start a Vue project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": "^14.13.1 || >=16.0.0"
|
|
15
15
|
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepare": "husky install",
|
|
18
|
+
"format": "prettier --write .",
|
|
19
|
+
"build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs",
|
|
20
|
+
"snapshot": "node snapshot.js",
|
|
21
|
+
"pretest": "run-s build snapshot",
|
|
22
|
+
"test": "node test.js",
|
|
23
|
+
"prepublishOnly": "zx ./scripts/prepublish.mjs"
|
|
24
|
+
},
|
|
16
25
|
"repository": {
|
|
17
26
|
"type": "git",
|
|
18
27
|
"url": "git+https://github.com/vuejs/create-vue.git"
|
|
@@ -39,13 +48,5 @@
|
|
|
39
48
|
"*.{js,ts,vue,json}": [
|
|
40
49
|
"prettier --write"
|
|
41
50
|
]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
"format": "prettier --write .",
|
|
45
|
-
"build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs",
|
|
46
|
-
"snapshot": "node snapshot.js",
|
|
47
|
-
"pretest": "run-s build snapshot",
|
|
48
|
-
"test": "node test.js"
|
|
49
|
-
},
|
|
50
|
-
"readme": "# create-vue\n\n[](https://open.vscode.dev/vuejs/create-vue)\n\nAn easy way to start a Vue project\n\n## Usage\n\n```sh\nnpm init vue@3\n```\n\nOr, if you need to support IE11, you can create a Vue 2 project with:\n\n```sh\nnpm init vue@2\n```\n"
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules:/Users/haoqun/Developer/vuejs/node_modules:/Users/haoqun/Developer/node_modules:/Users/haoqun/node_modules:/Users/node_modules:/node_modules:/Users/haoqun/Developer/vuejs/create-vue/template/base/node_modules:/Users/haoqun/Developer/vuejs/create-vue/template/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@2.7.10/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules:/Users/haoqun/Developer/vuejs/node_modules:/Users/haoqun/Developer/node_modules:/Users/haoqun/node_modules:/Users/node_modules:/node_modules:/Users/haoqun/Developer/vuejs/create-vue/template/base/node_modules:/Users/haoqun/Developer/vuejs/create-vue/template/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.7.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.7.10/node_modules/vite/bin/vite.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/vite@2.7.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/vite@2.7.10/node_modules/vite/bin/vite.js" "$@"
|
|
17
17
|
fi
|