Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@provetcloud/web-components
Advanced tools
This package includes Provet Cloud Design System Web Components
The component package found from packages/web-components
is built with Lit, a library for building Web Components. The component source code is written in TypeScript, with stylesheets written in CSS.
We use Docker to run automated tests in a consistent, stable environment across platforms. Docker requires one-time installation and setup.
On mac, if you use brew, then docker can be installed with the the following command:
brew install --cask docker
Alternatively, you can download docker directly from here: https://docs.docker.com/get-docker/
For detailed information on what docker is, what is does, how it works etc, please refer to their documentation.
Once docker is installed, run the following command in the components directory:
pnpm build:docker
This will create, install, and build all the necessary parts for running tests inside a docker container. The result of this process is cached, and will be used whenever tests are run.
NOTE: This should also be run whenever package.json
dependencies change.
Once this is complete, you can use the commands below to run tests in a docker container.
The following are the most commonly used commands during development:
pnpm start
- Compile components, start watching for changes, start local development server on port 3333.pnpm build
- Builds the project.pnpm test
- Run all tests once, including visual regression.INCLUDE_VISUAL_REGRESSION=false pnpm test
- Run all tests once, excluding visual regression.pnpm test -- [path/glob for test file]
- Run specific tests file. e.g. pnpm test -- **/Button.test.ts
pnpm test:watch
- Run all tests and watch for changes.pnpm test:capture
- Updates screenshot snapshots.The local development server started by pnpm start
serves a file located at /packages/web-components/demo/index.html
. Any local changes or new components are available on this page, so this can be used as a testing ground when developing.
Component usage examples are available via the dev server using the URL structure http://localhost:3333/[component]/[example]/
e.g. /button/basic/
. This is mapped to the file path /button/usage/basic.html
. These pages get reloaded on any change.
If you go to http://localhost:3333/
you get a listing of all components. Then, if you navigate to a component, you get a list of all the usage examples of that component.
It is possible to change the theme used in an example via a query string e.g. /button/basic?theme=provet-dark
. The possible theme values are:
provet
(default)provet-high-contrast
provet-dark
provet-dark-high-contrast
pnpm scaffold [component-name]
e.g.
pnpm scaffold date-picker
See license in LICENSE.md
Copyright © 2024 Nordhealth Ltd
FAQs
This package includes Provet Cloud Design System Web Components
We found that @provetcloud/web-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.