FormKit Pro
FormKit Pro is a first party library of professional grade "synthetic" inputs for the FormKit form building framework. This growing list of inputs currently includes:
- Autocomplete
- Datepicker
- Dropdown
- Colorpicker
- Currency
- Mask
- Rating
- Repeater
- Slider
- Taglist
- Toggle
- Transfer List
Development
FormKit Pro has two development environments, a vite instance in the examples
directory and a nuxt instance in examples-nuxt
.
To run vite pnpm run dev
To run nuxt pnpm run dev-nuxt
Testing
FormKit Pro contains two testing frameworks: vitest and playwright. Tests are currently run against source code and not what is built.
To run vitests: pnpm test
.
To run playwright tests (have a dev server pointing to port 3000) and in a separate terminal run npx playwright test
.
CI
FormKit Pro runs Vitests and playwright in Github actions when pushes or releases are made on either the master
or next
branch. When pushing to any other branch, only vitests are run in the CI.
Publishing
In order to publish a new verison of FormKit Pro, use the command: pnpm run publish
. next
and dev
tags can be published on any non-master branch. In order to publish, you must have the appropriate npm authToken in your .npmrc
.