This project demonstrates the evolution of a lightbulb as it grows in features and complexity. Each demo is accompanied with its corresponding state machine, which were created using the Stately Studio, and are executed using XState v5.
- Demo : https://smart-lightbulb-demo.vercel.app/
- State Machines : https://stately.ai/registry/editor/4930e058-cdd2-411a-b414-0cb922713a48
pnpm install
Installs the required dependencies for project development.
pnpm dev
Starts Vite dev server in the current directory and enters watch mode.
pnpm build
Builds the project and outputs to the ./dist
folder.
pnpm preview
Locally runs the production build from its ./dist
folder.
The project is configured with Vitest on a bare minimal setup, for demo purpose.
Only the first version of the smart lightbulb machine has tests, which were generated in most part by the Stately Studio.
pnpm test
Deployment is automated with Vercel.