mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 23:19:26 +08:00
* feat: dynamic import plugin client * refactor: pm * chore: improve cli * feat: improve code * feat: update dependences * feat: hello plugin * fix: plugin.enabled * fix: test error * feat: improve code * feat: pm command * feat: add samples * fix: redirect * feat: transitions * feat: bookmark * feat: add pm script
22 lines
765 B
TypeScript
22 lines
765 B
TypeScript
import Application from '../application';
|
|
|
|
export function registerCli(app: Application) {
|
|
require('./console').default(app);
|
|
require('./db-auth').default(app);
|
|
require('./db-clean').default(app);
|
|
require('./db-sync').default(app);
|
|
require('./install').default(app);
|
|
require('./migrator').default(app);
|
|
require('./start').default(app);
|
|
require('./upgrade').default(app);
|
|
require('./pm').default(app);
|
|
|
|
// development only with @nocobase/cli
|
|
app.command('build').argument('[packages...]');
|
|
app.command('clean');
|
|
app.command('dev').usage('[options]').option('-p, --port [port]').option('--client').option('--server');
|
|
app.command('doc').argument('[cmd]', '', 'dev');
|
|
app.command('test').option('-c, --db-clean');
|
|
app.command('umi');
|
|
}
|