Coder Social home page Coder Social logo

react-simple-boilerplate's Introduction

react-simple-boilerplate

A simple React starter boilerplate

Table of Contents

  1. Installation
  2. Developing
  3. Building
  4. Linting
  5. Dependencies

1. Installation

Install all the dependencies for the project.

npm install

2. Developing

Creates a bundle and a develop server with the app and hot reload.

It will create a linter watcher in es6 files.

npm start
open http://localhost:3000

3. Building

3.1 Normal build

The build process will generate the minified files for a production enviroment. These files will be saved into the build folder.

It will generate a .js file for the vendor libraries (installed as dependencies at the package.json) with vendor.[hash].js name.

The app .js file with app.[hash].js name.

And the styles with styles.[hash].css.

It will also generate the respective map file for each one.

npm run build

3.2 Building with stats

Building in this way, it will generate a stats.json file with webpack build details.

These files can be uploaded to webpack analyse tool for a more detailed visual info.

npm run stats

4. Linting

This boilerplate project includes React-friendly ESLint configuration.

npm run lint

5. Dependencies

react-simple-boilerplate's People

Contributors

asdelday avatar

Stargazers

Oriol Puig avatar Axel Taylor avatar

Watchers

 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.