Skip to content
/ lfgo Public

`pnpx lfgo you/repo-name folder-name` — A fast CLI tool to scaffold projects from template repositories.

Notifications You must be signed in to change notification settings

coreyward/lfgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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-app

Using 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-project

If 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:

  1. Clone the template repository (with --depth 1 for efficiency)
  2. Create a fresh git repository
  3. Update the package.json with your project name
  4. Create an initial commit
  5. Install dependencies with pnpm
  6. Display next steps

Available Presets

  • react - React + TypeScript + Vite Template

Installation

Use with pnpx (recommended)

No installation needed! Just run:

pnpx lfgo react my-project

Global Installation

pnpm add -g lfgo

Then use it anywhere:

lfgo react my-project

Adding 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

About

`pnpx lfgo you/repo-name folder-name` — A fast CLI tool to scaffold projects from template repositories.

Resources

Stars

Watchers

Forks