A front-end template that helps you build fast, modern mobile web apps. (IE9+) @see Web Starter Kit
NodeJS - use the installer (>=5.0.0).
- Install:
yarn
(https://yarnpkg.com/en/docs/install) - Run:
yarn run dev
- React / ES6 (https://babeljs.io/) / Webpack ♡
- Hot module replacement with webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware)
- Data flow with react-redux (https://github.com/rackt/react-redux)
- Routing with react-router-redux (https://github.com/rackt/react-router-redux)
- Code linting with ESLint (http://eslint.org)
(HTML/CSS/JS/Images/etc)
Third-party dependencies are managed with Yarn
$ yarn add awesome-module -S
Generate new templated components with yarn run generate
Adds a new stateless function component with the component name specified using the following structure:
/components
/ComponentName
ComponentName.js
ComponentName.css
Adds a new class component with the component name specified using the following structure:
/components
/ComponentName
ComponentName.js
ComponentName.css
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
.
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
$ yarn run test
$ yarn run build