Repository navigation
chore: הוספת knip ו-size-limit כסקריפטים מקומיים - #1060
Draft
Swissystem7 wants to merge 1 commit into
Draft
Swissystem7 wants to merge 1 commit into
Swissystem7 wants to merge 1 commit into
Conversation
Add knip 6.45.1 and size-limit 14.3.0 with @size-limit/file, plus knip.json and .size-limit.json suited to this static Pages app. No GitHub Actions workflow; run with npm run knip and npm run size.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Swissystem7
added a commit
that referenced
this pull request
Nov 14, 2026
…octor (supersedes #1060) (#1078) * chore: local madge circular-deps and asset-path checks * chore: one quality-check PR (knip + size-limit + madge + check:assets + check:html + doctor); narration paths now point to the existing .wav clips * chore: narration generator writes the .wav files the player expects; add check:sw, check:a11y-static, check:i18n to doctor --------- Co-authored-by: x <x@x>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
מה הכלים עושים
@size-limit/fileבודק שגודל הקבצים שמגיעים לדפדפן לא גדל מעבר לתקרה. אין כאן שלב build (האתר הוא Pages סטטי בלי Webpack/Vite), לכן נבחר preset הקובץ ולא@size-limit/preset-app.ההמלצה הגיעה משיחת «כלים» בג׳מיני, בין השאר בגלל ציון Lighthouse 77. אין שימוש בטוקנים של Copilot, ואין workflow חדש ב-GitHub Actions — דקות ה-Actions נשארות קפואות עד 1.12.
איך מריצים מקומית
מה נוסף ב-PR
knip@6.45.1,size-limit@14.3.0ו-@size-limit/file@14.3.0כ-devDependencies מדויקים, כולל עדכוןpackage-lock.jsonknipו-sizeב-package.jsonknip.jsonמותאם לאפליקציית UMD/IIFE: בדיקותnode --test, כליtools/,sw.js, והקובץsrc/data/struggleTopics.jsשנטען מה-HTML בלבדsrc/,test/,tools/).e2e/ו-pilot/הושארו בחוץ במכוון: ל-pilot ישpackage.jsonנפרד עם Playwright, ול-e2e ברמה הראשית אין תלויות ב-package.json של השורש.size-limit.jsonעם שתי תקרות לפי גודל Brotli שנמדד בפועל (ברירת המחדל של size-limit 14):index.html— תקרה 70 kB (נמדד 62.12 kB)src/**/*.js— תקרה 620 kB (נמדד 563.6 kB)ממצאים מההרצה המקומית
knip מדווח על 7 ייצואים שלא בשימוש ב-
src/lib/measurementConversion.js(ולכן יוצא עם קוד 1). לא מחקתי אותם ב-PR הזה:metersToCentimeterscentimetersToMillimetersrectanglePerimeterrectangleAreasquarePerimetersquareAreaexplainMeasurementלא נמצאו קבצים שלמים או תלויות מיותרות בהיקף שהוגדר.
size-limit עובר: 62.12 kB / 70 kB ל-
index.html, ו-563.6 kB / 620 kB לכלsrc/**/*.js(Brotli).ה-PR הזה הוא טיוטה ולא למיזוג עד לאישור.