Giter Club home page Giter Club logo

react-typescript-boilerplate's Introduction

React TypeScript Webpack Starter

A very simple starter project for using React,TypeScript and Webpack.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

Note: Webpack is installed locally as recommended by the official Webpack documentation. It makes it easy to upgrade projects individually when breaking changes are introduced.

Once you have forked and cloned off the project. Install the project dependencies by running:

npm install

Development

We will utilise webpack-dev-server to run a dev server. It serves webpack projects and updates the browser automatically with any changes we make in our code.

You can run webpack-dev-server --mode development

Alternatively utilising our npm scripts inside our package.json

npm run dev

Production

You can run webpack --mode production or the below using our npm scripts.

npm run build

Built With

  • React - JavaScript library for building user interfaces.
  • TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript.
  • Webpack - App bundler for JavaScript.

Required for Webpack and TypeScript

Webpack Plugins

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Saurabh Pati - for his detailed tutorial on setting up React & TypeScript with Webpack

Additional Notes

  • Terser - used by Webpack for compiling for production recently rolled out a breaking change. As a temporary workaround, I've installed an earlier version of "terser": "^3.14.1" as this works. Read more on the issue here.

react-typescript-boilerplate's People

Contributors

grantbartlett avatar

Watchers

 avatar  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.