Skip to content

Commit

Permalink
build: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Feb 3, 2025
1 parent 7c6fe35 commit 28af466
Show file tree
Hide file tree
Showing 10 changed files with 941 additions and 756 deletions.
2 changes: 2 additions & 0 deletions docs/how-to-use-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ createMwApp(App).mount(root);

#### 特别说明<br>Notes

- Vue 组件中需要临时将 TypeScript 的版本从“使用工作区版本”切换至“使用 VS Code 的版本”<br>In the Vue component, you need to temporarily switch the TypeScript version from "Use Workspace Version" to "Use VSCode's Version"
- https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions
- `vue``pinia`已经内置在仓库中,无需额外安装<br>`vue` and `pinia` are already built into the repository, no need to install
- `@wikimedia/codex`等其他 Vue 相关的组件包需要额外按需安装<br>Other Vue-related components need to be installed separately
- Vue 组件中可以使用 Less 样式语法和 Pug 模板语法<br>Vue components can use Less style syntax and Pug template syntax
50 changes: 23 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"MediaWiki Gadget"
],
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/core": "^7.26.7",
"@babel/helper-compilation-targets": "^7.26.5",
"@babel/helper-plugin-utils": "^7.26.5",
"@babel/preset-env": "^7.26.0",
"@babel/types": "^7.26.5",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@babel/preset-env": "^7.26.7",
"@babel/types": "^7.26.7",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@mrhenry/babel-plugin-core-web": "^1.2.4",
"@mrhenry/core-web": "^1.2.4",
"@types/babel__core": "^7.20.5",
Expand All @@ -61,27 +61,27 @@
"@types/eslint": "^8.56.12",
"@types/jquery": "^3.5.32",
"@types/jqueryui": "^1.12.23",
"@types/less": "^3.0.7",
"@types/less": "^3.0.8",
"@types/minimist": "^1.2.5",
"@types/node": "^22.10.7",
"@types/node": "^22.13.0",
"@types/oojs": "^7.0.7",
"@types/oojs-ui": "latest",
"@types/prompts": "^2.4.9",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/language-plugin-pug": "2.0.19",
"@vue/language-plugin-pug": "^2.2.0",
"alpha-sort": "^5.0.0",
"broadcastchannel-polyfill": "^1.0.1",
"browserslist": "^4.24.4",
"caniuse-api": "^3.0.0",
"chalk": "^5.4.1",
"core-js": "^3.40.0",
"esbuild": "^0.24.2",
"esbuild-css-modules-plugin": "3.1.2",
"esbuild-css-modules-plugin": "^3.1.4",
"esbuild-plugin-less": "^1.3.14",
"esbuild-plugin-vue3": "0.4.1",
"esbuild-plugin-vue3": "^0.4.2",
"esbuild-postcss": "^0.0.4",
"eslint": "^8.57.1",
"eslint-config-prettier": "^10.0.1",
Expand All @@ -92,7 +92,7 @@
"eslint-plugin-vue": "^9.32.0",
"git-pull-run": "^1.4.0",
"glob": "^11.0.1",
"happy-dom": "^16.6.0",
"happy-dom": "^16.8.1",
"husky": "^9.1.7",
"less-plugin-npm-import": "^2.1.0",
"less-plugin-preset-env": "^2.0.2",
Expand All @@ -101,8 +101,8 @@
"moment": "^2.30.1",
"mwn": "^2.0.4",
"only-allow": "^1.2.1",
"p-queue": "^8.0.1",
"pinia": "2.2.4",
"p-queue": "^8.1.0",
"pinia": "^2.3.1",
"postcss": "^8.5.1",
"postcss-import": "^16.1.0",
"postcss-load-config": "^6.0.1",
Expand All @@ -112,26 +112,22 @@
"proxy-polyfill": "^0.3.2",
"pug": "^3.0.3",
"rimraf": "^6.0.1",
"stylelint": "16.12.0",
"stylelint": "^16.14.1",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-wikimedia": "^0.18.0",
"tsx": "^4.19.2",
"types-mediawiki": "^1.9.1",
"typescript": "^5.7.3",
"typescript-plugin-css-modules": "^5.1.0",
"unorm": "^1.6.0",
"vue": "3.3.9",
"vue": "^3.5.13",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "2.0.19"
"vue-tsc": "^2.2.0"
},
"pnpm": {
"overrides": {
"@types/oojs-ui": "latest",
"@typescript-eslint/utils": "$@typescript-eslint/eslint-plugin",
"@vue/compiler-core": "$vue",
"@vue/compiler-dom": "$vue",
"@vue/compiler-sfc": "$vue",
"@vue/shared": "$vue",
"browserslist-config-wikimedia": "latest",
"emoji-regex": "latest",
"eslint-config-wikimedia": "$eslint-config-wikimedia",
Expand All @@ -141,11 +137,11 @@
"stylelint-config-wikimedia": "$stylelint-config-wikimedia"
},
"patchedDependencies": {
"alpha-sort@5.0.0": "patches/alpha-sort@5.0.0.patch",
"esbuild-css-modules-plugin@3.1.2": "patches/esbuild-css-modules-plugin@3.1.2.patch",
"eslint-config-wikimedia@0.28.2": "patches/eslint-config-wikimedia@0.28.2.patch",
"eslint-plugin-no-jquery@3.1.0": "patches/eslint-plugin-no-jquery@3.1.0.patch",
"types-mediawiki@1.9.1": "patches/types-mediawiki@1.9.1.patch"
"alpha-sort": "patches/alpha-sort.patch",
"esbuild-css-modules-plugin": "patches/esbuild-css-modules-plugin.patch",
"eslint-config-wikimedia": "patches/eslint-config-wikimedia.patch",
"eslint-plugin-no-jquery": "patches/eslint-plugin-no-jquery.patch",
"types-mediawiki": "patches/types-mediawiki.patch"
}
}
}
File renamed without changes.
13 changes: 13 additions & 0 deletions patches/esbuild-css-modules-plugin.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/css.helper.js b/lib/css.helper.js
index f527b34d8d8e900633cf0863f29f30d375c70727..ec91e2e355bcc13a305fa74b30d4f6536abc6434 100644
--- a/lib/css.helper.js
+++ b/lib/css.helper.js
@@ -271,7 +271,7 @@ ${uniqNames.map(([o, l]) => ` "${o}": ${l}`).join(',\n')}
filename: fullpath,
cssModules: {
dashedIdents: options?.dashedIndents,
- pattern: options?.pattern ?? `${opt?.prefix ?? ''}__[local]_[hash]__${opt?.suffix ?? ''}`
+ pattern: options?.pattern ?? `${opt?.prefix ? `${opt.prefix}__` : ''}[local]_[hash]${opt?.suffix ? `__${opt.suffix}` : ''}`
},
drafts: {
customMedia: true,
39 changes: 0 additions & 39 deletions patches/[email protected]

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 28af466

Please sign in to comment.