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

styleguide-test

v2.3.1

Published

Test for Revolve Styleguide

Downloads

8

Readme

Revolve Clothing Style Guide

The style guide will provides examples and implementation details around patterns and components. You know, a style guide.

Developing

To develop on the style guide, run the following command:

npm i # must be done from a fresh clone, but should be done occasionally
npm start

Upon running this command, a new browser tab should open to the index of the style guide.

Building

To build out all the assets, run the following command:

npm i # if you just pulled, you should probably do an install
npm run build

Assets will be built within site and lib. Both are not being tracked since they house computer generated code.

Organization

The top level directories are as follows:

  • src: houses all the pages, templates, and assets
    • assets: houses SCSS, JS, and any client side templates
    • data: houses any data used for the examples
    • docs: houses documentation represented as markdown
    • materials: houses templates or the examples expressed as HTML
    • views: houses the pages within the examples
  • ui: houses assets and templates for shell of the style guide
    • assets: houses static assets for styling and interacting of the style guide ui
    • layouts: houses the layout the ui of the style guide, primarily includes templates used for rendering

This is different from the suggested fabricator structure. In contrast to the proposed structure. The idea is to have the source (the actual building blocks used for the style guide) and the ui (the part responsible for rendering the style guide) to be separated so there is no confusion upon editing. This also allows for introducing new themes or UI elements independent of the style guide. The source (or src) contains the living/breathing style guide independent of the UI. The reason these inner directories are contained within src is to maintain consistency across the different parts of the style guide. When opening up assets, materials, and views, there should be a direct mapping across the inner parts. The intention is to have an obvious convention when it comes to adding or updating parts of the style guide. This imposed structure also lends itself well if components come from a separate project, as assets could either consume or render independently.