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

@loophq/ui

v1.0.0-beta.29

Published

## Installation

Downloads

5,159

Readme

Loop UI

Installation

npm i -S @loophq/ui

Usage

Recommended

Components can be imported via named imports:

import { BaseCard } from '@loophq/ui;

To import all and register globally (not recommended), run this in your main.js:

import LoopComponents from '@loophq/ui';

app.use(LoopComponents);

Project setup

npm i

Compiles and hot-reloads docs for development

npm run dev

Creates index.js to export all components

npm run build-library

Compiles and minifies library index file for production

npm run build

Publishes a new version of the library

The package.json version must be updated before publishing a new version. The version number should be updated according to the SemVer versioning scheme.

npm publish

With a specific tag

npm publish --tag <tag>

Running Storybook

npm run storybook

Lints and fixes files (JS and CSS)

npm run lint:fix
npm run stylelint:fix

Run your unit tests

Run the entire suite of tests:

npm run test

Run a specific test file:

npm run test <MyTestName>

Using your local loophq/ui as a node module

If you'd like to test the implementation of a component while developing, you can do so with npm link.

In your design-system-2 directory, run:

npm run build-library && npm run build && npm link

In the directory of the project you wish to use the component library, run:

npm link @loophq/ui

Keep in mind, you'll have to rebuild (npm run build) for every change you make to the component library.

Releasing

Reach out to a frontend codeowner to help you through your first few deployments. Once you are completely comfortable with the process, you may create an IT Support request to be added to the loop npm organization, or continue to coordinate publishing with support from a codeowner.

  1. Figure out the version number this release will be. We follow SemVer, and the general rule of thumb is that if you're adding new components, bump the minor version, everything else should just bump the patch version. Major versions bumps are rare and should be a team decision. For updates to this repo while we're still in the process of migrating components, bump the number after -beta..

  2. Update the version number in package.json and commit this change on your feature branch. Every new component or component update should bump the version since we usually pin the @loophq/ui library version in repos where it is referenced.

  3. Your feature branch should be PRed into main and be approved by a peer before releasing. Once you are ready to release, merge the PR into main.

  4. On your machine, check out main (or if preferred, the branch you'd like to release). Compile and build the component library

    npm run build-library
    npm run build

    (Optional) Commit any file changes the build script made. This is not always necessary.

  5. Make sure you log in to npm in your terminal. Publish the library to npm.

    npm login
    npm publish

Documentation

https://loop-ui.netlify.app/?path=/docs/introduction--docs

The documentation is built using Storybook. Components should be documented in the src/stories directory. The documentation is automatically built and deployed to Netlify on every push to the main branch.