UNPKG

549 BPlain TextView Raw
1import { Kernel } from '@tarojs/service'
2
3export default function init (kernel: Kernel, {
4 appPath,
5 projectName,
6 typescript,
7 templateSource,
8 clone,
9 template,
10 css,
11 isHelp
12}: {
13 appPath: string,
14 projectName?: string,
15 typescript?: boolean,
16 templateSource?: string,
17 clone?: boolean,
18 template?: string,
19 css?: string,
20 isHelp?: boolean
21}) {
22 kernel.run({
23 name: 'init',
24 opts: {
25 appPath,
26 projectName,
27 typescript,
28 templateSource,
29 clone,
30 template,
31 css,
32 isHelp
33 }
34 })
35}