Problem
index.html loads 17 scripts in strict dependency order. A misordered <script> tag causes silent failures (classes undefined, mixins load before App exists). There's no automated check. The CLI (cli.js) and test runner (test/run.js) replicate the load order manually — if a file is added to js/ but not to these lists, it's silently excluded.
Plan
Add a small Node script scripts/check-load-order.js that:
- Parses
<script src="js/..."> tags from index.html in order
- Lists all
js/*.js files on disk
- Reports:
- Files on disk NOT in
index.html (unused or forgotten)
- Files in
index.html NOT on disk (broken links)
- Mixin scripts that come before
app.js (load-order violation)
- Duplicate
<script> tags
Run as a pre-test or CI step:
node scripts/check-load-order.js
# Exit 1 if violations found
Effort
~1 hour. New file only. ~40 lines of Node.js.
Problem
index.htmlloads 17 scripts in strict dependency order. A misordered<script>tag causes silent failures (classes undefined, mixins load beforeAppexists). There's no automated check. The CLI (cli.js) and test runner (test/run.js) replicate the load order manually — if a file is added tojs/but not to these lists, it's silently excluded.Plan
Add a small Node script
scripts/check-load-order.jsthat:<script src="js/...">tags fromindex.htmlin orderjs/*.jsfiles on diskindex.html(unused or forgotten)index.htmlNOT on disk (broken links)app.js(load-order violation)<script>tagsRun as a pre-test or CI step:
node scripts/check-load-order.js # Exit 1 if violations foundEffort
~1 hour. New file only. ~40 lines of Node.js.