mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
This commit is contained in:
parent
a1a1e7e1e0
commit
0aaf88b852
39 changed files with 1 additions and 3 deletions
0
content/.gitkeep
Normal file
0
content/.gitkeep
Normal file
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
@ -162,7 +162,6 @@ yargs(hideBin(process.argv))
|
||||||
label: "Symlink an existing folder",
|
label: "Symlink an existing folder",
|
||||||
hint: "don't select this unless you know what you are doing!",
|
hint: "don't select this unless you know what you are doing!",
|
||||||
},
|
},
|
||||||
{ value: "keep", label: "Keep the existing files" },
|
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
@ -176,6 +175,7 @@ yargs(hideBin(process.argv))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await fs.promises.unlink(path.join(contentFolder, ".gitkeep"))
|
||||||
if (setupStrategy === "copy" || setupStrategy === "symlink") {
|
if (setupStrategy === "copy" || setupStrategy === "symlink") {
|
||||||
const originalFolder = escapePath(
|
const originalFolder = escapePath(
|
||||||
exitIfCancel(
|
exitIfCancel(
|
||||||
|
@ -205,8 +205,6 @@ yargs(hideBin(process.argv))
|
||||||
await fs.promises.symlink(originalFolder, contentFolder, "dir")
|
await fs.promises.symlink(originalFolder, contentFolder, "dir")
|
||||||
}
|
}
|
||||||
} else if (setupStrategy === "new") {
|
} else if (setupStrategy === "new") {
|
||||||
await rmContentFolder()
|
|
||||||
await fs.promises.mkdir(contentFolder)
|
|
||||||
await fs.promises.writeFile(
|
await fs.promises.writeFile(
|
||||||
path.join(contentFolder, "index.md"),
|
path.join(contentFolder, "index.md"),
|
||||||
`---
|
`---
|
||||||
|
|
Loading…
Reference in a new issue