Skip to content

Commit 75f55e1

Browse files
committed
Initial commit
0 parents  commit 75f55e1

File tree

131 files changed

+25297
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+25297
-0
lines changed

.eslintignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock
14+
**/dist
15+
rollup.config.js

.eslintrc.cjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:svelte/recommended',
7+
'prettier'
8+
],
9+
parser: '@typescript-eslint/parser',
10+
plugins: ['@typescript-eslint'],
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020,
14+
extraFileExtensions: ['.svelte']
15+
},
16+
env: {
17+
browser: true,
18+
es2017: true,
19+
node: true
20+
},
21+
overrides: [
22+
{
23+
files: ['*.svelte'],
24+
parser: 'svelte-eslint-parser',
25+
parserOptions: {
26+
parser: '@typescript-eslint/parser'
27+
}
28+
}
29+
],
30+
rules: {
31+
'@typescript-eslint/nk-explicit-any': 'off',
32+
'@typescript-eslint/ban-ts-comment': 'off',
33+
'svelte/nk-at-html-tags': 'off',
34+
'svelte/valid-compile': 'off',
35+
'@typescript-eslint/nk-non-null-assertion': 'off',
36+
'@typescript-eslint/no-explicit-any': 'off',
37+
'svelte/no-at-html-tags': 'off'
38+
}
39+
};

.gitignore

Lines changed: 86 additions & 0 deletions
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+
# Serverless directories
75+
.serverless
76+
77+
# IDE
78+
.idea
79+
.vscode
80+
81+
.vite-inspect
82+
docs/.vitepress/cache
83+
84+
packages/**/node_modules/
85+
packages/**/dist/
86+
playground/node_modules/

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
engine-strict=true
2+
resolution-mode=highest

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 白雾三语
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.

package.json

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"name": "@ikun-svelte-devtools/core",
3+
"description": "A vite plugin for Svelte Devtools",
4+
"type": "module",
5+
"version": "0.0.0",
6+
"keywords": [
7+
"vue-devtools",
8+
"vite-plugin",
9+
"vite-plugin-vue-devtools",
10+
"svelte-devtools",
11+
"svelte-devtools-plus",
12+
"vite-plugin-svelte-devtools",
13+
"dx"
14+
],
15+
"license": "MIT",
16+
"author": "baiwusanyu-c",
17+
"homepage": "https://github.com/ikun-svelte/ikun-svelte-devtools#readme",
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/ikun-svelte/ikun-svelte-devtools.git"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/ikun-svelte/ikun-svelte-devtools/issues"
24+
},
25+
"main": "dist/index.cjs",
26+
"module": "dist/index.mjs",
27+
"types": "dist/index.d.ts",
28+
"exports": {
29+
".": {
30+
"types": "./dist/index.d.ts",
31+
"require": "./dist/index.cjs",
32+
"import": "./dist/index.mjs"
33+
},
34+
"./*": "./*"
35+
},
36+
"files": [
37+
"dist",
38+
"*.d.ts"
39+
],
40+
"engines": {
41+
"node": ">=14"
42+
},
43+
"scripts": {
44+
"init": "pnpm i",
45+
"dev": "run-p dev:*",
46+
"dev:client": "",
47+
"dev:server": "",
48+
"play": "pnpm run --filter @ikun-svelte-devtools/playground dev",
49+
"build": "",
50+
"build:client": "",
51+
"build:server": "",
52+
"lint": "prettier --plugin-search-dir --check . && eslint .",
53+
"format": "prettier --plugin-search-dir --write .",
54+
"release": "",
55+
"clean:dist": "rimraf dist && esno scripts/clean.js",
56+
"prepare": "npx simple-git-hooks",
57+
"update:deps": "npx taze -w -r major && pnpm run init",
58+
"publish:npm": "pnpm publish --no-git-checks --access public"
59+
},
60+
"peerDependencies": {
61+
"vite": "^3.0.0-0 || ^4.0.0-0"
62+
},
63+
"dependencies": {
64+
"baiwusanyu-utils": "^1.0.15",
65+
"@ikun-svelte-devtools/utils-client":"workspace:*",
66+
"@ikun-svelte-devtools/utils-server":"workspace:*",
67+
"@ikun-svelte-devtools/icons":"workspace:*",
68+
"@ikun-svelte-devtools/shared":"workspace:*",
69+
"@ikun-svelte-devtools/client":"workspace:*",
70+
"@ikun-svelte-devtools/server":"workspace:*"
71+
},
72+
"devDependencies": {
73+
"@sveltejs/eslint-config": "^6.0.4",
74+
"@types/node": "^20.4.1",
75+
"@types/splitpanes": "^2.2.1",
76+
"@unocss/eslint-config": "^0.53.5",
77+
"@unocss/reset": "^0.53.5",
78+
"@typescript-eslint/eslint-plugin": "^6.3.0",
79+
"@typescript-eslint/parser": "^6.3.0",
80+
"eslint": "^8.46.0",
81+
"eslint-config-prettier": "^9.0.0",
82+
"eslint-plugin-svelte": "^2.32.4",
83+
"prettier": "^3.0.1",
84+
"prettier-plugin-svelte": "^3.0.3",
85+
"bumpp": "^9.1.1",
86+
"npm-run-all": "^4.1.5",
87+
"rimraf": "^5.0.1",
88+
"simple-git-hooks": "^2.8.1",
89+
"typescript": "^5.1.6",
90+
"tsup": "^7.2.0",
91+
"del": "^7.0.0"
92+
},
93+
"simple-git-hooks": {
94+
"pre-commit": "pnpm run format && pnpm run lint",
95+
"commit-msg": "node vertify-commit.js"
96+
}
97+
}

