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

Deprecated and removed

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

The process relies 100% on the github actions workflow and the changeset process. Once your PR or first commit is created, add a changeset file by running:

pnpm cs

Make sure to follow the instructions on screen and add a changelog message. Commit this file.

Merging the PR into the main branch will trigger a build action. This will open a new pull request with the build changes. Once the pull request is merged, the main branch needs to be merged into the release branch.

git checkout release
git fetch --all
git merge --ff-only origin/main
git push origin release

This will trigger a publication action and open yet another pull request. Once this PR is merged, the packages are published to npm.

The release commit made in the release branch now needs to be fast-forwarded to main and pushed to github.

git checkout main
git fetch --all
git merge --ff-only origin/release
git push origin main

Here's a diagram to help you understand the process:

PR → main ──────┐
                ↓
          [Build Action]
                │
                ↓
            New PR ──────┐
                         ↓
             Manually fast-forward main → release
                         │
                         ↓
                   [Publish Action]
                         │
                         ↓
                     New PR ──────┐
                                  ↓
                            [Publish to npm]
                                  │
                ┌─────────────────┘
    Manually fast-forward release → main

License

This package is part of the 288-toolkit collection, developed by Deux Huit Huit.

See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 5