This repository is a basic setup of a react (16.10.x) application in Typescript, using Parcel to bundle. It uses Prettier and tslint-config-prettier for formatting and linting. Tests are configured using Jest and react-testing-library
$ git clone https://github.com/DanAlvares/react-typescript-parcel.git
$ cd react-typescript-parcel
$ npm i
$ npm start
Browse to localhost:1234
$ rm -rf .git
$ git init
$ git remote add origin <NEW_APP_REPO_URL.git>
$ git push -u origin master
$ npm run build
Output directory is /dist
. Destination is configurable in the package.json build
script.
This Project uses a pre-commit hook to format with prettier
and test the application.