OmkarK45 / react-typescript-scaffold

Opinionated React 17 Boilerplate with Typescript, Webpack 5, TailwindCSS, Fast Refresh, DotENV, Pre commit hook Support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imgur

React 17 with Typescript

This boilerplate is based on Altafino's React Template https://github.com/altafino/react-webpack-5-tailwind-2 I have modified it to add support for Typescript, TailwindCSS, Webpack 5

Features

  • React 17
  • Typescript with strict type checks enabled
  • Path aliases for importing files
  • Latest TailwindCSS with JIT support
  • ESLint
  • Husky Pre-commit Hook
  • Multi environment support
  • SVG Support

Acknowledgements

License

MIT

Installation

Recommended NodeJS version >= 12.x.x

  git clone https://github.com/OmkarK45/react-typescript-scaffold myapp
  cd myapp
  yarn

Run locally

  yarn start

Deploy/Build Command

  yarn build

Creates an optimized build.

Environment Variables

This scaffold support Environment supports out of the box

For development Environment variables, create .env.development file at the root of folder.

For production build, create .env.production file at the root of folder

About

Opinionated React 17 Boilerplate with Typescript, Webpack 5, TailwindCSS, Fast Refresh, DotENV, Pre commit hook Support


Languages

Language:JavaScript 85.5%Language:HTML 7.4%Language:TypeScript 4.9%Language:CSS 2.2%