first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
31
node_modules/@vue/tsconfig/README.md
generated
vendored
Normal file
31
node_modules/@vue/tsconfig/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# `@vue/tsconfig`
|
||||
|
||||
TSConfigs for Vue projects to extend.
|
||||
|
||||
Requires TypeScript >= 4.5.
|
||||
|
||||
Install:
|
||||
|
||||
```sh
|
||||
npm add -D @vue/tsconfig
|
||||
```
|
||||
|
||||
Add one of the available configurations to your `tsconfig.json`:
|
||||
|
||||
The base configuration (runtime-agnostic):
|
||||
|
||||
```json
|
||||
"extends": "@vue/tsconfig/tsconfig.json"
|
||||
```
|
||||
|
||||
Configuration for Browser environment:
|
||||
|
||||
```json
|
||||
"extends": "@vue/tsconfig/tsconfig.web.json"
|
||||
```
|
||||
|
||||
Configuration for Node environment:
|
||||
|
||||
```json
|
||||
"extends": "@vue/tsconfig/tsconfig.node.json"
|
||||
```
|
||||
35
node_modules/@vue/tsconfig/package.json
generated
vendored
Normal file
35
node_modules/@vue/tsconfig/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "@vue/tsconfig",
|
||||
"version": "0.1.3",
|
||||
"description": "A base TSConfig for working with Vue.js",
|
||||
"main": "tsconfig.json",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/tsconfig.git"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"tsconfig"
|
||||
],
|
||||
"author": "Haoqun Jiang <haoqunjiang+npm@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/tsconfig/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/tsconfig#readme",
|
||||
"peerDependencies": {
|
||||
"@types/node": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/node": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"readme": "# `@vue/tsconfig`\n\nTSConfigs for Vue projects to extend.\n\nRequires TypeScript >= 4.5.\n\nInstall:\n\n```sh\nnpm add -D @vue/tsconfig\n```\n\nAdd one of the available configurations to your `tsconfig.json`:\n\nThe base configuration (runtime-agnostic):\n\n```json\n\"extends\": \"@vue/tsconfig/tsconfig.json\"\n```\n\nConfiguration for Browser environment:\n\n```json\n\"extends\": \"@vue/tsconfig/tsconfig.web.json\"\n```\n\nConfiguration for Node environment:\n\n```json\n\"extends\": \"@vue/tsconfig/tsconfig.node.json\"\n```\n"
|
||||
}
|
||||
40
node_modules/@vue/tsconfig/tsconfig.json
generated
vendored
Normal file
40
node_modules/@vue/tsconfig/tsconfig.json
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
"resolveJsonModule": true,
|
||||
"useDefineForClassFields": true,
|
||||
|
||||
// Required in Vue projects
|
||||
"jsx": "preserve",
|
||||
|
||||
// `"noImplicitThis": true` is part of `strict`
|
||||
// Added again here in case some users decide to disable `strict`.
|
||||
// This enables stricter inference for data properties on `this`.
|
||||
"noImplicitThis": true,
|
||||
"strict": true,
|
||||
|
||||
// Required in Vite
|
||||
"isolatedModules": true,
|
||||
// For `<script setup>`
|
||||
// See <https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#preserve-value-imports>
|
||||
"preserveValueImports": true,
|
||||
// Enforce using `import type` instead of `import` for types
|
||||
"importsNotUsedAsValues": "error",
|
||||
|
||||
// A few notes:
|
||||
// - Vue 3 supports ES2016+
|
||||
// - For Vite, the actual compilation target is determined by the
|
||||
// `build.target` option in the Vite config.
|
||||
// So don't change the `target` field here. It has to be
|
||||
// at least `ES2020` for dynamic `import()`s and `import.meta` to work correctly.
|
||||
// - If you are not using Vite, feel free to override the `target` field.
|
||||
"target": "ESNext",
|
||||
|
||||
// Recommended
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
// See <https://github.com/vuejs/vue-cli/pull/5688>
|
||||
"skipLibCheck": true,
|
||||
}
|
||||
}
|
||||
17
node_modules/@vue/tsconfig/tsconfig.node.json
generated
vendored
Normal file
17
node_modules/@vue/tsconfig/tsconfig.node.json
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"lib": [],
|
||||
"types": ["node"]
|
||||
|
||||
// We don't override `module` to `CommonJS` here.
|
||||
// Whatever build tool you use, we recommend you to author and ship in ES modules.
|
||||
// The recommendation may change when `"module": "Node12" / "NodeNext"` is stable.
|
||||
|
||||
// If you are targeting CommonJS environment,
|
||||
// and use `tsc` or `ts-node` for transpilation,
|
||||
// you might need to manually override the following fields:
|
||||
// "module": "CommonJS",
|
||||
// "preserveValueImports": false,
|
||||
}
|
||||
}
|
||||
19
node_modules/@vue/tsconfig/tsconfig.web.json
generated
vendored
Normal file
19
node_modules/@vue/tsconfig/tsconfig.web.json
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
// Should target at least ES2016 in Vue 3
|
||||
// Support for newer versions of language built-ins are
|
||||
// left for the users to include, because that would require:
|
||||
// - either the project doesn't need to support older versions of browsers;
|
||||
// - or the project has properly included the necessary polyfills.
|
||||
"ES2016",
|
||||
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
|
||||
// No `ScriptHost` because Vue 3 dropped support for IE
|
||||
],
|
||||
"types": []
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue