A development environment for building and testing Lit Protocol Actions. This project provides a structured setup for creating, testing, and deploying Lit Actions with TypeScript support.
- Scaffold tools for quick project setup (via
npx create-la-app@latest
) - Support for multiple networks (datil-dev, datil-test, datil)
- Bun v1.2.2 or higher
- Node.js environment
- Clone the repository:
npx create-la-app@latest my-la-app
- Install dependencies:
bun install
- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
/_config/
- Configuration files (results from the initial setup via the cli)/my-app/
- Application code/my-lit-action/
- Contains Lit Action source code/la-utils/
- Utility functions for Lit Actions/dist/
- Lit Action code string output
bun run watch
- Start development server with hot reloading (save to trigger to run)bun run start
- Build the Lit Action and run your client appbun run build
- Build the Lit Actionbun run cli
- Run the CLI tool
The project uses Bun as the primary runtime environment. The development server watches for changes in the following directories:
./la-utils/
./my-lit-action/
./my-app/
When changes are detected, it automatically rebuilds and runs the application.
MIT License - see LICENSE for details.
We welcome contributions to improve this project! Just open a new PR!