chore(root): Ensure development environment
This commit is contained in:
committed by
mrugesh mohapatra
parent
46a217d0a5
commit
dc00eb8555
13
api-server/development-entry.js
Normal file
13
api-server/development-entry.js
Normal file
@ -0,0 +1,13 @@
|
||||
const nodemon = require('nodemon');
|
||||
|
||||
nodemon({
|
||||
ext: 'js json',
|
||||
// --silent squashes an ELIFECYCLE error when the server exits
|
||||
exec: 'DEBUG=fcc* npm run --silent babel-dev-server',
|
||||
watch: './server',
|
||||
spawn: true
|
||||
});
|
||||
|
||||
nodemon.on('restart', function nodemonRestart(files) {
|
||||
console.log('App restarted due to: ', files);
|
||||
});
|
Reference in New Issue
Block a user