0.0.2 • Published 8 years ago
ureact v0.0.2
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')
}));