Coder Social home page Coder Social logo

base-webpack-react's Introduction

Base React and Webpack App.

React + Webpack + TypeScript + Jest

Clean starting point for a basic React App using Webpack as a module bundler. Configured with Jest and Enzyme as testing tools. Supports TypeScript.

Starting a new project.

Just Fork the repo and Clone or download it. After that, you can start developing from src folder.

You'll find all the basic assets for developing a brand new App from scratch:

  • eslint, tslint and prettier already configured.
  • Support for js, jsx, ts and tsx files.
  • Support for css, sass and scss files.
  • Support for environment variables declared in a .env file.
  • Support for latest js proposals such as dynamic imports and static class properties.
  • Source mapping and Hot reloading in development mode.
  • Polyfills ready to use for most supported browsers.
  • Testing with Jest and Enzyme for both JavaScript and TypeScript.
  • Uglified and minified production code.
  • Separated bundles for js and css production build code.
  • Use of externals for React and ReactDOM, so production bundle size with the boilerplate example code is 90 bytes.
  • Webpack notifier for building processes.
  • Addition of Bundle analyzer plugin.

Building and running on localhost.

  • First install dependencies: npm install.
  • To run in hot module reloading mode (localhost:8080 by default): npm start.
  • To run all created tests inside the __tests__ folder: npm test
  • To create a production build: npm run build-prod.
  • To analyze the bundles size: npm run analyze.

Running

The production build created will be inside the dist folder, which is ignored by git as configured in .gitignore. To use it in and see the final result, just open the produced index.html file in your browser.

base-webpack-react's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

niko7o jprisan

base-webpack-react's Issues

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.