create-la-app
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.
Features
- TypeScript support out of the box
- Built-in Lit Protocol integration
- Development environment with hot reloading
- Scaffold tools for quick project setup
- Support for multiple networks (datil-dev, datil-test, datil)
Prerequisites
- Bun v1.2.2 or higher
- Node.js environment
Installation
- Clone the repository:
npx create-la-app@latest my-la-app
- Install dependencies:
bun install
- Set up environment variables:
cp .env.example .env
Project Structure
/_config/
- Configuration files (Including your )/my-lit-action/
- Contains Lit Action source code/my-app/
- Application code/la-utils/
- Utility functions for Lit Actions/dist/
- Lit Action code string output
Available Scripts
bun run dev
- Start development server with hot reloadingbun run build
- Build the Lit Actionbun run cli
- Run the CLI tool
Development
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.
License
MIT License - see LICENSE for details.
Contributing
We welcome contributions to improve this project! Just open a new PR!