5.5
New big and small scope sunset and sunrise simulation New calculations for the day tabs Added missing icons to simple view New record popups Week ahead description popups Camping profile Tweak to some of the indoor tems
This commit is contained in:
@@ -239,9 +239,30 @@ async function build() {
|
||||
// dashboard.html is copied as-is, not run through rewriteHTML - it is a
|
||||
// standalone page (inline CSS/JS, no #root) and has no use for the
|
||||
// Preact app bundle the other pages get.
|
||||
// secrets.local.php is deliberately NOT copied here - it's gitignored
|
||||
// per-environment config (DB creds, Stripe key). Copying the local dev
|
||||
// copy into dist/ and syncing dist/ to the VPS would overwrite the
|
||||
// live secrets file with local (127.0.0.1/root/blank) DB credentials.
|
||||
for (const f of ['robots.txt', 'sitemap.xml', 'og-image.png', 'favicon.svg', 'restore.php', 'track.php', 'stats.php',
|
||||
'verify-session.php', 'check-subscription.php', 'dev-unlock.php', 'secrets.local.php', 'dashboard.html',
|
||||
'assets/js/nav-account.js']) {
|
||||
'verify-session.php', 'check-subscription.php', 'dev-unlock.php', 'dashboard.html',
|
||||
'assets/js/nav-account.js', 'assets/about.css']) {
|
||||
const src = path.join(ROOT, f);
|
||||
if (fs.existsSync(src)) {
|
||||
copyFile(src, path.join(DIST, f));
|
||||
console.log(' -> ' + f);
|
||||
}
|
||||
}
|
||||
|
||||
// 8b. Copy the raw JS modules dashboard.html imports directly (it's not
|
||||
// run through esbuild like the Preact pages are, so its import chain -
|
||||
// compute.js -> physics.js/utils.js/config.js, plus the event calendars -
|
||||
// has to exist as real files under dist/assets/js/).
|
||||
console.log(' Copying dashboard JS modules...');
|
||||
for (const f of ['assets/js/compute.js', 'assets/js/physics.js', 'assets/js/config.js', 'assets/js/utils.js',
|
||||
'assets/js/events/cosmic-calendar.js', 'assets/js/events/almanac-calendar.js',
|
||||
'assets/js/events/calendar/2026.js', 'assets/js/events/calendar/2027.js',
|
||||
'assets/js/events/calendar/2028.js', 'assets/js/events/calendar/2029.js',
|
||||
'assets/js/events/calendar/2030.js']) {
|
||||
const src = path.join(ROOT, f);
|
||||
if (fs.existsSync(src)) {
|
||||
copyFile(src, path.join(DIST, f));
|
||||
|
||||
Reference in New Issue
Block a user