Repository navigation
Reduce dependencies - #1039
Open
paulrobertlloyd wants to merge 13 commits into
Open
Reduce dependencies#1039paulrobertlloyd wants to merge 13 commits into
paulrobertlloyd wants to merge 13 commits into
Conversation
Install VitePress and its markdown-it plugins from docs/package.json instead of the root workspace, so contributors and CI jobs that don’t build the documentation no longer install them.
Validate requests, responses and records against the lexicons bundled with @atproto/api instead of running a full PDS. Removes @atproto/pds and the native better-sqlite3 dependency from development installs.
…from a stack trace
Calculate only the theme colour’s hue on the server and derive variants using CSS relative colour syntax. Removes the color dependency.
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.
Removes, replaces or isolates dependencies that every install was paying for, without changing what Indiekit does.
Changes
Development tooling moved out of the workspace
docs/, installed only to build the documentation..github/release/and used only by the publish workflow.@atproto/api, instead of@atproto/dev-env(a full Bluesky server).eslint-import-resolver-node.Frontend assets prebuilt
@indiekit/frontendbundles its scripts and styles when it’s packed, and serves those files at runtime. esbuild, lightningcss and browser-only packages (easymde,@accessible-components/tag-input,microlighter) are now development dependencies.docs/development.md).Dependencies replaced
color: variants of the primary colour are now derived in CSS using relative colour syntax. Only the theme colour’s hue is calculated on the server.iso-639-1: replaced byIntl.DisplayNames.clean-stack: replaced bycleanStack()in@indiekit/error.bcrypt: replaced bybcryptjs, which has no native code and works with existingPASSWORD_SECRETvalues.Before and after
Fresh installs on Linux x64 (Node 24, npm 11):
mainnpm ci)npm ci --omit=dev)The docs project (VitePress) and the release tooling (Lerna-Lite) are now installed only when needed.
Changes in behaviour
themeColormust be a 3- or 6-digit hex colour, as documented. A missing or invalid value falls back to the default colour, and a warning is logged.Before merging
@indiekit/frontendon npm includesdist/app.jsanddist/app.css, and that the trusted-publishing upload worked with Lerna-Lite.