npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@solace-health/ui

v0.10.255

Published

<p align="center"> <a href="https://solace.health" target="_blank" align="center"> <img src="https://app.solace.health/static/icons/apple-touch-icon.png" width="200"> </a> <br /> </p>

Downloads

4,896

Readme

Official React Solace Component Library

Changelogs

Checkout the changelogs per release here!

Getting Started

Install the @solace-health/ui package

npm install @solace-health/ui

For Development

  1. Run npm i
  2. Run npm run storybook or npm run dev is you only need to run in watch mode

Use local package in external application

Using npm link

First, make sure the ui library and app you're working on are running the same Node version. If not, the app will select the version that matches, i.e. the one in its node_modules. Simply update .nvmrc in the ui library locally if needed and remember to not commit it unless needed.

In the UI library folder:

npm link

In the app folder:

npm link @solace-health/ui

Voila! Next will hot reload changes made in the ui library as long as it is running npm run dev.

🚨 If you are running into issues with dependencies Add a webpack alias if duplicate dependencies are causing issues. More info

const nextConfig = {
  // the rest of the config
  webpack: (config) => {
    const newConfig = {...config};

    newConfig.resolve.alias = {
      ...(config.resolve.alias || {}),
      "@emotion/react": path.resolve("./node_modules/@emotion/react"),
    };
    return newConfig;
  },
}

Using yalc

This legacy method is not as reliable but previously the only way to link the ui library with the app. If possible, try to use npm link first.

Install yalc globally

npm i yalc -g

Navigate to the solace-health-ui package

cd solace-health-ui

Publish package to yalc

npx yalc publish

Navigate to solace-health-app

cd solace-health-app

🚨 Before the next step, make sure solace-health-app is not currently running, otherwise you'll have to restart after linking

Link the local package to solace-health-app/solace-health-admin

npx yalc link @solace-health/ui

solace-health-app will now be using your local version of solace-health-ui. Hot reloading is not currently enabled so after every change to your local solace-health-ui, run the following command to see the changes reflected in the app.

🗒️ This command assumes that the application and solace-health-ui are within the same directory.

(cd ../solace-health-ui; npm run build && npx yalc publish;) && npx yalc update

Deploy to NPM

Simply cut a new release in github with an appropriate semantic version. There is a github action that will fire when it detects a new cut tag. From there it will build and deploy using the tag from github and mark it as latest. Once that is complete, the action will update the version in package.json. No need for any manual updates on the code side.

We use release drafter to scaffold the upcoming releases. You rarely will need to draft a new release manually.