* feat: create nocobase app with simple & quickstart option * chore: delete template file * create-nocobase-app: add env API_PORT fallback * chore: log * env default fallback * move config dir * change has yarn * chore: prettier * fix: npm running issue * database testing support sqlite * once... * chore: typo * fix: sqlite test * update readme * feat: copy .env.example to .env at create-nocobase-app * create-nocobase-app: change sqlite3 to github master * create-nocobase-app: .env template * create-nocobase-app: update .env * chore: typo * update README * chore: Application constructor * feat: sqlite demo data support * fix test * fix: application error * chore: plugin-client run sql * fix: application createCli * fix: can choose whether to register actions * chore: model compile error * fix: support sqlite * fix: demo data set index sequence on postgresql * chore: code reduce * fix: operators are compatible with sqlite * add impor demo option to init command * update env Co-authored-by: chenos <chenlinxh@gmail.com>
21 lines
353 B
TypeScript
Executable File
21 lines
353 B
TypeScript
Executable File
import { yargs } from '@umijs/utils';
|
|
import AppGenerator from './AppGenerator/AppGenerator';
|
|
|
|
export default async ({
|
|
cwd,
|
|
args,
|
|
tplContext
|
|
}: {
|
|
cwd: string;
|
|
args: yargs.Arguments;
|
|
tplContext: object
|
|
}) => {
|
|
const generator = new AppGenerator({
|
|
cwd,
|
|
args,
|
|
});
|
|
|
|
generator.setTplContext(tplContext);
|
|
await generator.run();
|
|
};
|