thinkingboxmedia / static-web-starter-kit

MIT License
5 stars 4 forks source link

static-web-starter-kit

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

Features

Third-Party Dependencies

(HTML/CSS/JS/Images/etc)

Third-party dependencies are managed with Yarn

$ yarn add awesome-module -S

Generator

Generate new templated components with yarn 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:

Test

$ yarn run test

Build

$ yarn run build