@qse/edu-scripts 1.13.6 → 1.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@qse/edu-scripts",
3
- "version": "1.13.6",
3
+ "version": "1.13.8",
4
4
  "author": "Kinoko",
5
5
  "license": "MIT",
6
6
  "description": "教育工程化基础框架",
7
7
  "engines": {
8
- "node": ">=12"
8
+ "node": ">=14"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "dumi dev",
12
12
  "docs:build": "dumi build",
13
13
  "docs:deploy": "ssh-sftp",
14
- "build": "father-build",
14
+ "build": "father build",
15
15
  "deploy": "node scripts/deploy && rimraf docs-dist",
16
16
  "release": "npm run build && npm publish && rimraf lib",
17
17
  "prettier": "prettier -c -w \"src/**/*.{js,jsx,tsx,ts,less,md,json}\"",
@@ -34,58 +34,57 @@
34
34
  "extends": "qsb-react"
35
35
  },
36
36
  "dependencies": {
37
- "@babel/core": "~7.18.6",
38
- "@babel/plugin-proposal-decorators": "~7.18.6",
39
- "@babel/plugin-transform-runtime": "~7.18.6",
40
- "@babel/preset-env": "~7.18.6",
37
+ "@babel/core": "~7.18.13",
38
+ "@babel/plugin-proposal-decorators": "~7.18.10",
39
+ "@babel/plugin-transform-runtime": "~7.18.10",
40
+ "@babel/preset-env": "~7.18.10",
41
41
  "@babel/preset-react": "~7.18.6",
42
42
  "@babel/preset-typescript": "~7.18.6",
43
- "@babel/runtime": "~7.18.6",
43
+ "@babel/runtime": "~7.18.9",
44
44
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
45
45
  "@qse/ssh-sftp": "^1.0.0",
46
- "@svgr/webpack": "^7.0.0",
46
+ "@svgr/webpack": "^8.0.1",
47
47
  "babel-loader": "^8.3.0",
48
48
  "babel-plugin-import": "^1.13.6",
49
49
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
50
50
  "chalk": "^4.1.2",
51
- "css-loader": "^6.7.3",
52
- "cssnano": "^5.1.15",
51
+ "css-loader": "^6.8.1",
52
+ "cssnano": "^6.0.1",
53
53
  "esbuild-loader": "^2.21.0",
54
- "file-loader": "^6.2.0",
55
54
  "filesize": "^8.0.7",
56
55
  "fs-extra": "^10.1.0",
57
56
  "globby": "^11.1.0",
58
57
  "gzip-size": "^6.0.0",
59
- "html-webpack-plugin": "^5.5.0",
58
+ "html-webpack-plugin": "^5.5.3",
60
59
  "inquirer": "^8.2.5",
61
60
  "less": "^3.13.1",
62
61
  "less-loader": "^10.2.0",
63
62
  "lodash": "^4.17.21",
64
63
  "open": "^8.4.2",
65
- "postcss": "^8.4.21",
64
+ "postcss": "^8.4.27",
66
65
  "postcss-flexbugs-fixes": "^5.0.2",
67
- "postcss-loader": "^6.2.1",
66
+ "postcss-loader": "^7.3.3",
68
67
  "postcss-momentum-scrolling": "^3.14.22",
69
68
  "postcss-normalize": "^8.0.1",
70
- "postcss-preset-env": "^7.8.3",
71
- "prettier": "^2.8.7",
72
- "prettier-plugin-tailwindcss": "^0.1.13",
73
- "react-refresh": "^0.13.0",
69
+ "postcss-preset-env": "^9.1.0",
70
+ "prettier": "^3.0.0",
71
+ "prettier-plugin-tailwindcss": "^0.4.1",
72
+ "react-refresh": "^0.14.0",
74
73
  "recursive-readdir": "^2.2.3",
75
74
  "rimraf": "^3.0.2",
76
- "semver": "^7.3.8",
75
+ "semver": "^7.5.4",
77
76
  "strip-ansi": "^6.0.1",
78
- "style-loader": "^3.3.2",
79
- "tailwindcss": "^3.3.1",
80
- "terser-webpack-plugin": "~5.3.7",
77
+ "style-loader": "^3.3.3",
78
+ "tailwindcss": "^3.3.3",
79
+ "terser-webpack-plugin": "~5.3.9",
81
80
  "tmp": "^0.2.1",
82
- "typescript": "^4.9.5",
81
+ "typescript": "^5.1.6",
83
82
  "update-notifier": "^5.1.0",
84
83
  "url-loader": "^4.1.1",
85
- "webpack": "^5.78.0",
86
- "webpack-bundle-analyzer": "^4.8.0",
87
- "webpack-dev-server": "^4.13.2",
88
- "yargs": "^17.7.1"
84
+ "webpack": "^5.88.2",
85
+ "webpack-bundle-analyzer": "^4.9.0",
86
+ "webpack-dev-server": "^4.15.1",
87
+ "yargs": "^17.7.2"
89
88
  },
90
89
  "devDependencies": {
91
90
  "@types/fs-extra": "^9.0.13",
@@ -93,7 +92,7 @@
93
92
  "@types/yargs": "^17.0.24",
94
93
  "dumi": "^1.1.50",
95
94
  "eslint-config-qsb-react": "^1.1.1",
96
- "father-build": "^1.22.5",
95
+ "father": "^4.3.0",
97
96
  "jest": "^28.1.3"
98
97
  }
99
98
  }
@@ -200,11 +200,14 @@ module.exports = function getWebpackConfig(args, override) {
200
200
  rules: [
201
201
  {
202
202
  oneOf: [
203
- // 两个 babel-loader 是为了处理 pdfjs-dist 与 ofd.js
203
+ {
204
+ resourceQuery: /raw/,
205
+ type: 'asset/source',
206
+ },
204
207
  {
205
208
  test: /\.(j|t)sx?$/,
206
209
  loader: 'babel-loader',
207
- include: paths.src,
210
+ exclude: /node_modules/,
208
211
  options: require('./babel')(),
209
212
  },
210
213
  (override.transformNodeModules || isProd) && {
@@ -314,6 +317,10 @@ module.exports = function getWebpackConfig(args, override) {
314
317
  and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
315
318
  },
316
319
  },
320
+ {
321
+ test: /\.md$/,
322
+ type: 'asset/source',
323
+ },
317
324
  {
318
325
  // Exclude `js` files to keep "css" loader working as it injects
319
326
  // its runtime that would otherwise be processed through "file" loader.
@@ -19,6 +19,11 @@ module.exports = function getWebpackDevServerConfig(args, override) {
19
19
  host,
20
20
  client: {
21
21
  webSocketURL: { protocol: 'auto:', hostname: sockHost, port: sockPort },
22
+ overlay: {
23
+ runtimeErrors: false,
24
+ errors: true,
25
+ warnings: false,
26
+ },
22
27
  },
23
28
  headers: {
24
29
  'Access-Control-Allow-Origin': '*',
@@ -9,7 +9,7 @@ export type BabelImportPlugin = [
9
9
  camel2DashComponentName?: boolean
10
10
  style?: boolean | 'css' | ((name: string) => string)
11
11
  },
12
- string
12
+ string,
13
13
  ]
14
14
  export type BabelConfig = {
15
15
  presets: any[]