overleaf/services/web/test/acceptance/getModuleTargets.js

13 lines
371 B
JavaScript
Raw Normal View History

// silence settings module
console.log = function () {}
const Settings = require('@overleaf/settings')
const MODULES = Settings.moduleImportSequence
const TARGET = process.argv.slice(2).pop() || 'test_acceptance'
if (TARGET === '--name-only') {
console.debug(MODULES.join('\n'))
} else {
console.debug(MODULES.map(name => `modules/${name}/${TARGET}`).join('\n'))
}