mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 00:17:23 +00:00
build(deps): retire the unused VuePress toolchain
The build moved to mdPress in 1.7.0 ('移除遗留的 vuepress 构建,统一使用
mdpress'), but the VuePress devDependencies stayed. Nothing references them:
build/serve/start/pdf all call mdpress, and the only occurrence of vuepress
in code is '.vuepress' inside check_project_rules.py's ignore list. Pages
still ran 'npm ci', so every deploy installed the whole VuePress tree as
dead weight.
They were also the entire source of the repo's 91 Dependabot alerts. The
lockfile carried two copies of several packages; the vulnerable ones were
all VuePress's (dompurify 2.4.3, highlight.js 9.18.5, katex 0.15.6,
mermaid 9.4.3) while mermaid-cli's copies are above every patched
threshold. Removing the three devDependencies drops 16 of the 20 flagged
packages from the tree entirely and leaves the other four at safe versions.
.vuepress/config.js is deliberately kept — the mirror site it configures is
still live, and whether to archive it is a separate decision.
Verified: npm test passes (3 + 35 tests) and check_project_rules passes
202 files.
This commit is contained in:
Generated
+4
-24108
File diff suppressed because it is too large
Load Diff
+2
-7
@@ -4,10 +4,7 @@
|
||||
"description": "docker_practice",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@mermaid-js/mermaid-cli": "11.16.0",
|
||||
"vuepress": "1.9.10",
|
||||
"vuepress-plugin-container": "^2.1.5",
|
||||
"vuepress-theme-hope": "^1.0.0"
|
||||
"@mermaid-js/mermaid-cli": "11.16.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node scripts/check_metadata.js && python3 -m unittest tools.test_prepare_pdf_sources && python3 -m unittest discover -s tests -p 'test_*.py' && python3 tools/test_examples.py",
|
||||
@@ -15,9 +12,7 @@
|
||||
"build": "rm -rf _site _site_site && mdpress build --format site --output _site && rm -rf _site && mv _site_site _site",
|
||||
"serve": "mdpress serve",
|
||||
"start": "mdpress serve",
|
||||
"pdf": "rm -rf /tmp/docker_practice-pdf-src && python3 tools/prepare_pdf_sources.py --book-dir . --out /tmp/docker_practice-pdf-src && cd /tmp/docker_practice-pdf-src && mdpress build --format pdf --output \"${INIT_CWD:-$PWD}/docker_practice.pdf\"",
|
||||
"vuepress:build": "npx vuepress build",
|
||||
"vuepress": "npx vuepress"
|
||||
"pdf": "rm -rf /tmp/docker_practice-pdf-src && python3 tools/prepare_pdf_sources.py --book-dir . --out /tmp/docker_practice-pdf-src && cd /tmp/docker_practice-pdf-src && mdpress build --format pdf --output \"${INIT_CWD:-$PWD}/docker_practice.pdf\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user