Skip to content

chore: use ecoindex_reference dependency instead of recreating the file - #507

Merged
bgatellier merged 2 commits into
mainfrom
refactor/file-generation
Nov 11, 2026
Merged

bgatellier merged 2 commits into
mainfrom
refactor/file-generation

Conversation

@bgatellier

@bgatellier bgatellier commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

This PR refactors the codebase to consume the ecoindex_reference data directly from its official npm package instead of maintaining manually synced local copies. Only JavaScript code is concerned (not the CSS)

Benefits

  • Single source of truth: Uses the canonical ecoindex_reference package
  • Reduced maintenance: No need to manually sync or regenerate reference files
  • Cleaner architecture: Removes code duplication and generated file management
  • Simpler workflow: bun run reference:sync now only updates CSS colors (the only file that still needs local generation)

@bgatellier bgatellier self-assigned this Nov 7, 2026
@bgatellier bgatellier added the dependencies Pull requests that update a dependency file label Nov 7, 2026
@bgatellier
bgatellier force-pushed the refactor/file-generation branch from e50f3a0 to 9c2f9e5 Compare November 7, 2026 13:48
@bgatellier

Copy link
Copy Markdown
Collaborator Author

Hi @vvatelot , I used the ecoindex_reference version from the main branch, as the color values waere not available in the latest release (1.0.2).

Is it possible to release a new version of this package with the color attributes? So I'll use this one instead of relying only on the most recent version (which could break at any time)

@bgatellier
bgatellier force-pushed the refactor/file-generation branch 2 times, most recently from 6aa417f to 7ef1eda Compare November 7, 2026 14:42
@vvatelot

vvatelot commented Nov 9, 2026

Copy link
Copy Markdown
Member

Hi @vvatelot , I used the ecoindex_reference version from the main branch, as the color values waere not available in the latest release (1.0.2).

Is it possible to release a new version of this package with the color attributes? So I'll use this one instead of relying only on the most recent version (which could break at any time)

Done. Created the release v1.1.0

@bgatellier
bgatellier marked this pull request as ready for review November 11, 2026 15:10
@bgatellier
bgatellier force-pushed the refactor/file-generation branch from 24eff64 to 0bc4856 Compare November 11, 2026 15:11
@bgatellier
bgatellier merged commit 2653705 into main Nov 11, 2026
4 checks passed
@bgatellier
bgatellier deleted the refactor/file-generation branch November 11, 2026 15:13
@bgatellier

Copy link
Copy Markdown
Collaborator Author

Hi @vvatelot , I used the ecoindex_reference version from the main branch, as the color values waere not available in the latest release (1.0.2).
Is it possible to release a new version of this package with the color attributes? So I'll use this one instead of relying only on the most recent version (which could break at any time)

Done. Created the release v1.1.0

I fixed the version using the sha1 of the 1.1.0 Git tag, until the package will be published to npmjs.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants