Skip to content

Commit 7da1dac

Browse files
committed
upgrade dependencies and migrate to Vite
(close #9)
1 parent 9e694a0 commit 7da1dac

9 files changed

Lines changed: 1155 additions & 3701 deletions

File tree

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"semi": false,
3-
"singleQuote": true
3+
"singleQuote": true,
4+
"trailingComma": "es5"
45
}

index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!doctype html>
2+
<html lang="zh-hans">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta
8+
name="description"
9+
content="Online CustomSkinLoader configuration editor."
10+
/>
11+
<title>CustomSkinLoader GUI</title>
12+
<link
13+
rel="stylesheet"
14+
href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.19/dist/shoelace/shoelace.css"
15+
/>
16+
<link
17+
rel="stylesheet"
18+
href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.19/themes/dark.css"
19+
/>
20+
<link rel="stylesheet" href="./src/styles.css" />
21+
<link
22+
rel="preload"
23+
as="style"
24+
href="https://cdn.jsdelivr.net/npm/highlight.js@10.2.1/styles/atom-one-light.css"
25+
/>
26+
<link
27+
rel="preload"
28+
as="style"
29+
href="https://cdn.jsdelivr.net/npm/highlight.js@10.2.1/styles/atom-one-dark.css"
30+
/>
31+
</head>
32+
<body>
33+
<noscript>You need to enable JavaScript to run this app.</noscript>
34+
<script
35+
type="module"
36+
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.19/dist/shoelace/shoelace.esm.js"
37+
></script>
38+
<script type="module" src="./src/index.ts"></script>
39+
</body>
40+
</html>

package.json

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
{
22
"private": true,
33
"license": "MIT",
4+
"type": "module",
45
"scripts": {
5-
"start": "snowpack dev",
6-
"build": "snowpack build",
7-
"test": "tsc -p . && svelte-check && prettier --check --plugin-search-dir=. src",
8-
"fmt": "prettier --write --plugin-search-dir=. src"
6+
"dev": "vite",
7+
"build": "vite build",
8+
"test": "tsc -p . && svelte-check && prettier --check src",
9+
"fmt": "prettier --write src"
910
},
1011
"dependencies": {
11-
"@shoelace-style/shoelace": "^2.0.0-beta.34",
12-
"highlight.js": "^10.7.1",
13-
"svelte": "^3.35.0",
14-
"svelte-dnd-action": "^0.9.1",
15-
"svelte-i18n": "^3.3.7"
12+
"@shoelace-style/shoelace": "^2.6.0",
13+
"highlight.js": "^11.8.0",
14+
"svelte": "^4.1.2",
15+
"svelte-dnd-action": "^0.9.24",
16+
"svelte-i18n": "^3.7.0"
1617
},
1718
"devDependencies": {
18-
"@gplane/tsconfig": "^4.2.0",
19-
"@snowpack/app-scripts-svelte": "^2.0.1",
20-
"@snowpack/plugin-dotenv": "^2.0.5",
21-
"@snowpack/plugin-optimize": "^0.2.13",
22-
"@snowpack/plugin-svelte": "^3.6.0",
23-
"@types/snowpack-env": "^2.3.3",
24-
"prettier": "^2.2.1",
25-
"prettier-plugin-svelte": "^2.2.0",
26-
"snowpack": "^3.1.2",
27-
"svelte-check": "^1.2.6",
28-
"svelte-hmr": "^0.14.0",
29-
"svelte-preprocess": "^4.6.9",
30-
"typescript": "^4.2.3"
19+
"@gplane/tsconfig": "^6.0.0",
20+
"@sveltejs/vite-plugin-svelte": "^2.4.3",
21+
"prettier": "^3.0.1",
22+
"prettier-plugin-svelte": "^3.0.3",
23+
"svelte-check": "^3.4.6",
24+
"svelte-hmr": "^0.15.2",
25+
"svelte-preprocess": "^5.0.4",
26+
"typescript": "^5.1.6",
27+
"vite": "^4.4.8"
3128
}
3229
}

0 commit comments

Comments
 (0)