lfgo
v1.1.1
Published
Quick start CLI tool for project templates
Maintainers
Readme
Let’s Fuckin’ Go! (lfgo)
A fast CLI tool to scaffold projects from template repositories.
Usage
pnpx lfgo <preset|repo> <project-name>Using a preset
pnpx lfgo react my-awesome-appUsing any GitHub repo
You can also specify any GitHub repository:
# Using username/repo format
pnpx lfgo username/repo-name my-project
# Using full URL
pnpx lfgo https://github.com/username/repo-name my-projectIf the value doesn't match a known preset, the tool will ask you to confirm that you want to use it as a GitHub repo.
What it does
This will:
- Clone the template repository (with
--depth 1for efficiency) - Create a fresh git repository
- Update the
package.jsonwith your project name - Create an initial commit
- Install dependencies with
pnpm - Display next steps
Available Presets
react- React + TypeScript + Vite Template
Installation
Use with pnpx (recommended)
No installation needed! Just run:
pnpx lfgo react my-projectGlobal Installation
pnpm add -g lfgoThen use it anywhere:
lfgo react my-projectAdding New Presets
To add a new preset, edit bin/lfgo.js and add an entry to the PRESETS object:
const PRESETS = {
react: {
repo: "https://github.com/coreyward/quick-start-react-template",
name: "React + TypeScript + Vite Template",
},
// Add your new preset here
vue: {
repo: "https://github.com/yourusername/vue-template",
name: "Vue 3 Template",
},
};Requirements
- Node.js >= 18
- Git
- pnpm
License
MIT
