Skip to content

Conversation

@VAIBHAVSING
Copy link
Contributor

@VAIBHAVSING VAIBHAVSING commented Dec 23, 2025

closes #44

Summary

  • Replace JavaScript scripts with bash implementations
  • Create unified statue CLI that routes to subcommands
  • Maintain all existing functionality and npm script integration
  • Ensure consistent structure across all bash scripts

Changes

  • New: statue-cli.sh - Unified CLI with command routing
  • New: generate-seo-files.sh - Bash implementation of SEO file generation
  • New: run-pagefind.sh - Bash implementation of pagefind indexing
  • New: manage-templates.sh - Bash implementation of template management
  • Updated: package.json - Point bin and scripts to bash versions

Testing

All functionality tested and working:

  • statue init [--template <name>]
  • statue template list/load/save
  • statue seo
  • statue search
  • npm run postbuild
  • ✅ Full build pipeline

- Changed from relative path to postinstall.js to using npx statue-setup
- This works correctly when statue-ssg is installed as an npm package
- Leverages the existing 'statue-setup' bin entry in package.json
- Resolves module path issues in Docker test environment
@fredxfred
Copy link
Contributor

let's hold off/ice this PR for now. We are making a bunch of semantic changes to our existing scripts to support a better templating system

@VAIBHAVSING
Copy link
Contributor Author

@fredxfred
I think this is not needed right now
Closing this pr is best option

@VAIBHAVSING VAIBHAVSING closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace .js scripts/ with bash (mostly)

2 participants