Repository navigation
Restore/add npm workspaces and simplify theme-deps install - #2645
Merged
Merged
Conversation
- Restores npm workspace for `docsy.dev` - Adds `theme` workspace - Makes `theme/package.json` the canonical manifest for Bootstrap and Font Awesome; removes root `dependencies` and `scripts/sync-theme-deps.mjs` (and its tests). - Adds `install:theme-deps` and wires it through repo `_postinstall` and `docsy.dev` postinstall so `theme/node_modules/` exists for Hugo mounts. - Drops `install:all`, the `docsy.dev` `_install-theme-deps` install-links hack, and `scripts/run-hugo.mjs`; relies on workspace hoisting for `hugo-extended` again. - Simplifies CI, Netlify, `make-site.sh`, `_gen-chroma-style.sh`, and `getHugoModules` to a single root `npm install` plus `npx hugo`. - Updates `tests/smoke.test.mjs` to use root `npm install` and the cloned repo’s `postinstall` for the non-module path.
8 of 9 tasks
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.
docsy.devas a workspace (following initial TOF work)themeworkspacemake-site.sh,_gen-chroma-style.sh, andgetHugoModulesto a single rootnpm installplusnpx hugo.theme/package.jsonthe canonical manifest for Bootstrap and Font Awesome; removes rootdependenciesandscripts/sync-theme-deps.mjs(and its tests).install:theme-depsand wires it through repo_postinstallanddocsy.devpostinstall sotheme/node_modules/exists for Hugo mounts.install:all, thedocsy.dev_install-theme-depsinstall-links hack, andscripts/run-hugo.mjs; relies on workspace hoisting forhugo-extendedagain.tests/smoke.test.mjsto use rootnpm installand the cloned repo’spostinstallfor the non-module path.