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

@lumere/lumere-ui

v0.7.2

Published

A collection of Vue components/directives and JavaScript utilities

Downloads

718

Readme

lumere-ui

Lumere's reusable component library and utilities.

Getting Started

Installation

To install dependencies, run:

npm ci

This will delete your node_modules folder if it exists for a clean state, and install dependencies according the package-lock file. It will also not add unnecessary/unintended changes to the lock file.

If you need to install new dependencies or want changes to the lock file, run:

npm install

Running Storybook

We use Storybook as living documentation to view our components and their various states. We also use Storybook to develop components in isolation.

To run:

npm run storybook

This will open up Storybook on localhost:6006

Running Tests

Unit Tests

We use Vitest for our tests. By default, when you push your code to Gitlab, the tests will automatically run.

To manually run all the tests:

npm run test

Contributing

Commits

We use Conventional commits to verify that commits are structured in a particular way. This allows us to keep an organized and meaningful git history.

Each commit should follow this basic sturcture:

type(scope?): subject

optional body

optional footer
  • The type describes the category of the change
    • The most important and common types are feat and fix as they distinguish between new features and corrections
      • feat correlates with MINOR semantic versioning
      • fix correlates with PATCH semantic versioning
    • Other commonly used types are chore, docs, and test
  • The scope describes the module or component affected by the changed
  • The subject gives a brief description of the change
    • Good practices to follow for the subject:
      • Start the description with an active verb such as undo or add
      • Avoid repeating information from the type and scope
    • If further explanation is needed, describe the details of the change in the body of the commit

Example:

feat(VTagBar): add disabled prop

This allows the consumer to have more configurable control

To indicate a Breaking Change, include BREAKING CHANGE at the footer of the commit message and/or a ! after the type/scope - This will correlate with MAJOR semantic versioning

Example:

fix(Button)!: change disabled prop to required

BREAKING CHANGE: the disabled prop is now used for determining which event to emit

Tree shaking

We should aim to allow any new code we add to be tree shakeable. If in doubt, refer to the consumer directory for instructions and a ready made build process for testing tree shaking.

Styles

The component should not have references to any internal website classnames (prevent leakage), and any component styles should be within a scoped styled block.

Also when styling a component, be sure that it utilizes variables for colors, spacing, font-sizes where possible. This will help the components maintain a cohesive UI.

Example:

<style lang="scss" scoped>
    @import '@design/index.scss';
    /* This imports the variables and mixins into this component */

    /* Add the rest of the component styles */
</style>

If a class is written more than 3 times to style a particular component (such as adding a muted color to an h1 tag), it should probably discussed with the team to make it/incorporate it into a reusable component.

Consumption

To use in your own project, install the libary via npm

npm install --save @lumere/lumere-ui

Then, in the import the components you wish to use from the library

import { VTagBar } from '@lumere/lumere-ui';

Styles

Pre-requisites

You will need to include tags for the following libraries in your app:

  • Bootstrap3
  • Glyphicons
  • Iconic
  • Graphik

We also rely on Bootstrap 3 for some of our css classes. Because the output of Bootstrap 3 customizer is CSS (and not SCSS), it is not overwritable.