chore(cli): extract create-vant-cli-app package

This commit is contained in:
陈嘉涵
2020-01-16 18:02:34 +08:00
parent 62a1b39b2b
commit 5bb9a31e28
32 changed files with 2492 additions and 697 deletions
-15
View File
@@ -1,15 +0,0 @@
import { GENERATOR_DIR, CWD } from '../common/constant';
import { VantCliGenerator } from '../compiler/vant-cli-generator';
export async function create() {
const generator = new VantCliGenerator([], {
env: {
cwd: CWD
},
resolved: GENERATOR_DIR
});
return new Promise(resolve => {
generator.run(resolve);
});
}