portfolio/postbuild.js

54 lines
1.7 KiB
JavaScript

const Path = require("path");
const fs = require("fs");
fs.copyFile("./static/video/index0.ts", "./dist/index0.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index1.ts", "./dist/index1.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index2.ts", "./dist/index2.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index3.ts", "./dist/index3.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index4.ts", "./dist/index4.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index5.ts", "./dist/index5.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});
fs.copyFile("./static/video/index6.ts", "./dist/index6.ts", (err) => {
if (err) {
return console.error("Video segments were not copied! \n", err);
} else {
return console.error("Video segments successfully copied! \n");
}
});