Yes, like you see it, with this template you can develop React Apps with Typescript and ESbuid as modules bundler
First clone this repo git clone https://github.com/jleonardo007/react-esbuild-template-ts-version.git
then within the project's root directory you can run:
Installs the project's dependencies specifies in package.json.
This script runs as follow:
-
Creates a server through
esbuild.serve()
. This serves the bundled files at http://localhost:8080/serve/. -
Creates a development server that serves files at public folder then
index.html
consumes the files serve by http://localhost:8080/serve/. Development server runs at http://localhost:3000
Runs your tests files through Jest, you could specify a path or a regex that Jest runs your test against them eg: yarn test src/components/any-component/index.test.js
in this case Jest runs at this path only.
Creates an optimized bundle ready to be deployed.