Skip to content

Commit c043f35

Browse files
committed
feat: init
0 parents  commit c043f35

35 files changed

+8356
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
insert_final_newline = false
13+
trim_trailing_whitespace = false

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
node_modules
3+
ci.yml
4+
release.yml

.eslintrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": [
3+
"@antfu"
4+
],
5+
"rules": {
6+
"vue/no-v-text-v-html-on-component": "off",
7+
"no-console": "off",
8+
"@typescript-eslint/ban-types": "off",
9+
"n/prefer-global/process": "off"
10+
}
11+
}

.gitignore

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE
81+
.idea
82+
83+
.vite-inspect
84+
auto-imports.d.ts
85+
components.d.ts
86+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 webfansplz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# vue-devtools-plus
2+
Unified Vue DevTools

build.config.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
'src/node/index',
6+
],
7+
clean: false,
8+
declaration: true,
9+
externals: [
10+
'vite',
11+
'vite-plugin-inspect',
12+
'vite-plugin-vue-inspector',
13+
'execa',
14+
'@webfansplz/vuedoc-parser',
15+
],
16+
rollup: {
17+
emitCJS: true,
18+
inlineDependencies: true,
19+
},
20+
})

package.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "@vue-devtools/monorepo",
3+
"private": true,
4+
"packageManager": "[email protected]",
5+
"description": "DevTools for Vue.js",
6+
"author": "webfansplz",
7+
"license": "MIT",
8+
"homepage": "https://github.com/webfansplz/vue-devtools-plus#readme",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/webfansplz/vue-devtools-plus.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/webfansplz/vue-devtools-plus/issues"
15+
},
16+
"keywords": [
17+
"vue-devtools",
18+
"dx"
19+
],
20+
"engines": {
21+
"node": ">=v14.21.3"
22+
},
23+
"scripts": {
24+
"lint": "eslint .",
25+
"prepublishOnly": "npm run build",
26+
"release": "bumpp -r",
27+
"dep:up": "taze -I major",
28+
"prepare": "simple-git-hooks",
29+
"test": "vitest",
30+
"play": "nr -C packages/playground dev"
31+
},
32+
"devDependencies": {
33+
"@antfu/eslint-config": "^0.41.0",
34+
"@antfu/ni": "^0.21.6",
35+
"@types/node": "^20.5.7",
36+
"@unocss/eslint-config": "^0.55.3",
37+
"bumpp": "^9.2.0",
38+
"eslint": "8.48.0",
39+
"esno": "^0.17.0",
40+
"lint-staged": "^14.0.1",
41+
"npm-run-all": "^4.1.5",
42+
"pnpm": "^8.7.0",
43+
"simple-git-hooks": "^2.9.0",
44+
"taze": "^0.11.2",
45+
"typescript": "^5.2.2",
46+
"unbuild": "^2.0.0",
47+
"vite": "^4.4.9",
48+
"vitest": "^0.34.3",
49+
"vue": "^3.3.4"
50+
},
51+
"simple-git-hooks": {
52+
"pre-commit": "pnpm lint-staged"
53+
},
54+
"lint-staged": {
55+
"*": "eslint --fix"
56+
}
57+
}

packages/client/App.vue

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
<main fixed inset-0 h-screen w-screen />
7+
</template>

packages/client/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
7+
<title>Vue DevTools Client</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/main.ts"></script>
12+
</body>
13+
</html>

packages/client/main.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { createApp } from 'vue'
2+
import FloatingVue from 'floating-vue'
3+
import 'floating-vue/dist/style.css'
4+
import { createMemoryHistory, createRouter } from 'vue-router'
5+
import routes from 'virtual:generated-pages'
6+
7+
import App from './App.vue'
8+
9+
import '@unocss/reset/tailwind.css'
10+
import './styles/main.css'
11+
12+
import 'uno.css'
13+
14+
const app = createApp(App)
15+
const router = createRouter({
16+
history: createMemoryHistory(),
17+
routes,
18+
})
19+
20+
app.use(router)
21+
app.use(FloatingVue)
22+
app.mount('#app')

packages/client/package.json

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"name": "@vue-devtools-plus/client",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"author": "webfansplz",
6+
"license": "MIT",
7+
"homepage": "https://github.com/webfansplz/vue-devtools-plus#readme",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/webfansplz/vue-devtools-plus.git",
11+
"directory": "packages/client"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/webfansplz/vue-devtools-plus/issues"
15+
},
16+
"exports": {
17+
"./*": "./dist/*"
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"engines": {
23+
"node": ">=v14.21.3"
24+
},
25+
"scripts": {
26+
"build": "vite build",
27+
"dev": "vite build --watch"
28+
},
29+
"peerDependencies": {
30+
"vite": "^3.1.0 || ^4.0.0-0"
31+
},
32+
"dependencies": {
33+
"@vueuse/core": "^10.4.0",
34+
"@vueuse/integrations": "^10.4.0",
35+
"algoliasearch": "^4.19.1",
36+
"json-editor-vue": "^0.10.6",
37+
"minimatch": "^9.0.3",
38+
"nanoid": "^4.0.2",
39+
"scroll-into-view-if-needed": "^3.0.10",
40+
"splitpanes": "^3.1.5",
41+
"vanilla-jsoneditor": "^0.18.2",
42+
"vite-hot-client": "^0.2.1",
43+
"vue-router": "^4.2.4",
44+
"vuedraggable": "^4.1.0",
45+
"xterm": "^5.2.1",
46+
"xterm-addon-fit": "^0.7.0"
47+
},
48+
"devDependencies": {
49+
"@algolia/client-search": "^4.19.1",
50+
"@iconify/json": "^2.2.106",
51+
"@types/node": "^20.5.7",
52+
"@types/splitpanes": "^2.2.1",
53+
"@unocss/core": "^0.55.3",
54+
"@unocss/reset": "^0.55.3",
55+
"@vitejs/plugin-vue": "^4.3.3",
56+
"@vitejs/plugin-vue-jsx": "^3.0.2",
57+
"@vue-devtools-plus/core": "workspace:*",
58+
"@vue-devtools-plus/ui": "workspace:*",
59+
"dayjs": "^1.11.9",
60+
"floating-vue": "2.0.0-beta.24",
61+
"fuse.js": "^6.6.2",
62+
"ohash": "^1.1.3",
63+
"pinia": "^2.1.6",
64+
"simple-git-hooks": "^2.9.0",
65+
"unocss": "^0.55.3",
66+
"unplugin": "^1.4.0",
67+
"unplugin-auto-import": "^0.16.6",
68+
"unplugin-vue-components": "^0.25.1",
69+
"vis-data": "^7.1.6",
70+
"vis-network": "^9.1.6",
71+
"vite": "^4.4.9",
72+
"vite-plugin-pages": "^0.31.0",
73+
"vue": "^3.3.4",
74+
"vue-virtual-scroller": "2.0.0-beta.8"
75+
}
76+
}

packages/client/tsconfig.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "esnext",
5+
"lib": ["esnext", "DOM"],
6+
"moduleResolution": "node",
7+
"esModuleInterop": true,
8+
"strict": true,
9+
"jsx": "preserve",
10+
"allowJs": true,
11+
"strictNullChecks": true,
12+
"resolveJsonModule": true,
13+
"noImplicitAny": false,
14+
"types": [
15+
"vite-plugin-pages/client",
16+
"vite/client",
17+
"vite-plugin-vue-devtools/client"
18+
],
19+
"paths": {
20+
"~/*": ["./*"]
21+
}
22+
},
23+
"exclude": ["node_modules", "dist"]
24+
}

packages/client/uno.config.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)