new-htmx-app
v1.0.20
Published
CLI tool for create-htmx-app.
Downloads
11
Readme
htmx App Generator
This is a command-line tool for generating a new htmx app. It simplifies the process of setting up a basic htmx application by cloning a predefined template repository and configuring it based on user preferences.
Installation
To use this tool, you need to have Node.js installed on your system. You can then install the new-htmx-app tool globally using npm:
bash
npm install -g new-htmx-app
Usage
Once installed, you can create a new htmx app by running the following command:
bash
npx new-htmx-app <app-name>
Replace with the desired name for your application.
Options
During the setup process, you will be prompted to choose from the following options:
Include Tailwind CSS via CDN: Choose whether to include Tailwind CSS via a Content Delivery Network (CDN).
Set up TypeScript: Choose whether to set up TypeScript for your project.
Example
Here's an example of how to create a new htmx app called "my-htmx-app"
bash
npx new-htmx-app my-htmx-app