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

design-system-v1

v1.0.90

Published

Templating for websites

Downloads

18

Readme

Design System

Overview

This project contains re-usable React components that can be integrated into a web-app provided it supports React.

Components

This project provides the following re-usable components:

| Name | Purpose | Example | | ---------- | --------------------------------------------------------- | ----------------------------- | | Container | A simple container, which acts like Bootstraps .container | | | | HomePage1 | A template for a standard homepage | example | | HomePage2 | A template for a standard homepage | example | | HomePage3 | A template for a standard homepage | example | | HomePage4 | A template for a standard homepage | example | | Navigation | A template for a standard fixed-top navigation | example |

Styling

The SCSS files are stored in a 7-1 pattern (7 sub folders and 1 main SCSS file).

The SCSS files are compiled using node-sass.

Adding New Content

Adding a new component

To add a new React component:

  1. Add the component to the 'src/components' folder.
  2. Import and export your new component inside the index file ('src/components/index.js').
  3. Finally run the publish process mentioned below.

To add a new SCSS file:

  1. Add your new SCSS file to the 'src/scss' folder.
  2. Include your new SCSS file into the 'src/scss/main/scss' file at the end of the previously imported files^^.

^^ Order of your SCSS file matters as it will be compiled into a CSS file which may override your new CSS if not placed towards the end.

Build Process

The components in this project are built using Babel.

All generated artifacts are placed in a dist folder. The dist folder contains:

  • components - All transpiled React components that can be re-used.
  • scss - Re-usuable common SCSS files that can integrated into a webapp. By default all main pages (such as homepages, contact us, standard layout use pre-defined styles from the generated main.scss).

To publish components and SCSS (assuming you have bumped the version inside package.json):

$ npm publish

Useful Links

https://itnext.io/how-to-package-your-react-component-for-distribution-via-npm-d32d4bf71b4f

https://jasonwatmore.com/post/2018/04/14/react-npm-how-to-publish-a-react-component-to-npm

https://www.pluralsight.com/guides/publish-es6-react-modules-to-npm