This project is created using SvelteKit, Tailwind for styling, and pnpm for package management.
Take care to read all contributions guidelines before you begin!
- Learn how to contribute to open source.
- Follow a step-by-step guide to practice your first contribution.
- Locate an open issue on GitHub. Let us know you would like to volunteer.
- Optionally, you may coordinate efforts on the
#contributors
channel within Discord. - If the maintainers approves your request, you'll be assigned to the issue.
- Complete the work and submit a pull request and we'll review the changes.
NOTE: non-trivial PRs submitted without our prior consent will be denied. Repeat offenders will be banned.
Floating UI Svelte makes use of PNPM.
- Install PNPM on your local computer.
- Fork the repository via your preferred option.
- Use Git to clone the forked project to your local machine.
- Point your terminal at the project.
- Run
pnpm i
to install the required dependencies. - Run
pnpm dev
to start a local dev server.
The floating UI Svelte project is built using SvelteKit to handle both the documentation and library assets.
Path | Description |
---|---|
Documentation | Found in the /src/routes directory. |
Library | Found in the /src/lib directory. |
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 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.
Floating UI Svelte makes use of the following technology for improving the developer experience.
We use Prettier for code formatting and linting.
pnpm format
pnpm lint
Unit tests are handled via Vitest.
pnpm vitest