rbvea / react-typescript-boilerplate

Boilerplate project for setting up Typescript and React with Babel and Webpack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript + React + Webpack Boilerplate

Base project for setting up a frontend application using Typescript and React. Heavily based off of Dan Abromov's React Transform Boilerplate.

Prerequisites

  • Webpack npm install -g webpack
  • Typescript npm install -g typescript
  • Typescript Definition Manager (TSD) npm install -g tsd

Installation

  • npm install
  • tsd install

Running the Dev Server

After setting up the project, type npm start to start the Express dev server.

Compiling for production

To compile the Javascript bundle for production, use npm run build.

Todos

There's an open PR in DefinitelyTyped for ReactDOM that needs to be merged in (DefinitelyTyped/DefinitelyTyped#6228). You can edit the file manually (it's pretty small) after installing the definitions.

About

Boilerplate project for setting up Typescript and React with Babel and Webpack.


Languages

Language:JavaScript 78.0%Language:TypeScript 14.8%Language:HTML 7.3%