(config = {}, cb)
| 16 | } |
| 17 | |
| 18 | function touchConfig(config = {}, cb) { |
| 19 | let json = JSON.stringify(config,function(key, val) { |
| 20 | if (typeof val === 'function') { |
| 21 | return val + ''; // implicitly `toString` it |
| 22 | } |
| 23 | return val; |
| 24 | }) |
| 25 | let content = `module.exports = ${json}`; |
| 26 | createFile(CONFIG_PATH, 'config.js', content); |
| 27 | } |
| 28 | |
| 29 | const sleep = time => new Promise(resolve => setTimeout(resolve, time)); |
| 30 |
nothing calls this directly
no test coverage detected
searching dependent graphs…