packages/client/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<title>Vite + Svelte + TS</title>
7+
</head>
8+
<body style="font-size: 15px;">
9+
<div id="app"></div>
10+
<script>
11+
(function () {
12+
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
13+
const setting = localStorage.getItem('color-schema') || 'auto'
14+
if (setting === 'dark' || (prefersDark && setting !== 'light'))
15+
document.documentElement.classList.toggle('dark', true)
16+
})()
17+
</script>
18+
<script type="module" src="/src/main.ts"></script>
19+
</body>
20+
</html>

packages/client/package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@ikun-svelte-devtools/client",
3+
"private": true,
4+
"type": "module",
5+
"version": "0.0.0",
6+
"scripts": {
7+
"dev": "vite build --watch",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-check --tsconfig ./tsconfig.json"
11+
},
12+
"dependencies": {
13+
"xterm": "^5.2.1",
14+
"xterm-addon-fit": "^0.7.0",
15+
"algoliasearch": "^4.19.1",
16+
"svelte-infinite-scroll": "^2.0.1",
17+
"@ikun-ui/core": "^0.0.9-beta.4",
18+
"svelte-json-tree": "^2.1.0",
19+
"svelte-routing": "^2.1.0",
20+
"svelte-splitpanes": "^0.8.0",
21+
"@ikun-svelte-devtools/utils-client":"workspace:*",
22+
"@ikun-svelte-devtools/icons":"workspace:*",
23+
"@ikun-svelte-devtools/shared":"workspace:*"
24+
},
25+
"devDependencies": {
26+
"@iconify-json/carbon": "^1.1.20",
27+
"@algolia/client-search": "^4.19.1",
28+
"@ikun-ui/preset": "^0.0.9-beta.4",
29+
"@sveltejs/vite-plugin-svelte": "^2.4.5",
30+
"@tsconfig/svelte": "^5.0.2",
31+
"svelte": "^4.2.0",
32+
"svelte-check": "^3.5.1",
33+
"tslib": "^2.6.2",
34+
"typescript": "^5.2.2",
35+
"unocss": "^0.55.4",
36+
"vite": "^4.4.9",
37+
"fuse.js": "^6.6.2",
38+
"vis-data": "^7.1.6",
39+
"vis-network": "^9.1.6",
40+
"vite-hot-client": "^0.2.2",
41+
"ohash": "^1.1.3"
42+
}
43+
}

0 commit comments

Comments
 (0)