ericpainchaud-zz / React-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-boilerplate

experimental

A front-end template that helps you build fast, modern mobile web apps. (IE9+) @see Web Starter Kit

Installation

NodeJS - use the installer (>=5.0.0).

Getting Started

  • Install: npm install
  • Run: npm run dev

Features

Third-Party Dependencies

(HTML/CSS/JS/Images/etc)

Third-party dependencies are managed with npm

$ npm install --save awesome-module

Generator

Generate new templated components with npm run generate

Types

Component -> Stateless Function Component

Adds a new stateless function component with the component name specified using the following structure:

/components
    /ComponentName
        ComponentName.js
        ComponentName.css

Component -> ES6 Class Component

Adds a new class component with the component name specified using the following structure:

/components
    /ComponentName
        ComponentName.js
        ComponentName.css

Container -> ES6 Class Redux Container

Adds a new Redux-connected container class component with the component name specified using the following structure:

/containers
    /ComponentName
        ComponentName.js
        ComponentName.css
        componentNameActionTypes.js
        componentNameActions.js
        componentNameReducer.js

The component reducer will be automatically imported and added to the combineReducers root-reducer created in /store/reducers.js.

Options

The following options are available on all generated components:

  • Styles - will generate styles in ComponentName.css
  • F1 Animations - will generate F1 animations in ComponentNameF1States.js and ComponentNameF1Transitions.js

Test

$ npm run test

Build

$ npm run build

About

License:MIT License


Languages

Language:ApacheConf 58.5%Language:JavaScript 30.9%Language:CSS 6.2%Language:HTML 4.4%