Library for reusable UI components for Solidjs projects.
This library has as a dependency the @circutor/ui
library
To install this library run:
npm install @circutor/solid-ui @circutor/ui
Add the component in question to the /packages/circutor-solid-ui/src/index.ts
, e.g.: export * from './lib/card/Card';
.
To test the components, run npm run dev
, this will start the development environment inside the dev
directory, there, the components can be tested without building
To test the package in other projects without releasing a version of the library, run npm pack
after building it, this will create file called circutor-solid-ui-<version>.tar
, this file can be copied to the root of any project and installer by running npm i ./circutor-solid-ui-<version>.tar
Run npm run build
in the /packages/circutor-solid-ui
directory or npm run build -w @circutor/solid-ui
in the projects root.
Run npm run test
to execute the unit tests via Vitest.
Run npm run lint
to lint the project using ESLint.