alexcorvi / react-typescript-boilerplate

TypeScript & React boilerplate for a better development experience

Repository from Github https://github.comalexcorvi/react-typescript-boilerplateRepository from Github https://github.comalexcorvi/react-typescript-boilerplate

React, MobX & TypeScript Boilerplate

Somewhat opinionated

This boilerplate assumes that you'll use Sass for styling and MobX for state management.

What's inside?

  • Sample temperature conversion component
  • MobX usage demonstration.
  • Styling components with Sass.
  • Webpack configuration:
    • TypeScript with ts-loader
    • SCSS withscss-loader (extracted in a separate file).
    • HTML with raw-loader (extracted in a separate file).
    • Production specific configurations.
  • TypeScript compiler configuration.
  • TSLint configuration.
  • Lite-Server, for auto reloading on update.

Usage

  • Build for production (will also run linting): npm run prod.
  • Build for development (will also run linting and watch files): npm run dev.
  • Only lint: npm run lint.
  • Serve the dist directory in lite-server: npm run serve.
  • Build for development and serve the dist directory: npm run start.

License

The MIT License.

About

TypeScript & React boilerplate for a better development experience

License:MIT License


Languages

Language:CSS 45.7%Language:TypeScript 41.2%Language:JavaScript 8.4%Language:Shell 2.4%Language:HTML 2.3%