esbuild React CLI
Description
Quickly spin up barebones React project which compiles with esbuild for maximum speed. With optional choice of language (TypeScript or JavaScript) and package manager (NPM or Yarn).
Usage
$ npm install -g esbuild-react
$ esbuild-react COMMAND
running command...
$ esbuild-react (-v|--version|version)
esbuild-react/0.2.2 darwin-x64 node-v14.17.1
$ esbuild-react --help [COMMAND]
USAGE
$ esbuild-react COMMAND
...
Flags
-
language - pass language choice e.g.
npx esbuild-react demo -l=javascript
-
package manager - pass package manager choice e.g.
npx esbuild-react demo -p=yarn
Development
- Clone this repo
- Run
npm i
to install all dependencies - Run
./bin/run FOLDER_NAME
to try out locally build CLI
Publish
$ npm version (major|minor|patch) # bumps version, updates README, adds git tag
$ npm publish
Credits
Inspired by this article.