mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
build(copy-dist): copy over required folders/files from "public" folder
This commit is contained in:
parent
135101f57b
commit
af5e4ee3b5
@ -32,14 +32,25 @@ const copy = async () => {
|
||||
const filesToCopy = [
|
||||
"config-sample.ini",
|
||||
"./src/etapi/etapi.openapi.yaml",
|
||||
"./src/routes/api/openapi.json"
|
||||
"./src/routes/api/openapi.json",
|
||||
"./src/public/icon.png",
|
||||
"./src/public/manifest.webmanifest",
|
||||
"./src/public/robots.txt"
|
||||
];
|
||||
for (const file of filesToCopy) {
|
||||
log(`Copying ${file}`);
|
||||
await fs.copy(file, path.join(DEST_DIR, file));
|
||||
}
|
||||
|
||||
const dirsToCopy = ["images", "libraries", "translations", "db"];
|
||||
const dirsToCopy = [
|
||||
"images",
|
||||
"libraries",
|
||||
"translations",
|
||||
"db",
|
||||
"src/public/fonts",
|
||||
"src/public/stylesheets",
|
||||
"src/public/translations"
|
||||
];
|
||||
for (const dir of dirsToCopy) {
|
||||
log(`Copying ${dir}`);
|
||||
await fs.copy(dir, path.join(DEST_DIR, dir));
|
||||
|
Loading…
x
Reference in New Issue
Block a user