Giter Club home page Giter Club logo

webpack-react-typescript-sandbox's Introduction

React / TypeScript App Boilerplate Setup βš›

With webpack, typescript, sass & jest πŸ‘

This is simply to save time for a front end build setup without the overhead of create react app.

It is highly configurable and provides a solid base to build projects off with the ability to do bundle splitting and async imports.

Testing is run through jest & enzyme which has been configured for TypeScript. Yahoo!

Install πŸ’Ύ

Requirements: node v 10^ & npm or yarn🚩

  • npm install or yarn to install dev & dependencies.
  • npm start to run the app in development mode.
  • npm build to build app in production mode.
  • npm run test runs jest.
  • npm run test:watch runs jest in watch mode and will watch files for changes re-running tests.

Modes: Development πŸ–₯ | Production πŸŽͺ

Development πŸ–₯

  • Setup to use webpack dev server.
  • Watches for changes of any TypeScript or scss file and will refesh app
  • Will only rebuild code written.

Production πŸŽͺ

  • Will build the entire app.
  • Vendor modules (node modules) are hashed and split from the dev written code, external modules will be cached on the users browser to prevent reloading modules which have no changed thus decreasing initial load times.
  • template.html can be written in to change title, add divs or whatever else is needed.

webpack-react-typescript-sandbox's People

Contributors

jamesbarford avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

abirismyname

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.