Simple Single-Page App (SPA) to view the Eskom load shedding schedule for a given zone and stage, for a range of supported South African cities. Schedules have been manually transformed into JSON files, which support varying blocks and schedule types (days of the week or days of the month).
The website is built using Vue, Buefy and Bulma, with Yarn as the package manager and Parcel as the bundler. and is hosted on Netlify.
There is also a series of Python scripts, running on an Azure VM, that scrape supported city websites to extract the current load shedding stage (where available).
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
npm install
npm run dev
npm run build