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

@wiremore/grid

v1.0.1

Published

Simply put: it's a grid. A dead simple mobile-first 12 column css grid with React components. Have a look at the Storybook for a preview: https://wiremore-grid.surge.sh/

Downloads

4

Readme

@wiremore/grid

Simply put: it's a grid. A dead simple mobile-first 12 column css grid with React components. Have a look at the Storybook for a preview: https://wiremore-grid.surge.sh/

Installation

yarn add @wiremore/grid

or

npm install @wiremore/grid

Usage

The grid has two named exports: Grid and Column. You can either import them from @wiremore/grid/es to import the pure ES modules or from @wiremore/grid to use the version that is pre-bundled as commonjs module with Webpack:

import React from 'react';
import { Grid, Column } from '@wiremore/grid/es';

const Example = () => (
  <Grid>
    <Column xs={12} sm={6}>
      First Column
    </Column>
    <Column xs={12} sm={6}>
      Second Column
    </Column>
  </Grid>
);

Out of the box the grid supports up to 5 different screen sizes (media.css). You can use them to specify the size of a column within the grid:

<Grid>
  <Column xs={12} sm={8} md={6} lg={4} xl={2}>…</Column>
</Grid>

All sizes "bubble up", meaning that all resolutions greater or equal to the one you specified inherit the size unless you overwrite them later. <Column xs={12} /> shows a full width column from the smallest (xs) to the highest resolution. <Column xs={12} md={6} /> turns into a half width column on medium (md) resolution viewports.

Contributing

This grid is developed using Storybook. Start Storybook via yarn start or npm start. You can preview all your changes there.

Commit messages

This project uses semantic-release and semantic-release-conventional-commits to automatically determine the next version number for new releases. By default every release is a patch release. Prefix your commit messages with minor: or feature: for new minor releases and major: or breaking: for new major releases. Have a look at .releaserc for more.

Creating a new release

When you're done you need to publish your changes to the npm registry. First commit all your work (no need to create a build since semantic-release will take care of it in the release process). That's necessary so semantic-release can determine the next version number based on commit messages.

You need to setup your machine to allow semantic-release to push the new release to Github on your behalf. Follow this instruction: Github Authentication

Once Github access is set up and after committing all your work, run:

yarn release

Precommit checks

All updated files in ./src are checked using ESLint and lint-staged. If there are linting errors your commit gets rejected. (You can bypass that check with the --no-verify flag but but I'd better not catch you doing it).