优化工程构建脚本
This commit is contained in:
@@ -39,6 +39,7 @@ const chalkTag = {
|
|||||||
* 遍历应用的方法
|
* 遍历应用的方法
|
||||||
*/
|
*/
|
||||||
const findApp = (dir, cb) => {
|
const findApp = (dir, cb) => {
|
||||||
|
fsExtra.ensureDirSync(dir)
|
||||||
return readdir(dir).then(apps => {
|
return readdir(dir).then(apps => {
|
||||||
return Promise.all(apps.map(e => {
|
return Promise.all(apps.map(e => {
|
||||||
let cPath = path.join(dir, e)
|
let cPath = path.join(dir, e)
|
||||||
|
|||||||
Reference in New Issue
Block a user