Node.js Restart
This module is designed to restart Node.js app in development mode, e.g. after compilation with Babel/TypeScript is complete.
How to Install
$ npm install restart --save-dev
How to Use
build/app.js
const express = ;const app = ; let count = 0; app; moduleexports = app;
server.js
if processenvNODE_ENV === 'production' // In a production environment launch the Node.js app directly. ; else // Otherwise, start building the app from source and // restart it upon new changes in the /build folder. const restart = ; const build = ; ;
$ node ./server
License
Copyright (c) 2018-present Kriasoft | MIT License