Skip to content

Steve-Fenton/astro-accelerator

Repository files navigation

Astro Accelerator

Deploy and Test

Review the documentation at astro.stevefenton.co.uk

npm npm

Development principles

Astro Accelerator is designed for re-use. That means we have to be careful to ensure consumers of the Accelerator can easily style everything. The Accelerator ships with sensible defaults, but it should be possible to replace just about anything.

To make this possible...

  • Consider whether a change should be accompanied by a feature flag
  • Make sure SVG icons can be styled in CSS (stroke and fill shouldn't be hard-coded to a colour)
  • For drastic changes to a component, consider creating an alternate component instead
  • Update the documentation files with changes to help folks out

Image optimization on Linux

Currently, to run the image optimization on Linux, you need to force a compatible version of Sharp to be installed. Any suggestions for a better approach would be appreciated:

pnpm install --include=optional sharp
pnpm install --force @img/sharp-linux-x64

Publish to NPM

Update the package.json with the new version number, and commit the change with the message "Release n.n.n", for example, if the new version is 4.0.9 commit with: "Release 4.0.9".

The NPM token expires periodically and must be updated in GitHub settings -> Secrets -> Actions.

Upgrades