Quickly Clone Project Templates

Quickly Clone Project Templates

We're developers. We clone project templates from github. degit is available on the global scope for exactly this scenario.

let projectName = await arg("Name your project")
let targetDir = home("projects", projectName)
await degit(`https://github.com/sveltejs/template`).clone(
targetDir
)
edit(targetDir)
Discuss Post