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

deskbookers-shared-components

v1.5.6

Published

<p align="center"> <div width="206"> <h1>Deskbookers shared components</h1> </div> </p>

Downloads

3

Readme

Usage

Architecture

There are two main source folders

  • components contains self-contained components with its own css-module, test, source file and story.
  • styles contains the styleguide + shared variables that both styleguide and components should use.

This component library will be used by most of deskbookers projects. So to ensure sure ensure maximum quality and reliability, make sure to include tests for all components you create and be sure to cover all tests.

Tests are handled by Jest yarn test (snapshot testing is available to use) and there is code coverage available to use as well through yarn coverage.

Development

Previewing changes you made into this project will be done through react-storybook, you can run it by doing:

 $ yarn storybook

This will create a new dev server at localhost:9001 with hot-reload enabled.

Commit messages

Make sure you squash your PR before merging into master/develop following the next convention:

  <type>(<scope>): <subject>

Type

Must be one of the following:

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • chore: Changes to the build process or auxiliary tools and libraries such as documentation generation

Scope

The scope could be anything specifying place of the commit change. For example component, component, etc...

You can use * when the change affects more than a single scope.

Subject

The subject contains succinct description of the change:

  • use the imperative, present tense: "change" not "changed" nor "changes"
  • don't capitalize first letter
  • no dot (.) at the end

Build

Use yarn build to transpile the code into the dist folder. You'll end up with a components.js file and with a styleguide.css file which will contain all the styles of the components + the styleguide.

Please make sure to follow semver when updating the package.json:version field.

 Start with: 1.0.0
 Fix a bug? 1.0.1
 Add a feature? 1.1.0
 Backwards incompatible? 2.0.0

Recommended workflow

  Make changes
  Commit those changes
  Make sure your tests are passing
  Bump version in package.json
  `yarn changelog`
  Commit package.json and CHANGELOG.md files
  Tag
  Push

The reason why you should commit and tag after yarn changelog is that the CHANGELOG should be included in the new release, hence gitRawCommitsOpts.from defaults to the latest semver tag.