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.
@crate.io/crate-ui-components
Advanced tools
The `Create UI Components` is a collection of React components that are used in Crate React applications.
The Create UI Components
is a collection of React components that are
used in Crate React applications.
To install this UI library you have to run the following command:
yarn add @crate.io/crate-ui-components
Then, if you are using tailwind, edit your tailwind.config
file and
add the following:
...
content: [
...
'./node_modules/@crate.io/crate-ui-components/**/*.{js,jsx,ts,tsx}'
]
...
and edit your index.css to import library style:
@import '@crate.io/crate-ui-components/style.css';
Sometimes you need to be able to develop using the local version instead
of using a version published on npm. For this example we will use
crate-gc-admin
as an example project that needs to use this library
locally.
To be able to do this you need to have cloned the repositories in a structure like this:
your-work-directory/
├── ...
├── crate-gc-admin/ # Crate GC Admin
├── crate-ui-components/ # Crate UI Components Library
├── ...
Then you need to follow these steps:
crate-ui-components
run yarn link-local
crate-gc-admin
run yarn link-local-lib
In the crate-gc-admin
package.json
you should see this under
dependencies:
...
"dependencies": {
...,
"@crate.io/crate-ui-components": "link:../crate-ui-components",
...
},
...
This means that crate-gc-admin
is using the local build of the
crate-ui-components
library, instead of the one on NPM registry.
Everytime you are updating some components in crate-ui-components
library, you have to:
yarn build
of the crate-ui-components
librarycrate-gc-admin
browser page (there is no
hot-reload)When you have finished local development you have to:
yarn unlink-local-lib
in crate-gc-admin
. Pay attention that
this is installing the latest version of the crate-ui-components
published on NPM, so check the version.yarn unlink-local
in crate-ui-components
.This library uses
Install the required Node JS version to run the application.
For nvm users:
nvm use
Otherwise check the .nvmrc
file to see the current Node JS version
required and install using whichever method you prefer.
Install the required dependencies:
yarn install
Start the development server:
yarn start
To publish a new version of the library you need to
@crate.io
organization on npmgit checkout -b prefix/release-x.y.z
package.json
with the new versionCHANGES.md
with a new release sectiongit checkout master && git pull
yarn publish
(keep the version number you typed in previously)./devtools/create_tag.sh
This process can also be automated with a GitHub action.
FAQs
The `Create UI Components` is a collection of React components that are used in Crate React applications.
The npm package @crate.io/crate-ui-components receives a total of 3 weekly downloads. As such, @crate.io/crate-ui-components popularity was classified as not popular.
We found that @crate.io/crate-ui-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.