This project utilizes PNPM Workspaces with the following structure:
├── packages/
│ └── floating-ui-svelte/ # Package
└── sites/
└── floating-ui-svelte.vercel.app/ # Documentation
- Fork and clone the repository
- Install dependencies:
pnpm i
- Start development:
pnpm build:watch
All pull requests should be created against the main
branch.
Please use the following naming convention when creating your pull request.
Branch | Role |
---|---|
docs/* |
Updates for the documentation site. |
feature/* |
When implementing a new feature. |
chore/* |
When implementing small changes. |
bugfix/* |
When implementing feature bugfixes. |
Keep branch names short and semantic, using dashes to separate words.
docs/getting-started-typo-fix
bugfix/fixed-use-floating-bug
Changesets are used to automatically generate the changelog for each release. Any contributions made to projects that live within the /lib
directory must contain a Changeset. Use the following instructions to generate a changeset.
- Make sure you're within local pull request feature branch.
- Navigate to the root of the project.
- Run
pnpm changeset
to trigger the Changeset CLI. - Follow the instructions when prompted.
- Changeset are added to the
/.changeset
directory. - Commit and push the new changeset file.
Changesets use semantic version. We recommend the following convention.
Version | Role |
---|---|
major |
Do not use. Reserved for maintainers. |
minor |
For notable changes, such as a new features. |
patch |
For small changes, such as a chore or typo. |
Changeset descriptions will appear verbatim on the Changelog. Keep it short, semantic, and prefix this like branch names.
---
'@skeletonlabs/floating-ui-svelte': minor
---
feat: Added a new useFoo hook.
Caution
Only add a changeset when the change affects the library, documentation changes for example will not require a changeset.
This project makes use of Biome, to run the formatter:
pnpm format
This project makes use of Vitest, to run the tests:
pnpm test
To test and watch:
pnpm test:watch
This project makes use of Svelte Package, to run the build:
pnpm build
To build and watch:
pnpm build:watch