khy_admin/deploy-config.js

49 lines
1.2 KiB
JavaScript

/**
* Deploy Configuration for KHY Admin Dashboard
*
* This file contains configuration for deploying from the admin repository
* to the main KHY website repository.
*/
module.exports = {
// Default target paths (adjust these based on your setup)
targets: {
// If admin and main website are in the same parent directory
sibling: "../khy_website",
// If admin is in a subdirectory of the main website
parent: "../",
// Absolute path examples (uncomment and modify as needed)
// absolute: "/path/to/your/khy_website",
// absolute: "/Users/george/Documents/khy_website/khy_website",
},
// Which target to use by default
defaultTarget: "sibling",
// Files to copy from admin to main website
filesToCopy: [
{
source: "data/products.json",
target: "data/products.json",
description: "Product catalog data",
},
{
source: "assets/images",
target: "assets/images",
description: "Product images",
isDirectory: true,
},
],
// Required files that must exist in target directory
requiredTargetFiles: ["index.html", "data/products.json"],
// Backup settings
backup: {
enabled: true,
directory: "backups",
timestampFormat: "YYYY-MM-DD_HH-mm-ss",
},
};