Skip to content

ajcumine/typescript-react-starter

Repository files navigation

Typescript React Starter

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.

Development

Setup

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

Getting up and running

Run the development server with:

yarn start

The project will then be running on localhost:3000.

Linting, Typechecking, and Code Formatting

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.

Testing

This project is set up to use Jest. Run the tests with:

yarn test

Production Build

Build a static site for production use with:

yarn build

About

A base project for building Typescript & React projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published