Commit 11047e9
committed
cleanup: remove dead vars, restore app.js build output for test compat
- Remove unused MILESTONES array in referral-program.js (declared, never read)
- Remove unused CATEGORIES array in community-showcase.js (filter labels
are hardcoded in HTML; JS never references the var)
- build.js now also writes app.js at repo root — 39 test files use
readFileSync('../app.js') + eval() inside jsdom. After the
modularisation to src/modules/*, app.js was removed, breaking the
entire legacy test suite. Writing the bundle to both dist/bundle.js
and app.js restores test infrastructure without rewriting tests.
- Add pretest script to auto-build before test runs
- Add app.js to .gitignore (build artifact)
- Rebuild dist/bundle.js1 parent 9a2c9f8 commit 11047e9
6 files changed
Lines changed: 11 additions & 9 deletions
File tree
- dist
- src/modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7371 | 7371 | | |
7372 | 7372 | | |
7373 | 7373 | | |
7374 | | - | |
7375 | | - | |
7376 | 7374 | | |
7377 | 7375 | | |
7378 | 7376 | | |
| |||
9366 | 9364 | | |
9367 | 9365 | | |
9368 | 9366 | | |
9369 | | - | |
9370 | | - | |
9371 | 9367 | | |
9372 | 9368 | | |
9373 | 9369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
0 commit comments