Skip to content

DeuxHuitHuit/288-toolkit

Repository files navigation

288 Toolkit

This is a collection of package that Deux Huit Huit uses to build websites. They are meant to be used with Svelte, Sveltekit and Craft CMS.

Packages

Development

Create a package

To easily create a package:

  • Install pnpm globally:
npm i -g pnpm
  • Clone the repo locally
git clone https://github.com/DeuxHuitHuit/288-toolkit
  • Create a new branch
git checkout -b <package-name>
  • Run the make-pkg script:
pnpm make-pkg

This will scaffold a basic workspace inside the packages folder.

Publish a package

  • Run pnpm build to build the packages.

  • Run pnpm changeset then follow the instructions. This will generate a new changeset.

  • Run pnpm changeset version. This will update changed packages versions and changelogs.

  • Commit everything and push to your branch. Once the branch is merged into main, the package will automatically get published to npm.