Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
135 lines (135 loc) · 7.19 KB
/
Copy pathpackage.json
File metadata and controls
135 lines (135 loc) · 7.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"name": "physics-book",
"version": "1.0.0",
"description": "Textbook for General Physics I",
"repository": "https://github.com/veillette/physics-book",
"type": "module",
"scripts": {
"prepare": "sh hooks/install.sh",
"install:hooks": "sh hooks/install.sh",
"check:links": "node scripts/check-links.js",
"check:links:fast": "node scripts/check-links.js --timeout 5000 --concurrent 15",
"check:orphans": "node scripts/check-orphans.js",
"check:orphans:cleanup": "node scripts/check-orphans.js --generate-cleanup",
"check:figures": "node scripts/check-figures.js",
"check:figures:pattern": "node scripts/check-figures.js --check-pattern",
"check:figures:missing": "node scripts/check-figures.js --check-missing",
"check:math": "node scripts/check-math.js",
"check:accessibility": "node scripts/check-accessibility.js",
"check:accessibility:strict": "node scripts/check-accessibility.js --strict",
"check:yaml": "node scripts/check-yaml.js",
"check:yaml:strict": "node scripts/check-yaml.js --strict",
"check:content": "node scripts/content.js",
"check:content:strict": "node scripts/content.js --strict",
"check:content:fix": "node scripts/content.js --fix",
"check:structure": "node scripts/check-structure.js",
"check:structure:strict": "node scripts/check-structure.js --strict",
"check:cross-refs": "node scripts/check-cross-references.js",
"check:cross-refs:strict": "node scripts/check-cross-references.js --strict",
"check:equations": "node scripts/equations.js",
"check:equations:strict": "node scripts/equations.js --strict",
"check:equations:fix": "node scripts/equations.js --fix",
"check:physics": "python3 -B scripts/check_math.py",
"check:solutions": "python3 -B scripts/find_incomplete_solutions.py --summary",
"lint:markdown": "node scripts/lint-markdown.js",
"lint:markdown:apply": "node scripts/lint-markdown.js --apply",
"lint:markdown:strict": "node scripts/lint-markdown.js --strict",
"fix:content": "node scripts/content.js --fix",
"fix:equations": "node scripts/equations.js --fix",
"generate:pdf": "node scripts/generate-pdf.js --all",
"generate:pdf:combined": "node scripts/generate-pdf.js --combined",
"generate:pdf:book": "node scripts/generate-pdf.js --book",
"generate:pdf:chapter": "node scripts/generate-pdf.js --chapter",
"generate:pdf:help": "node scripts/generate-pdf.js --help",
"generate:pdf:install": "npx playwright install chromium",
"generate:icons": "node scripts/generate-icons.js",
"generate:search-index": "node scripts/build-index.js",
"parse:summary": "node scripts/parse-summary.js",
"update:front-matter": "node scripts/update-front-matter.js",
"update:figures": "node scripts/rename-figures.js",
"generate:fbd": "node scripts/generate-fbd.js",
"generate:figures": "node scripts/generate-figures.js",
"check:figures:generated": "node scripts/generate-figures.js --check",
"generate:sketches": "node scripts/generate-sketches.js",
"update:mathjax": "cp node_modules/mathjax/tex-chtml.js assets/js/mathjax/ && cp -r node_modules/mathjax/ui assets/js/mathjax/ && cp -r node_modules/mathjax/a11y assets/js/mathjax/ && cp -r node_modules/mathjax/sre assets/js/mathjax/ && mkdir -p assets/js/mathjax/input/tex/extensions && cp node_modules/mathjax/input/tex/extensions/boldsymbol.js assets/js/mathjax/input/tex/extensions/",
"convert:webp": "node scripts/convert-webp.js",
"convert:math-delimiters": "node scripts/convert-math-delimiters.js",
"convert:math-delimiters:apply": "node scripts/convert-math-delimiters.js --apply",
"deploy:validate": "node scripts/validate-deploy.js",
"deploy:validate:github": "node scripts/validate-deploy.js --github",
"deploy:validate:verbose": "node scripts/validate-deploy.js --verbose",
"crawl": "node scripts/crawl-all-pages.js",
"crawl:verbose": "node scripts/crawl-all-pages.js --verbose",
"crawl:errors": "node scripts/crawl-all-pages.js --errors-only",
"crawl:errors:fast": "node scripts/crawl-all-pages.js --errors-only --concurrent 10",
"find:latex": "node scripts/find-unrendered-latex.js",
"find:latex:verbose": "node scripts/find-unrendered-latex.js --verbose",
"find:latex:by-type": "node scripts/find-unrendered-latex.js --by-type",
"find:latex:json": "node scripts/find-unrendered-latex.js --json latex-issues.json",
"check:array-delimiters": "node scripts/check-array-delimiters.js",
"check:array-delimiters:verbose": "node scripts/check-array-delimiters.js --verbose",
"fix:subscript-spaces": "node scripts/fix-subscript-spaces.js",
"fix:subscript-spaces:apply": "node scripts/fix-subscript-spaces.js --apply",
"fix:array-end": "node scripts/fix-array-end-delimiter.js",
"fix:array-end:apply": "node scripts/fix-array-end-delimiter.js --apply",
"fix:math": "node scripts/fix-math-delimiters.js",
"fix:math:apply": "node scripts/fix-math-delimiters.js --apply",
"fix:math:verbose": "node scripts/fix-math-delimiters.js --verbose",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix --max-warnings 0",
"format": "prettier --write .",
"format:check": "prettier --check .",
"build": "eleventy",
"serve": "eleventy --serve --port=4000",
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('_site', {recursive: true, force: true})\"",
"test": "vitest run",
"test:links": "node scripts/check-links.js",
"test:ci": "npm run check:links -- --timeout 15000",
"test:unit": "vitest run",
"test:watch": "vitest",
"check:all": "npm run audit && npm run check:physics && npm run test:unit && python3 -B -m unittest tests/test_check_math.py",
"audit": "npm run check:links && npm run check:orphans && npm run check:figures && npm run check:yaml && npm run check:accessibility && npm run check:math && npm run check:content && npm run check:structure && npm run check:cross-refs && npm run check:equations",
"update:minisearch": "node scripts/vendor-minisearch.js",
"pace:agents": "node scripts/pace-agents.js",
"pace:agents:once": "node scripts/pace-agents.js --once",
"pace:agents:status": "node scripts/pace-agents.js --status"
},
"devDependencies": {
"@11ty/eleventy": "4.0.0-alpha.10",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.65.0",
"@types/node": "^26.6.6",
"chalk": "^6.0.1",
"cheerio": "^1.2.0",
"entities": "^9.0.0",
"eslint": "^10.14.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import-x": "^4.17.1",
"glob": "^14.0.3",
"@11ty/gray-matter": "^3.0.0",
"js-yaml": "^5.5.0",
"markdown-it": "^15.0.1",
"markdown-it-anchor": "^10.1.0",
"markdown-it-attrs": "^5.0.1",
"markdown-it-container": "^4.0.0",
"markdown-it-deflist": "^4.0.0",
"markdown-it-footnote": "^4.0.0",
"mathjax": "^4.1.3",
"minisearch": "^7.2.0",
"prettier": "^3.9.6",
"sharp": "^0.35.5",
"simple-git": "^4.0.2",
"vitest": "^5.1.0",
"lint-staged": "^17.4.1",
"pdf-lib": "^1.17.1"
},
"lint-staged": {
"*.js": [
"eslint --fix --max-warnings 0 --no-warn-ignored",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
}
}