Skip to content

Commit 6cad8c7

Browse files
committed
feat: add astro, mdx
1 parent bf3faa7 commit 6cad8c7

12 files changed

+60
-360
lines changed

.npmrc

-3
This file was deleted.

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"files.exclude": {
3+
"framework": true,
4+
"services": true,
5+
"vue": true,
6+
"astro": true,
7+
"mdx": true,
8+
}
9+
}

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Volar.js Workspace
1+
# Workspace
22

3-
Setup for vuejs/language-tools:
3+
Setup:
44

5-
1. Open Workspace from `vue.code-workspace` file
6-
2. Run `npm run setup:vue` to clone repos.
7-
3. Run `npm run watch` to watch and build volar and plugins
8-
4. Run `Launch Client (vue)` in VSCode Debug Panel
5+
1. Open Workspace from `volar.code-workspace` file
6+
2. Run `npm run setup` to clone repos
7+
3. Run `pnpm i` to install dependencies for all repos
8+
4. Run `npm run watch:*` and start code

package.json

+38-6
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,54 @@
22
"scripts": {
33
"add:framework": "git clone https://github.com/volarjs/volar.js.git framework",
44
"add:services": "git clone https://github.com/volarjs/services.git services",
5-
"add:vscode-typescript-web": "git clone https://github.com/volarjs/vscode-typescript-web.git vscode-typescript-web",
6-
"add:monaco-volar": "git clone https://github.com/Kingwl/monaco-volar.git monaco-volar",
75
"add:vue": "git clone https://github.com/vuejs/language-tools.git vue",
6+
"add:astro": "git clone https://github.com/withastro/language-tools.git astro",
7+
"add:mdx": "git clone https://github.com/mdx-js/mdx-analyzer.git mdx",
8+
"setup": "(npm run add:framework & npm run add:services & npm run add:vue & npm run add:astro && npm run add:mdx) && pnpm i",
89
"prepare:framework": "cd framework && pnpm i && npm run build",
910
"prepare:services": "cd services && pnpm i && npm run build",
1011
"prepare:vue": "cd vue && pnpm i && npm run build",
11-
"pnpm:devPreinstall": "(npm run prepare:framework & npm run prepare:services & npm run prepare:vue) && npm run clean:node_modules",
12-
"setup:vue": "(npm run add:framework & npm run add:services & npm run add:vue) && pnpm i",
12+
"prepare:astro": "cd astro && pnpm i && npm run build",
13+
"prepare:mdx": "cd mdx && npm i && npm run test-types",
14+
"pnpm:devPreinstall-x": "(npm run prepare:framework & npm run prepare:services & npm run prepare:vue & npm run prepare:astro & npm run prepare:mdx) && npm run clean",
1315
"clean": "npm run clean:node_modules && npm run clean:tsbuildinfo",
1416
"clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
1517
"clean:tsbuildinfo": "find . -name '*.tsbuildinfo' -type f -prune -exec rm -rf '{}' +",
16-
"watch": "npm run watch:framework & npm run watch:services",
1718
"watch:framework": "cd framework && npm run watch",
18-
"watch:services": "cd services && npm run watch"
19+
"watch:services": "cd services && npm run watch",
20+
"watch:vue": "cd vue && npm run watch:base",
21+
"watch:astro": "cd astro && npm run dev",
22+
"watch:mdx": "cd mdx && npm run test-types -- -w"
1923
},
2024
"devDependencies": {
2125
"typescript": "latest"
26+
},
27+
"pnpm": {
28+
"overrides": {
29+
"@volar/cdn": "workspace:*",
30+
"@volar/kit": "workspace:*",
31+
"@volar/language-core": "workspace:*",
32+
"@volar/language-server": "workspace:*",
33+
"@volar/language-service": "workspace:*",
34+
"@volar/monaco": "workspace:*",
35+
"@volar/source-map": "workspace:*",
36+
"@volar/typescript": "workspace:*",
37+
"@volar/vscode": "workspace:*",
38+
"volar-service-css": "workspace:*",
39+
"volar-service-emmet": "workspace:*",
40+
"volar-service-eslint": "workspace:*",
41+
"volar-service-html": "workspace:*",
42+
"volar-service-json": "workspace:*",
43+
"volar-service-prettier": "workspace:*",
44+
"volar-service-pretty-ts-errors": "workspace:*",
45+
"volar-service-prettyhtml": "workspace:*",
46+
"volar-service-pug": "workspace:*",
47+
"volar-service-pug-beautify": "workspace:*",
48+
"volar-service-sass-formatter": "workspace:*",
49+
"volar-service-tslint": "workspace:*",
50+
"volar-service-typescript": "workspace:*",
51+
"volar-service-typescript-twoslash-queries": "workspace:*",
52+
"volar-service-vetur": "workspace:*"
53+
}
2254
}
2355
}

pnpm-workspace.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ packages:
22
- '*'
33
- '*/packages/*'
44
- '*/extensions/*'
5-
- '*/test-workspace'
5+
- 'vue/test-workspace'

rules/missing-dependency.ts

-102
This file was deleted.

rules/no-import-module.ts

-40
This file was deleted.

rules/should-type-only-import.ts

-43
This file was deleted.

0 commit comments

Comments
 (0)