DATA-DOG / react-skeleton

Facebook React and Material-UI skeleton application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook react + material-ui skeleton

This is a basic setup for facebook react and material-ui skeleton application. Uses grunt for installation and packaging.

The source dependency tree is managed by browserify. Edit gruntfile based on your needs.

Installation

nodejs must be installed on the system.

Install dependencies:

npm install -g jsxhint grunt-cli
npm install

Grunt

The following grunt tasks are exposed:

Build

To simply build sources for development mode:

grunt build

Development

Run grunt in development mode, with watch and connect to serve it in a browser:

grunt

NOTE: export BROWSER environment variable if it cannot open the page..

Release

To build a release with minifications:

grunt release --env=production

NOTE: an environment can be specified to load <%= environment %>.json as configuration options for application can be related to web api base urls, websocket and such configuration. By default, development environment config is loaded.

eventify will process all src/app/*.jsx files and update process.env.ANY to the value of environment variable or option from <%= environment %>.json file.

Package

This task runs a release and archives the production sources to a tar.gz archive:

grunt package

Adapt to your project

Update git repository.

rm -r .git
git init
git remote add origin git@your:/repo/origin.git

Update package version and name:

vim package.json

About

Facebook React and Material-UI skeleton application.

License:MIT License


Languages

Language:JavaScript 80.6%Language:HTML 14.8%Language:CSS 4.6%