mirror of
https://github.com/punkyard/obsidian-lindar.git
synced 2026-07-22 07:45:03 +00:00
- Project scaffold: manifest, package.json, tsconfig, esbuild config - Settings model with eventsFolder, defaultColor, motto - Shared types (LindarEvent, LindarSettings) - Date utilities (getDaysInMonth, getFirstDayOfWeek, week numbers, etc.) - Yearly horizontal calendar grid (12 month rows, weekday headers) - Sticky month labels, today highlight, weekend tinting - Week number display, horizontal scrolling, 96vh layout - Year navigation (prev/next buttons + year picker dropdown) - Customizable motto display - Light/dark theme support via Obsidian CSS variables
18 lines
637 B
JavaScript
18 lines
637 B
JavaScript
import { readFileSync, writeFileSync } from "fs";
|
|
|
|
const targetVersion = process.env.npm_package_version;
|
|
|
|
if (!targetVersion) {
|
|
throw new Error("npm_package_version is not available.");
|
|
}
|
|
|
|
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
|
|
const { minAppVersion } = manifest;
|
|
manifest.version = targetVersion;
|
|
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
|
|
|
|
const versions = JSON.parse(readFileSync("versions.json", "utf8"));
|
|
if (!Object.keys(versions).includes(targetVersion)) {
|
|
versions[targetVersion] = minAppVersion;
|
|
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
|
|
}
|