React-Redux-Typescript Boilerplate
A simple Boilerplate to get started with building a react-redux-typescript project.
Important files
- tsconfig.json
Typescript configuration. The Root directory is set to
src
while the output directory islib
. - webpack.config.js
Webpack configuration. Source Maps have been enabled. The
html-webpack-plugin
is configured to accept theindex.ejs
template and generate theindex.html
withbundle.js
in the output folder i.e.dist
folder. The loaders that have been configured includetslint-loader
for linting.react-hot-loader/webpack
andts-loader
for.tsx
files.style-loader
andcss-loader
for.css
files.url-loader
for font and image files.json-loader
for json files. The configuration also includes the configuration for thewebpack-dev-server
.
- package.json
Contains a
start
script which runs the dev server.
How to run
- Clone the repository.
- Inside the repository run
npm install
andtypings install
. - Run
npm start
.