1.2.4 • Published 11 months ago

create-cfg v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

create-cfg - CLI tool

This is an idea to built an scafolling CLI tool which helps you to run different templates for different projects. To Start an project you just need to run the command and it will ask you for the project name and the template you want to use. It will create basic setup for you with the template you selected.

Scaffolding Your First CFG Project

Compatibility Note: This requires Node.js version 18+, 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

With NPM:

$ npm create-cfg@latest

With Yarn:

$ yarn create-cfg@latest

With PNPM:

$ pnpm create-cfg@latest

With Bun:

$ bun create-cfg@latest

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a React + Custom Webpack project, run:

# npm 7+, extra double-dash is needed:
npm create-cfg@latest my-cfg-app -- --template react-webpack-ts

# yarn
yarn create-cfg@latest my-cfg-app --template react-webpack-ts

# pnpm
pnpm create-cfg@latest my-cfg-app --template react-webpack-ts

# Bun
bun create-cfg@latest my-cfg-app --template react-webpack-ts

Currently supported template presets include:

  • vanilla-vite
  • react-webpack-ts
  • react-vite-ts
  • react-cra

You can use . for the project name to scaffold in the current directory.

1.2.4

11 months ago

1.2.2

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago