UNPKG

epmp-cli

Version:

A simple init for epm scaffolding projects.

18 lines (14 loc) 405 B
/** * 获得当前EPMP下所有模块 * @author zhaoyuu(zhaoyuu@yonyou.com) * @date 2019-01-24 19:10:34 */ const path = require('path'); const glob = require('glob'); const chalk = require('chalk'); let appsPath = path.resolve('.', 'epmp-apps/*/'); module.exports = () => { glob.sync(appsPath).forEach((_path) => { console.log(chalk.yellow.bold(`module : ${path.basename(_path)}`)); }); };