Giter VIP home page Giter VIP logo

react-workflow's Introduction

React Workflow

Features

  • Compilation with webpack
  • React and es6
  • Stylesheets can be CSS, LESS
  • Embedded resources like images or fonts use DataUrls if appropriate
  • Development
    • Development server
    • Use React hot reloader
  • Production
    • Minimized CSS and JavaScript
  • Separated webpack config file for dev and prod
  • Flux files structure
  • Use html-webpack-plugin, https://github.com/ampedandwired/html-webpack-plugin, generate the index.html automatically

Directory Layout

.
├── /build/                     # The folder for compiled output
├── /dist/                      # The folder for distributed files
├── /node_modules/              # 3rd-party libraries and utilities
├── /src/                       # The source code of the application
│   ├── /actions/               # Action creators that allow to trigger a dispatch to stores
│   ├── /components/            # React components
│   ├── /constants/             # Constants (action types etc.)
│   ├── /dispatcher/            # Flux dispatcher
│   ├── /stores/                # Stores contain the application state and logic
│   ├── /main.js                # Client-side startup script
│   └── /template.html          # Template html
│── package.json                # The list of 3rd party libraries and utilities
│── webpack.config.js           # Webpack configuration for bundling and optimization
└── webpack.prod.config.js      # Webpack configuration for production

Install

npm install

Dev

npm run dev

Production

npm run deploy

References

  1. React-webpack-cookbook, https://christianalfoni.github.io/react-webpack-cookbook/index.html
  2. html-webpack-plugin, https://github.com/ampedandwired/html-webpack-plugin
  3. React-hot-loader, http://gaearon.github.io/react-hot-loader/getstarted/

react-workflow's People

Contributors

chrishan17 avatar

Watchers

James Cloos 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.