-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
91 lines (70 loc) · 3.56 KB
/
Copy pathMakefile
File metadata and controls
91 lines (70 loc) · 3.56 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
.PHONY: build-frontend-bundle check-js check-py check-lines test setup-playwright smoke-ui full-ui stress-layout-ui export-canvas-guard-ui print-document-ui gemini-ui-protocol gemini-benchmark gemini-prompt-experiments gemini-health quality-dashboard maintenance-audit leave-better leave-better-ui validate
PW_TMP := /tmp/pwtmp
PW_NODE_PATH := $(PW_TMP)/node_modules
PW_CLI := $(PW_NODE_PATH)/.bin/playwright
build-frontend-bundle:
python3 scripts/build_frontend_bundle.py
check-js:
node --check app/state-and-init.js
node --check app/splash-storage.js
node --check app/keyboard-shortcuts.js
node --check app/preview-pointer.js
node --check app/view-and-data.js
node --check app/render-card-sections.js
node --check app/text-render-utils.js
node --check app/card-interactions.js
node --check app/preview-staged-workspace.js
node --check app/preview-render.js
node --check app/preview-card-render.js
node --check app/preview-history.js
node --check app/preview-edit-modal.js
node --check app/preview-editing.js
node --check app/print-export-utils.js
node --check app/print-document.js
node --check app/export-raster-freeze-utils.js
node --check app/export-raster-utils.js
node --check app/layout-export-utils.js
node --check app/pdf-export-utils.js
node --check app/main.js
node --check scripts/export_canvas_guard_playwright.js
node --check scripts/print_document_playwright.js
node --check scripts/smoke_ui_playwright.js
node --check scripts/full_ui_playwright.js
node --check scripts/stress_layout_playwright.js
check-py: build-frontend-bundle
python3 -m py_compile build_topic_cards.py generate_ai_sections.py generate_key_points_and_recommendations.py enrich_key_point_details.py
python3 -m py_compile scripts/add_week_material.py scripts/build_frontend_bundle.py scripts/migrate_study_database.py scripts/gemini_test_protocol.py scripts/maintenance_audit.py scripts/gemini_capability_benchmark.py scripts/gemini_prompt_experiments.py scripts/gemini_model_health.py scripts/quality_dashboard.py scripts/validate_extracted_material.py scripts/vision_exam_pipeline.py
python3 -m py_compile $$(find pipelines -name '*.py' -type f)
check-lines:
python3 scripts/check_file_lengths.py
test:
python3 -m unittest discover -s tests -v
setup-playwright:
mkdir -p $(PW_TMP)
npm install --prefix $(PW_TMP) playwright
$(PW_CLI) install chromium
smoke-ui: build-frontend-bundle setup-playwright
NODE_PATH=$(PW_NODE_PATH) node scripts/smoke_ui_playwright.js
full-ui: build-frontend-bundle setup-playwright
NODE_PATH=$(PW_NODE_PATH) node scripts/full_ui_playwright.js
stress-layout-ui: build-frontend-bundle setup-playwright
NODE_PATH=$(PW_NODE_PATH) node scripts/stress_layout_playwright.js
export-canvas-guard-ui: build-frontend-bundle setup-playwright
NODE_PATH=$(PW_NODE_PATH) node scripts/export_canvas_guard_playwright.js
print-document-ui: build-frontend-bundle setup-playwright
NODE_PATH=$(PW_NODE_PATH) node scripts/print_document_playwright.js
gemini-ui-protocol:
python3 scripts/gemini_test_protocol.py --canvas-cmd "make export-canvas-guard-ui" --full-cmd "make full-ui"
gemini-benchmark:
python3 scripts/gemini_capability_benchmark.py
gemini-prompt-experiments:
python3 scripts/gemini_prompt_experiments.py
gemini-health:
python3 scripts/gemini_model_health.py
quality-dashboard:
python3 scripts/quality_dashboard.py
maintenance-audit:
python3 scripts/maintenance_audit.py
leave-better: validate
leave-better-ui: validate full-ui smoke-ui stress-layout-ui export-canvas-guard-ui print-document-ui maintenance-audit
validate: check-js check-py check-lines test maintenance-audit