Skip to content

Commit d84f06c

Browse files
committed
chore: move to pnpm, reduce packages and prepare for TS ?
1 parent 8bad6e6 commit d84f06c

File tree

5 files changed

+32
-36
lines changed

5 files changed

+32
-36
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ dist
33
external-mods
44
logs
55
node_modules
6-
package-lock.json
6+
pnpm-lock.yaml
7+
.qodo
8+
.eslintcache

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Basically my website, hosted at [edm115.dev](https://edm115.dev) ([edm115.eu.org
88
- Vue 3 + Vite + Vuetify :white_check_mark:
99
- Drop of Bootstrap (and most libraries) :white_check_mark:
1010
- Dark theme (by default) :white_check_mark:
11+
- TypeScript :x:
1112
- Usage of the Dracula color scheme if possible :white_check_mark:
1213
- Modern feel, glassy interface :x:
1314
- Custom cursor on few elements :x:
@@ -36,14 +37,14 @@ Basically my website, hosted at [edm115.dev](https://edm115.dev) ([edm115.eu.org
3637
## Minimal repro
3738
```bash
3839
git clone https://github.com/EDM115/website.git && cd website
39-
npm run i
40-
npm run dev
40+
pnpm i
41+
pnpm dev
4142
```
4243

4344
```bash
44-
npm run lint-fix
45-
npm run build
46-
npm run serve
45+
pnpm lint:fix
46+
pnpm build
47+
pnpm preview
4748
```
4849

4950
---
@@ -92,13 +93,13 @@ server {
9293
proxy_pass http://127.0.0.1:9898;
9394
break;
9495
}
95-
96-
if ($host ~* ^cursedchess-vps) {
96+
97+
if ($host ~* ^cursedchess-vps) {
9798
proxy_pass http://127.0.0.1:6969;
9899
break;
99100
}
100101
101-
if ($host ~* ^dicewizard-vps) {
102+
if ($host ~* ^dicewizard-vps) {
102103
proxy_pass http://127.0.0.1:8686;
103104
break;
104105
}
@@ -108,7 +109,7 @@ server {
108109
break;
109110
}
110111
111-
if ($host ~* ^logs-vps) {
112+
if ($host ~* ^logs-vps) {
112113
proxy_pass http://127.0.0.1:10000;
113114
break;
114115
}
@@ -128,7 +129,7 @@ server {
128129
129130
# When using npm run serve
130131
# return proxy_pass http://127.0.0.1:10101;
131-
132+
132133
root /home/edm115/website/dist;
133134
index index.html;
134135
try_files $uri $uri/ /index.html;

package.json

+17-18
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,36 @@
77
"dependencies": {
88
"cookiejs": "2.1.3",
99
"ofetch": "1.4.1",
10-
"http-server": "14.1.1",
1110
"vue": "3.5.13",
1211
"vue-i18n": "11.1.2",
1312
"vue-router": "4.5.0",
1413
"vuetify": "3.7.18"
1514
},
1615
"description": "EDM115's website",
1716
"devDependencies": {
18-
"@formkit/auto-animate": "0.8.2",
19-
"@iconify/json": "2.2.319",
17+
"@eslint/js": "9.23.0",
18+
"@iconify/json": "^2.2.319",
2019
"@intlify/unplugin-vue-i18n": "6.0.5",
2120
"@stylistic/eslint-plugin": "4.2.0",
2221
"@unhead/vue": "1.11.20",
2322
"@vitejs/plugin-vue": "5.2.3",
2423
"@vue/compiler-sfc": "3.5.13",
25-
"@vueuse/components": "13.0.0",
26-
"@vueuse/core": "13.0.0",
27-
"@vueuse/gesture": "2.0.0",
28-
"@vueuse/motion": "3.0.3",
29-
"@vueuse/router": "13.0.0",
3024
"aos": "2.3.4",
3125
"country-flag-emoji-polyfill": "0.1.8",
3226
"eslint": "9.23.0",
33-
"eslint-plugin-vue": "9.32.0",
27+
"eslint-plugin-vue": "10.0.0",
28+
"globals": "16.0.0",
3429
"gsap": "3.12.7",
3530
"highlight.js": "11.11.1",
36-
"js-imports-sort": "1.2.0",
37-
"magic-regexp": "0.8.0",
3831
"markdown-it-anchor": "9.2.0",
3932
"markdown-it-attrs": "4.3.1",
4033
"markdown-it-emoji": "3.0.0",
4134
"markdown-it-highlightjs": "4.2.0",
4235
"pinia": "3.0.1",
4336
"sass-embedded": "1.86.0",
4437
"sass-loader": "16.0.5",
45-
"unplugin-icons": "22.1.0",
4638
"unplugin-fonts": "1.3.1",
39+
"unplugin-icons": "22.1.0",
4740
"unplugin-vue-components": "28.4.1",
4841
"unplugin-vue-markdown": "28.3.1",
4942
"vite": "6.2.2",
@@ -54,6 +47,13 @@
5447
"homepage": "https://edm115.dev",
5548
"license": "MIT",
5649
"name": "edm115-website",
50+
"packageManager": "[email protected]",
51+
"pnpm": {
52+
"onlyBuiltDependencies": [
53+
"esbuild",
54+
"vue-demi"
55+
]
56+
},
5757
"private": true,
5858
"repository": {
5959
"type": "git",
@@ -62,12 +62,11 @@
6262
"scripts": {
6363
"build": "vite build",
6464
"dev": "vite --port 8888",
65-
"i": "npm i --no-audit --no-fund",
66-
"lint": "eslint .",
67-
"lint-fix": "eslint . --fix",
68-
"preview": "vite preview --port 8888",
69-
"serve": "http-server dist --port 10101 --log-ip --no-dotfiles"
65+
"lint": "eslint . --cache --cache-location .eslintcache",
66+
"lint:fix": "eslint . --fix",
67+
"lint:no-cache": "eslint .",
68+
"preview": "vite preview --port 8000"
7069
},
7170
"type": "module",
72-
"version": "0.5.5"
71+
"version": "0.5.6"
7372
}

src/main.js

-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import cookie from "cookiejs"
1919
import App from "./App.vue"
2020
import router from "./router"
2121

22-
import { GesturePlugin } from "@vueuse/gesture"
23-
import { MotionPlugin } from "@vueuse/motion"
2422
import { createHead } from "@unhead/vue"
2523
import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill"
2624
import { createPinia } from "pinia"
@@ -98,9 +96,7 @@ app.use(createVuetify({
9896
}
9997
}))
10098
app.use(i18n)
101-
app.use(GesturePlugin)
10299
app.use(head)
103-
app.use(MotionPlugin)
104100
app.use(router)
105101

106102
app.mount("#app")

vite.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import vueDevTools from "vite-plugin-vue-devtools"
1111
import Markdown from "unplugin-vue-markdown/vite"
1212
import svgLoader from "vite-svg-loader"
1313

14-
import { MagicRegExpTransformPlugin } from "magic-regexp/transform"
1514
import { full as emoji } from "markdown-it-emoji"
1615
import { fileURLToPath, URL } from "node:url"
1716
import { defineConfig } from "vite"
@@ -28,7 +27,7 @@ export default defineConfig({
2827
api: "modern-compiler"
2928
}
3029
},
31-
preprocessorMaxWorkers: 2
30+
preprocessorMaxWorkers: 4
3231
},
3332
esbuild: {
3433
target: "esnext"
@@ -121,7 +120,6 @@ export default defineConfig({
121120
}
122121
}
123122
}),
124-
MagicRegExpTransformPlugin.vite(),
125123
Components({
126124
collapseSamePrefixes: true,
127125
directoryAsNamespace: true,

0 commit comments

Comments
 (0)