source: node_modules/nodemon/lib/config/defaults.js@ 62b2964

finki-main main
Last change on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 979 bytes
Line 
1var ignoreRoot = require('ignore-by-default').directories();
2
3// default options for config.options
4const defaults = {
5 restartable: 'rs',
6 colours: true,
7 execMap: {
8 py: 'python',
9 rb: 'ruby',
10 ts: 'ts-node',
11 // more can be added here such as ls: lsc - but please ensure it's cross
12 // compatible with linux, mac and windows, or make the default.js
13 // dynamically append the `.cmd` for node based utilities
14 },
15 ignoreRoot: ignoreRoot.map((_) => `**/${_}/**`),
16 watch: ['*.*'],
17 stdin: true,
18 runOnChangeOnly: false,
19 verbose: false,
20 signal: 'SIGUSR2',
21 // 'stdout' refers to the default behaviour of a required nodemon's child,
22 // but also includes stderr. If this is false, data is still dispatched via
23 // nodemon.on('stdout/stderr')
24 stdout: true,
25 watchOptions: {},
26};
27
28const nodeOptions = process.env.NODE_OPTIONS || ''; // ?
29
30if (/--(loader|import)\b/.test(nodeOptions)) {
31 delete defaults.execMap.ts;
32}
33
34module.exports = defaults;
Note: See TracBrowser for help on using the repository browser.