Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function detectDemo() {
const files = await glob('src/*/*.demo.html');
let list = map(files, function(file) {
return file
.split('/')
.pop()
.replace('.demo.html', '');
});
each(list, function(modName) {
output[modName].demo = true;
});
}
async function detectBenchmark() {
const files = await glob('src/*/*benchmark.js');
let list = map(files, function(file) {
return file
.split('/')
.pop()
.replace('.benchmark.js', '');
});
each(list, function(modName) {
output[modName].benchmark = true;
});
}