mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-23 16:59:17 +00:00
move nodejs folder to javascript
This commit is contained in:
14
javascript/scripts/copy-files.js
Normal file
14
javascript/scripts/copy-files.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
// Resolve the directory of this script
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
// Define paths relative to scripts/copy.js
|
||||
const src = path.resolve(__dirname, "../../resources/styles/main.css");
|
||||
const dest = path.resolve(__dirname, "../src/templates/main.css");
|
||||
|
||||
// Copy file
|
||||
fs.copyFileSync(src, dest);
|
||||
Reference in New Issue
Block a user