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.
- @288-toolkit/dates
- @288-toolkit/format
- @288-toolkit/forms
- @288-toolkit/http
- @288-toolkit/i18n
- @288-toolkit/pagination
- @288-toolkit/slideshow
- @288-toolkit/timeout
- @288-toolkit/typed-context
- @288-toolkit/types
- @288-toolkit/ui
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.
-
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.