@dytsou/calendar-build
v1.1.1
Published
Build script for calendar HTML from template and environment variables
Readme
Calendar App
A simple calendar application that displays multiple Google Calendars in a single view.
Setup
Copy
.env.exampleto.env:cp .env.example .envEdit
.envand add your calendar sources (comma-separated):CALENDAR_SOURCES=calendar1,calendar2,calendar3Build the HTML file:
# Option 1: Using npm/pnpm (after installing) pnpm install pnpm run build # or use the global command if installed globally calendar-build # Option 2: Direct execution node build.jsOpen
index.htmlin your browser.
Install Package
This package is published to both registries:
- npmjs.com: https://www.npmjs.com/package/@dytsou/calendar-build
- GitHub Packages: https://github.com/dytsou/cal/packages
Installation from npmjs (Default - Recommended)
Global installation:
npm install -g @dytsou/calendar-build
# or
pnpm install -g @dytsou/calendar-buildThen use anywhere:
calendar-buildLocal installation:
npm install @dytsou/calendar-build
# or
pnpm install @dytsou/calendar-buildThen use:
npx calendar-build
# or
pnpm run buildInstallation from GitHub Packages
If you prefer to install from GitHub Packages:
1. Setup GitHub Packages Authentication
Create or edit .npmrc file in your home directory:
@dytsou:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN2. Get your GitHub token:
- Go to https://github.com/settings/tokens
- Click "Generate new token" → "Generate new token (classic)"
- Select
read:packagespermission - Copy the token and replace
YOUR_GITHUB_TOKENin.npmrc
3. Install:
npm install -g @dytsou/calendar-build
# or
pnpm install -g @dytsou/calendar-buildDevelopment
index.html.template- Template file with placeholder for calendar sourcesbuild.js- Build script that injects calendar sources from.env.env- Local environment file (not committed to git).env.example- Example environment file template
