Giter VIP home page Giter VIP logo

gulp-typescript-webpack-react-hotreload's Introduction

gulp-typescript-webpack-react-hotreload

This is a starter kit for a client side project that uses TypeScript and React at its core. The goal of this starter kit is to provide a foundation for a production ready application following the following criteria:

  • Fast development cycle
  • Production build

Stack

  • gulp
  • typescript
  • webpack
  • react
  • react-router
  • redux
  • redux-thunk
  • mocha
  • istanbul

Features

  • TypeScript
  • Auto TypeScript formatting
  • Lightning fast TypeScript compilation and bundling
  • Hot module reload
  • Correct line numbers reported in stack traces
  • Production assets build
  • Precompiled DLLs with external modules speed up application & test updates
  • Async route and component loading using Webpack:
    • Each page is a chunk
    • Vendor modules are in a separate DLL that is only built once
    • Development modules are in a separate DLL that is only built once
    • Components are in a separate chunk
  • Server side React testing with Mocha & JSDom
  • Code coverage reports using Istanbul for TypeScript files

Installation

git clone https://github.com/alexgorbatchev/gulp-typescript-webpack-react-hotreload
npm install
./node_modules/.bin/tsd install

Usage

gulp dev

gulp dev is the main command to start developing with the project.

  • Starts Webpack server on http://localhost:3000
  • Restarts Webpack server when configuration changes
  • Watches src folder for file changes and:
    • Reformats and lints TypeScript files
    • Compiles all .ts and .tsx into the build/src folder
    • Rebuild Webpack bundles into the build/public folder
    • Updates opened webpage with Hot Module Reload (HMR)
    • Run Mocha tests
    • Generates coverage report

License

MIT

gulp-typescript-webpack-react-hotreload's People

Contributors

alexgorbatchev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.