Development setup
There is no build step. The CLI is plain ES modules (bin/cli.mjs, src/*.mjs).
Set up
Section titled “Set up”git clone https://github.com/mindovermachine-dev/remote-astro-themecd remote-astro-themenpm installTry your changes in a content repo
Section titled “Try your changes in a content repo”Link the working copy into the repo that uses it:
# in remote-astro-themenpm link
# in the content reponpm link remote-astro-themeEdits are live on the next run. A later npm install in the content repo replaces the link, so link again afterwards.
Develop against a local theme
Section titled “Develop against a local theme”In the content repo’s steering config, point at the theme folder:
theme: "file:../my-theme",Change it back to a git reference before committing.
This documentation
Section titled “This documentation”These docs are built by the CLI itself:
npm run docs:devnpm run docs:buildThey use mom-doc-theme from its main branch. To test against a local copy, temporarily set theme: "file:../mom-doc-theme" in docs/site.config.mjs.
Checks
Section titled “Checks”npm run checkThis syntax-checks every source file.