Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukesheard/esbuild-scripts
An extremely fast create-react-app replacement.
https://github.com/lukesheard/esbuild-scripts
create-react-app react
Last synced: about 1 month ago
JSON representation
An extremely fast create-react-app replacement.
- Host: GitHub
- URL: https://github.com/lukesheard/esbuild-scripts
- Owner: LukeSheard
- Created: 2021-07-31T09:55:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T03:12:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-20T14:59:16.929Z (2 months ago)
- Topics: create-react-app, react
- Language: TypeScript
- Homepage:
- Size: 447 KB
- Stars: 85
- Watchers: 2
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Create Esbuild App / esbuild-scripts 🔥
An extremely fast create-react-app replacement.
---
[![Build](https://github.com/LukeSheard/esbuild-scripts/actions/workflows/node.js.yml/badge.svg)](https://github.com/LukeSheard/esbuild-scripts/actions/workflows/node.js.yml?query=branch%3Amain)
## What is it?
`create-esbuild-app` is a wrapper around `create-react-app` while `esbuild-scripts` is a `react-scripts` compatible CLI which can be dropped in as a replacement. They use the toolchain and development experience already provided by the Create React App ecosystem but provide an faster experience by abstracting esbuild as a bundler and using native esbuild plugins for speed.
`esbuild-scripts` in most cases should be a drop in replacement for `react-scripts`.
## Creating an App
```sh
yarn create @lukesheard/esbuild-app my-app
cd my-app
yarn start
```If you've previously installed `create-esbuild-app` globally you can run `yarn global remove create-esbuild-app` to remove it - this will ensure that you always use the latest version when creating a new app.
**Note:** The API of `create-esbuild-app` mirrors that of `create-react-app` but will default the template of a new app to _TypeScript_. However if you want to use a custom template you can do so
by supplying a `--template` argument like so```sh
yarn create @lukesheard/esbuild-app my-app --template my-template
```Supplying an empty template will default to the JavaScript template from `create-react-app`. This is because in most instances I've noticed users default to this template anyway - so I wanted to abstract this in a way which made it simple to pick convetional defaults.
For more documentation on creating an App refer to the [Create React App documentation](https://create-react-app.dev/docs/folder-structure).