Welcome to the Litpack Project Generator! This CLI tool allows you to quickly scaffold new Lit.js projects using your preferred package manager.
You can easily create a new Litpack project using either of the following commands:
npm create litpack@latest <project-name>
npx create-litpack@latest <project-name>
Replace <project-name>
with the desired name for your project.
-
Run the Command:
To create a new project, simply execute the command with your project name. If you don't specify a project name, you'll be prompted to enter one.
-
Select a Package Manager:
During the setup process, you will be prompted to choose your preferred package manager from the following options:
- npm
- yarn
- pnpm
- bun
-
Project Initialization:
The tool will create a new directory for your project, clone the necessary repository, and update the
package.json
file with your project name.
Once your project is created, you can navigate into your project folder and run:
-
Clean the build directory:
<package-manager> run clean
-
Build the project:
<package-manager> run build
-
Start the development server:
<package-manager> start
This project is licensed under the MIT License. See the LICENSE file for details.