mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-27 03:02:50 +00:00
18 lines
358 B
TypeScript
18 lines
358 B
TypeScript
import nodemon = require('nodemon');
|
|
|
|
nodemon({
|
|
script: 'app.js',
|
|
ext: 'js json'
|
|
});
|
|
|
|
nodemon.on('start', () => {
|
|
console.log('App has started');
|
|
}).on('quit', () => {
|
|
console.log('App has quit');
|
|
process.exit();
|
|
}).on('restart', (files) => {
|
|
// $ExpectType string[] | undefined
|
|
files;
|
|
console.log('App restarted due to: ', files);
|
|
});
|