-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·30 lines (19 loc) · 791 Bytes
/
Copy pathindex.js
File metadata and controls
executable file
·30 lines (19 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env node
// @libs
import chalk from "chalk";
// @local
import templateMappings from "./templateMappings.js";
import getTargetTemplateWithArgs from "./utils/getTargetTemplateWithArgs.js";
import copyCodebase from "./utils/copyCodebase.js";
import runInit from "./utils/runInit.js";
async function init() {
console.log("Easily create a clean codebase!")
const targetTemplate = await getTargetTemplateWithArgs(templateMappings);
console.log("Generating codebase...");
await copyCodebase(targetTemplate.path + "/codebase", "./codebase/");
console.log("Finished generating codebase");
console.log("Running init script...");
await runInit(targetTemplate.path + "/init.js", "./codebase/", targetTemplate.args);
console.log("Project setup finished!");
}
init();