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

pubudu-test-package-2

v1.16.2

Published

[![CircleCI](https://circleci.com/gh/hipagesgroup/hui.svg?style=svg&circle-token=1727b4df0d3e933620cccb0bc334082f599322d6)](https://circleci.com/gh/hipagesgroup/hui) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic

Downloads

3

Readme

HUI

CircleCI semantic-release

A repo containing the hipages user interface.

This repo should be portable as a npm package into any hipages application.

It' based off bootstrap 4 and contains a collection of mixins and placeholders.

Live code

Here

First time adding HUI to an application?

  1. npm install hipagesgroup/hui

Voila!~

Developing some HUI components?

  1. yarn storybook to open the storybook and see your component
  2. Make those components 💪
  3. Test those components 😠

Deploying changes?

  1. Merge to master
  2. ... that's it.

Tests

To run tests,

yarn test

HUI now uses Jest as the test runner. As for the assertions both must and jest assertions can be used.

HUI uses a recursive test setup structure. Tests reside alongside the source files, in a __tests__ directory.

Jest configurations are done in the jest section of the package.json file. In addition, you can pass CLI arguments to the test command. For example, to run tests in watch mode,

yarn test --watch

Since HUI uses webpack, we can import cool stuff like css and svg to js. To avoid breaking tests due to these non-js stuff, we have used two transformers which are defined in the config/jest/ directory. These files are referenced from the jest configurations defined in the package.json file.

Any polyfills and dependent configurations can be done in the src/setupTests.js module. For example, we have setup the enzyme adaptor and match-media polyfill there.

Test coverage is also handled by jest. Coverage configs can be found in the package.json file. The interactive html coverage report will be output to the coverage/ directory.

Mocking can be done by both sinon and jest mocks (jest.fn).

The complete test setup is inspired by the create-react-app configs. See their docs for more details.

Structure: file and story

as we discussed (4/dec/2018)

presentational (pure styled components)
    - atoms
    - molecules
    - organisms
container ( styled components with plugins/functions )
    - molecules
    - organisms

Stories

We are actively attempting to move components and stories into the /packages directory and will be using Atomic Design as a means of categorising our components.

Tests must be exist in a relative __stories__ directory, similar to __tests__, where the filename should be in the format {component}.stories.js.

We have a few global stories, which make it easier to add new stories:

  • atoms
  • molecules
  • theme

Adding a new story

// Add `module` in to enable hot module reloading
storiesOf('Presentational.Molecules.Form', module).addWithJSX('Form', () => {

Knobs

We are using Knobs in order to dynamically control the state of our components in the storybook. Try to implement them in your stories as much as possible.

Release

  • use feat: or fix: in PR title, others will not trigger release
  • you will need at least one feat: or fix: commit

Be awesome and help contribute to this tool!