fix: rename app entrypoints

This commit is contained in:
Mrugesh Mohapatra
2019-08-13 18:40:39 +05:30
parent 66e9582c98
commit 27d998271d
5 changed files with 3 additions and 10 deletions

View File

@ -0,0 +1,17 @@
const path = require('path');
const nodemon = require('nodemon');
nodemon({
ext: 'js json',
// --silent squashes an ELIFECYCLE error when the server exits
exec: 'npm run --silent babel-dev-server',
watch: path.resolve(__dirname, './server'),
spawn: true,
env: {
DEBUG: 'fcc*'
}
});
nodemon.on('restart', function nodemonRestart(files) {
console.log('App restarted due to: ', files);
});