@circutor/solid-ui
v2.5.0
Published
Circutor Solid UI components
Downloads
383
Keywords
Readme
@circutor/solid-ui
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
Development
Add the new component to the solid library
Add the component in question to the /packages/circutor-solid-ui/src/index.ts
, e.g.: export * from './lib/card/Card';
.
Testing components
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
Testing packages in other projects
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
Building
Run npm run build
in the /packages/circutor-solid-ui
directory or npm run build -w @circutor/solid-ui
in the projects root.
Running unit tests
Run npm run test
to execute the unit tests via Vitest.
Linting
Run npm run lint
to lint the project using ESLint.