mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
* fix: client lib require wrapper * fix: bug * fix: add tsconfig.paths.json * fix: collection dir not exists * fix: improve... * fix: update yarn.lock * fix: db.sync * fix: bugs * fix: bugs * fix: bugs * fix: bugs && allow user custom build config * docs: user custom config docs * refactor: custom user build config * fix: bugs * fix: build plugin-client bug --------- Co-authored-by: chenos <chenlinxh@gmail.com>
22 lines
520 B
JavaScript
22 lines
520 B
JavaScript
const chalk = require('chalk');
|
|
const { Command } = require('commander');
|
|
const { run, isDev } = require('../util');
|
|
|
|
/**
|
|
*
|
|
* @param {Command} cli
|
|
*/
|
|
module.exports = (cli) => {
|
|
cli
|
|
.command('clean')
|
|
.allowUnknownOption()
|
|
.action(() => {
|
|
if (!isDev()) {
|
|
return;
|
|
}
|
|
run('rimraf', ['-rf', './storage/app-dev']);
|
|
run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist,node_modules}']);
|
|
run('rimraf', ['-rf', 'packages/*/@*/*/{lib,esm,es,dist,node_modules}']);
|
|
});
|
|
};
|