@baskerhq/localstage
v1.0.1-beta.7
Published
Local development server for Basker themes - CLI tool for theme development
Downloads
55
Maintainers
Readme
LocalStage
LocalStage is a local development server and CLI for Basker themes. Run a theme locally while using live data from a Basker CMS environment.
Install
npm install -g @baskerhq/localstageUsage
From a theme directory:
basker theme devUse a custom CMS URL:
BASKER_CMS_URL=https://example.com LOCALSTAGE_THEME_PATH=/path/to/theme basker theme devOpen http://localhost:9292 and sign in.
Theme Structure
your_theme/
├── layouts/
│ └── default.liquid
├── templates/
│ ├── page.liquid
│ ├── post.liquid
│ └── 404.liquid
├── snippets/
└── assets/Environment Variables
BASKER_CMS_URL- optional CMS base URLLOCALSTAGE_THEME_PATH- path to a theme directory
Commands
basker theme dev- start the local dev serverbasker theme check- validate theme structure
Troubleshooting
- Ensure your CMS URL is reachable and your account can access the target tenant.
- Verify the theme path exists and contains
layouts/andtemplates/.
