5.4.1
Install
Copy the private Lodestar repo into a repo of your own, install it and run it.
What you need
- Access to the repo. After you buy, accept the GitHub invite. Sales are not open yet.
- Node.js 22.18 or later.
- pnpm.
- Git.
Clone, do not fork
Clone the repo into a new repo of your own. Do not fork it. A fork of a private repo is deleted when your access ends.
git clone https://github.com/astronomic-dev/lodestar.git my-site
cd my-site
git remote remove origin
pnpm install
Then create an empty repo of your own, add it as origin and push:
git remote add origin <your repo URL>
git push -u origin main
Run it
pnpm dev
Open the address that Astro prints, usually http://localhost:4321.
The demo runs as it is, because its settings turn on sampleContent. That setting allows the demo’s [[fill in: …]] markers, and its placeholder addresses while SITE_URL is not your real address. Turn it off for your own site. The build then stops on each marker and placeholder address that is left, and lists them. See Settings.
Other commands
pnpm check # type-check
pnpm build # build the site into dist/, with the search index
pnpm preview # serve the build, to try search
pnpm test:units # the theme's unit tests
pnpm test:skins # check the accent colors and their contrast
pnpm test:adapter # build the selected source and check its content and pages
pnpm test:parity # build every content source and compare content and pages
pnpm test:no-emdash # check that a Markdown build needs no EmDash package
pnpm test:system # check the design system pages
Search works on the built site, not in pnpm dev. Run pnpm build, then pnpm preview.
Shared code
The shared code is in packages/. It is part of your repo, so you can change it as you need: the components and design tokens, the parts from the Pro package that Lodestar uses, the content sources, and the theme plumbing.
Next: Content.