andreypopp / react-quickstart

[DEPRECATED] React project template with server-side UI rendering and routing
371 stars 47 forks source link

Replace node-dev for supervisor #6

Closed pieterv closed 10 years ago

pieterv commented 10 years ago

Supervisor watches a directory(s) rather than tracing dependencies via overloading node's require calls, consequently it has better compatibility with other modules which require modifying node's require calls such as node-jsx.

This setup will watch for any file changes within the project directory expect for "node_modules" changes.

andreypopp commented 10 years ago

Thanks, that works much better.

Though in the future I think it makes sense to execute a bundle made with browserify with vm module to provide isolation between requests. That way we can use watchify for watching for client code changes (even for server rendering).

pieterv commented 10 years ago

The bundle sounds like a good idea! I look forward to seeing it.