HAX The CLI
Rapidly build web components for the Web that work with HAX. HAX The Web's CLI tools empower you to rapidly..
- start making Lit based web components using the HAX design system and tools
Future state
- Create new HAX sites and administer them from the CLI
- Create new themes for HAXcms
- Interface w/ docs / AI agent on website
Usage
npx @haxtheweb/create
#or
npm init @haxtheweb
Windows problems?
Try setting a different cache path to load from npm config set cache C:\tmp\nodejs\npm-cache --global
Follow the prompts and let's HAX the Web together!
Web component
Step through answering basic install questions to build a HAX capable web component that works anywhere! Features:
- LitElement based
- DDDSuper class which adds our design system in
- Common conventions used to demonstrate and work with property binding
- Minor CSS variable inclusion for initial learning
HAX Site
Build a HAX site that can be published and transported anywhere. Your users might love it on the front end, now you get the simplicity of building on the CLI.
- Same HAX sites you can create via front end
- Templated files that work just like any HAX site
- End points baked in to do CLI commands for common endpoint operations like adding pages, deleting and editing.
- Ability to import via URL just like the front-end
- Theme development starting point to be able to build themes locally
- Primed to publish to gh-pages, vercel and more