first commit
This commit is contained in:
21
web-app/node_modules/vue-tsc/LICENSE
generated
vendored
Normal file
21
web-app/node_modules/vue-tsc/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021-present Johnson Chu
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
36
web-app/node_modules/vue-tsc/README.md
generated
vendored
Normal file
36
web-app/node_modules/vue-tsc/README.md
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# vue-tsc
|
||||
|
||||
Install: `npm i vue-tsc -D`
|
||||
|
||||
Usage: `vue-tsc --noEmit && vite build`
|
||||
|
||||
Vue 3 command line Type-Checking tool base on IDE plugin [Volar](https://github.com/vuejs/language-tools).
|
||||
|
||||
Roadmap:
|
||||
|
||||
- [x] Type-Checking with `--noEmit`
|
||||
- [x] Use released LSP module
|
||||
- [x] Make `typescript` as peerDependencies
|
||||
- [x] Cleaner dependencies (remove `prettyhtml`, `prettier` etc.) (with `vscode-vue-languageservice` version >= 0.26.4)
|
||||
- [x] dts emit support
|
||||
- [x] Watch mode support
|
||||
|
||||
## Usage
|
||||
|
||||
Type check:
|
||||
|
||||
`vue-tsc --noEmit`
|
||||
|
||||
Build dts:
|
||||
|
||||
`vue-tsc --declaration --emitDeclarationOnly`
|
||||
|
||||
Check out https://github.com/vuejs/language-tools/discussions/640#discussioncomment-1555479 for example repo.
|
||||
|
||||
## Sponsors
|
||||
|
||||
<p align="center">
|
||||
<a href="https://cdn.jsdelivr.net/gh/johnsoncodehk/sponsors/sponsors.svg">
|
||||
<img src="https://cdn.jsdelivr.net/gh/johnsoncodehk/sponsors/sponsors.svg"/>
|
||||
</a>
|
||||
</p>
|
||||
3
web-app/node_modules/vue-tsc/bin/vue-tsc.js
generated
vendored
Executable file
3
web-app/node_modules/vue-tsc/bin/vue-tsc.js
generated
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
// @ts-check
|
||||
require('../index.js').run();
|
||||
1
web-app/node_modules/vue-tsc/index.d.ts
generated
vendored
Normal file
1
web-app/node_modules/vue-tsc/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function run(tscPath?: string): void;
|
||||
38
web-app/node_modules/vue-tsc/index.js
generated
vendored
Normal file
38
web-app/node_modules/vue-tsc/index.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.run = run;
|
||||
const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc");
|
||||
const vue = require("@vue/language-core");
|
||||
const windowsPathReg = /\\/g;
|
||||
function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
||||
let runExtensions = ['.vue'];
|
||||
const extensionsChangedException = new Error('extensions changed');
|
||||
const main = () => (0, runTsc_1.runTsc)(tscPath, runExtensions, (ts, options) => {
|
||||
const { configFilePath } = options.options;
|
||||
const vueOptions = typeof configFilePath === 'string'
|
||||
? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions
|
||||
: vue.getDefaultCompilerOptions();
|
||||
const allExtensions = vue.getAllExtensions(vueOptions);
|
||||
if (runExtensions.length === allExtensions.length
|
||||
&& runExtensions.every(ext => allExtensions.includes(ext))) {
|
||||
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, options.options, vueOptions, id => id);
|
||||
return { languagePlugins: [vueLanguagePlugin] };
|
||||
}
|
||||
else {
|
||||
runExtensions = allExtensions;
|
||||
throw extensionsChangedException;
|
||||
}
|
||||
});
|
||||
try {
|
||||
main();
|
||||
}
|
||||
catch (err) {
|
||||
if (err === extensionsChangedException) {
|
||||
main();
|
||||
}
|
||||
else {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
30
web-app/node_modules/vue-tsc/package.json
generated
vendored
Normal file
30
web-app/node_modules/vue-tsc/package.json
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "vue-tsc",
|
||||
"version": "2.2.12",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"bin",
|
||||
"**/*.js",
|
||||
"**/*.d.ts"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/vuejs/language-tools.git",
|
||||
"directory": "packages/tsc"
|
||||
},
|
||||
"bin": {
|
||||
"vue-tsc": "./bin/vue-tsc.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@volar/typescript": "2.4.15",
|
||||
"@vue/language-core": "2.2.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.10.4"
|
||||
},
|
||||
"gitHead": "0b13bf1966398ea3949b6b02d09b251ddc9a51eb"
|
||||
}
|
||||
Reference in New Issue
Block a user