node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

ureact

WIP!

ureact

React development/production server & express middleware.

Install

npm install -g ureact
npm install --save ureact

Usage

CLI (TODO):

# builds and serves
ureact ./path/to/react/app
# live rebuild, live reload
NODE_ENV=development ureact ./path/to/react/app
# build only (dont start http server)
ureact --build ./path/to/react/app

Express middleware (WIP):

import express from 'express';
import path from 'path';
import ureact from 'ureact';
 
const app = express();
 
app.use(ureact({
  dir: path.join(__dirname, '../webui/src')
}));