Skip to content
proveuswrongPublic

About

The website of this organization.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Prove Us Wrong

Prove Us Wrong

Production Develop

The website of the organization: a static site built with Astro and served by Cloudflare Pages. ARCHITECTURE.md says what lives where.

Working on it

Node and Yarn are pinned in package.json. Install scripts are turned off in .yarnrc.yml; the build does not need them.

.yarnrc.yml also keeps Yarn from picking a version younger than its age gate. A pull request whose yarn.lock newly locks one anyway fails CI before anything is installed, and node test/lockfile-age.js origin/develop runs the same check locally. To adopt a version early on purpose, list it as an exact name@version under npmPreapprovedPackages and remove it once it clears the gate.

Command What it does
yarn install --immutable Installs exactly what yarn.lock pins
yarn develop Serves the site locally and rebuilds on change
yarn build Builds the site into public/
yarn test Builds a preview and a production build and checks each

The pages written in Markdown are in src/content/pages/. The address of each comes from its slug, and what search results and link previews say about it from its description.

Checking a build

yarn test builds the site twice, as a preview build and as a production build, and checks each against the contract in #69: the addresses, the rules for crawlers, the links, and how every page renders compared with test/reference.json.

When a change is meant to alter a page, the comparison fails and shows what differs. Run yarn reference after yarn test and commit the new test/reference.json with the change.

About

The website of this organization.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages