-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathcreate-app.ts
More file actions
19 lines (18 loc) · 835 Bytes
/
create-app.ts
File metadata and controls
19 lines (18 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { createAppTaskCloneTemplate } from './create-app-task-clone-template'
import { createAppTaskInitializeGit } from './create-app-task-initialize-git'
import { createAppTaskInstallDependencies } from './create-app-task-install-dependencies'
import { createAppTaskRunInitScript } from './create-app-task-run-init-script'
import { GetArgsResult } from './get-args-result'
import { tasks } from './vendor/clack-tasks'
export async function createApp(args: GetArgsResult) {
return tasks([
// Clone the template to the target directory
createAppTaskCloneTemplate(args),
// Install the dependencies
createAppTaskInstallDependencies(args),
// Run the (optional) init script defined in package.json
createAppTaskRunInitScript(args),
// Initialize git repository
createAppTaskInitializeGit(args),
])
}