Skip to content

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets - #59

Open
hebypaul wants to merge 2 commits into
layer5io:masterfrom
hebypaul:feature/hebypaul/58
Open

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets#59
hebypaul wants to merge 2 commits into
layer5io:masterfrom
hebypaul:feature/hebypaul/58

Conversation

@hebypaul

Copy link
Copy Markdown

This PR migrates the repository template to use an npm-managed local version of hugo-extended. This establishes a highly reproducible local development environment for all new Layer5 projects generated from this template, eliminating the need for a global Hugo installation and preventing version mismatch issues.

Fixes #58

Notes for Reviewers
Key changes include:

  • package.json: Added hugo-extended as a dev dependency and introduced standard NPM scripts (dev:site, dev:serve, build:production, clean, etc.) to explicitly handle Hugo invocations.
  • Makefile: Added a check-deps target to validate npm and the local Hugo binary before execution. Rerouted existing targets (setup, site, build, clean) to trigger their respective NPM scripts.
  • Documentation: Updated README.md and CONTRIBUTING.md to remove references to global Hugo installation, emphasizing the unified make setup -> make site workflow for newcomers.
  • .gitignore: Added node_modules/, public/, and resources/ to properly ignore local dependency and build artifacts.

Signed commits

  • Yes, I signed my commits.

hebypaul added 2 commits June 20, 2026 05:44
This migrates the project to use an npm-managed version of Hugo extended, resolving global dependency issues and standardizing the build process. Fixes layer5io#58

Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
@hebypaul
hebypaul force-pushed the feature/hebypaul/58 branch from 8c4e463 to 5617223 Compare June 20, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets

1 participant