Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process.once("exit", function () {
nodemon.emit("SIGINT");
});
gulp.task('test_end_protractor', ['test_run_protractor'], function () {
nodemon.emit('quit');
});
function run(init) {
if (init) {
nodemon({
script: path.resolve(__dirname, "./dist/server/server.bundle.js")
}).on('log', function ({ colour }) {
console.log(colour);
});
} else {
nodemon.emit('restart');
}
}
const handleEntriesFolder = () => nodemon.emit('restart');
chokidarWatch(`${configUtils.projectRoot}/src/entries/*.js`)
process.once('exit', function () {
if (process.env.NODE_ENV !== 'production') {
const nodemon = require('nodemon');
nodemon.emit('SIGINT');
}
});
var restartNodemon = function () {
if (serverStarted) {
nodemon.emit('restart');
}
};
process.once('exit', () => {
nodemon.emit('SIGINT');
});
process.once("exit", function () {
nodemon.emit("SIGINT");
});
const processOnClose = () => {
nodemon.emit('quit');
process.exit();
started = false;
};