UNPKG

@edwardxyt/gws-cli

Version:

这是一个web脚手架工具,用于生成基于webpack5,生成typescript+react17+mobx5+reactRouter6的应用。初衷是要解决多入口,多环境。单独编译单独运行的脚手架。做到小而美。拒绝锦上添花。

11 lines (8 loc) 286 B
const debug = require("debug"); const echo = debug("compile:del"); const del = require("del"); del(["build", "dist", "cache", "temp"]).then(paths => { echo("删除文件及目录:"); paths.forEach(i => echo(i)); if (!paths.length) echo("没有需要删除的目录"); });