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

coterie-ui-library

v1.8.1

Published

`npm install coterie-ui-library`

Downloads

3,502

Readme

Coterie UI Library

npm install coterie-ui-library

Live Website

  • https://storybook-ui.coterieinsurancedev.com/

Component Progress

  • https://coterieinsurance.atlassian.net/wiki/spaces/FE/pages/61702161/Component+library+progress

How to contribute to the coterie UI library

  • Create a branch off of main
  • Push up desired changes
  • Create a PR into main
  • Add a major, minor, patch tag depending on the the changes made and semantic versioning
  • Ask for a review by someone on the front end team

Semantic Versioning

  • major use when you make incompatible API changes,
  • minor use when you add functionality in a backwards compatible manner
  • patch use when you make backwards compatible bug fixes.

Linking coterie UI library for local development

  1. in coterie-ui-library repo run: npm run dev (you may have to run as sudo).
  2. cd into project that is using coterie-ui-library and run npm link coterie-ui-library.
  3. You should now be able to use components in coterie-ui-library locally.
  4. Anytime you save in coterie-ui-library the package will rebuild and should refresh on the project side to show any changes.

Publishing a Pre-release version

If linking doesn't work (we're having issues at the time of writing this instruction set), you can publish a prerelease version and install it in an app to test changes/fixes.

  1. Run npm version prepatch --preid alpha to establish a pre-release version

  2. Run npm publish to publish to NPM (note: you'll need write access to publish; you may need to request this from the a senior dev on the team).

  3. From here, you can install that pre-release version in the app you want to test, e.g. Dashboard.

  4. If you need to create another prerelease version with new changes, you can run npm version prerelease and it will bump the alpha version, e.g. 0.1.0-alpha.0 to 0.1.0-alpha.1.

    • Then you'll have to run npm publish to push it to the registry, bump the version in the app you're testing in, and run npm install` in that app directory to see the changes.

Obviously, being able to symlink the local build of the coterie-ui-library into an app such as Dashboard is much more efficient, but this is another solution in the event there are issues with linking.

Running storybook locally

npm run storybook

Local Storybook website will be running on this url: http://localhost:6006/

Releases/Publishes

This repo uses auto to automatically publish new npn versions and releases when merged into main.

TODOs

  • [ ] Add a11y unit test for yes/no component
  • [ ] Add a11y plugin for storybook
  • [ ] Deploy storybook for public reference
  • [ ] pre commit local hook should run unit test before commit