# AccessiBit admin bundle — source

The source of `accessibit-admin.js` and `accessibit-admin.css` in the folder
above, the plugin's **AccessiBit** screens, and of what sits beside them:
`accessibit-fonts.css` with `fonts/`, `accessibit-fallback.css` and
`accessibit-logo.svg`. All of them were built from exactly this directory.

## Build

Node.js 22 or later.

    cd packages/site-admin
    npm install
    npm run build:wp

The bundle, its stylesheets, the fonts, the logo and
`THIRD-PARTY-NOTICES.txt` are written to
`packages/site-admin/dist/wp/`. `npm run check-types` type-checks the source.

The dependencies are pinned to the versions the shipped bundle was built with;
their own dependencies are resolved afresh, so a rebuild is equivalent rather
than byte-identical.

## Layout

The tree keeps the layout of AccessiBit's repository, so that its paths hold:

- `packages/site-admin/` — the screens (React), and `vite.wp.config.ts`, which builds them.
  `src/wp/` is the WordPress entry and adapters.
- `packages/types/` — the shared types and constants the screens use
  (`@accessibit/types`, resolved here by the build config).
- `apps/dashboard/src/app/dictionaries/` — the screens' English, Italian and
  Spanish copy, reduced to the parts they read.
- `apps/dashboard/public/` — the two typefaces (latin subset, with their
  licences) and the logo, which the build copies beside the bundle.

## Licence

Everything in this directory, the copy included, is GPL-2.0-or-later: see
`packages/site-admin/LICENSE` and `packages/types/LICENSE`. The third-party
packages compiled into the bundle keep their own licences, listed in
`THIRD-PARTY-NOTICES.txt` beside it.
