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.
nodejs must be installed on the system.
Install dependencies:
npm install -g jsxhint grunt-cli
npm install
The following grunt tasks are exposed:
To simply build sources for development mode:
grunt build
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..
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.
This task runs a release and archives the production sources to a tar.gz archive:
grunt package
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