Skip to content

Getting started ​

EpiAwarePackageTools (the kit) writes and keeps in sync the CI, docs build, quality checks and AD-gradient harness for EpiAware Julia packages. This page is a quickstart for a maintainer adopting it. If your package already uses the kit, skip to Keeping a package in sync.

This site is generated by the kit

The navigation, theme, GitHub-stars widget, API reference, release notes page and home-page badges are what scaffold and update write for any package. See Infrastructure and template sync for how they stay current.

Adopting the kit ​

You need a package with a Project.toml and a src/ module. Add EpiAwarePackageTools to its test environment, then scaffold once:

julia
using EpiAwarePackageTools

scaffold(pkgdir(MyPackage))

# A non-numerical package without AD tests.
scaffold(pkgdir(MyTooling); ad = false)

# A package hosted outside the EpiAware org.
scaffold(pkgdir(MyPackage); org = "epiforecasts")

Managed files, such as CI callers, the docs build and QA wiring, are rewritten on every sync. Package-owned files, such as your tests, QA config, AD scenarios, LICENSE and docs pages, are written once and then yours to edit.

How org is kept

org sets the owner in every generated repo URL, so badges, docs and workflow links point at your repo. scaffold writes it into template-sync.yaml, which passes it to update on each sync.

Keeping a package in sync ​

update rewrites only the managed files and reports what changed. It is public but not exported, so that it cannot clash with a package's own update:

julia
EpiAwarePackageTools.update(pkgdir(MyPackage))

The scheduled template-sync workflow calls it, so kit changes reach every package. See Infrastructure and template sync.

Starting a fresh package ​

scaffold_generate writes a new Project.toml and module, then scaffolds it:

julia
scaffold_generate("path/to/NewPkg", "NewPkg")

Learning more ​