A base project for building Typescript & React projects.
This project is built from Create React App and edits it to add Typescript and CSS Module support.
This project uses nvm
so you can set your node version with:
nvm use
or set it manually to the version set in the .nvmrc
.
Install dependecies with:
yarn
Run the development server with:
yarn start
The project will then be running on localhost:3000.
This project uses eslint
, tslint
, and tsc
for linting and typechecking, as well as prettier
for code formatting.
Run eslint
with:
yarn eslint
Run tslint
with:
yarn tslint
Run tsc
with:
yarn tsc
Run all of these with:
yarn lint
Prettier code formatting will work out of the box with you editor configured to use .editorconfig
and format on save enabled.
This project is set up to use Jest. Run the tests with:
yarn test
Build a static site for production use with:
yarn build