mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
407 B
JavaScript
18 lines
407 B
JavaScript
import rimraf from 'rimraf';
|
|
import process from 'process';
|
|
import webpackPaths from '../configs/webpack.paths';
|
|
|
|
const args = process.argv.slice(2);
|
|
const commandMap = {
|
|
dist: webpackPaths.distPath,
|
|
release: webpackPaths.releasePath,
|
|
dll: webpackPaths.dllPath,
|
|
};
|
|
|
|
args.forEach((x) => {
|
|
const pathToRemove = commandMap[x];
|
|
if (pathToRemove !== undefined) {
|
|
rimraf.sync(pathToRemove);
|
|
}
|
|
});
|