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-cd

v0.1.73

Published

DS package

Downloads

5

Readme

CoinDesk Design System (Storybook)

Local setup

  1. Clone repo
git clone
  1. CD into the root of the repo and run:
yarn or npm install
  1. At the root of the project create .env file with two values:
NPM_TOKEN=<ALEX HAS TOKEN>
GH_TOKEN=<ALEX HAS TOKEN>
  1. To start local development run:
yarn storybook

and navigate to http://localhost:6006/

##Project structure

To have a better understanding of how everything works please look at docs here: Storybook

  • .storybook folder controls global setting: main.js it's like a project config and preview.js has global styles settings the public folder has some root files (Similar to how react-create-app works)

  • .github folder used to set up CI/CD with Netlify and Chromatic

  • src -> the most important folder where you add and modify files:

    • src/shared includes global styles to reuse within components (for example fonts, global styles, etc)
    • src/stories appear on the deployed side on the left rail in the "Example section" and can be re-worked
    • src/ -> all components under src folder are the most important, that what we include in the NPM package published to npmjs

Note: You can change this structure and move elements into separate folders from src, but keep imports in the main entry point which is src/index.js

Important: All files with .js extension is what we export to and NPM package, all files with .stories.js extension is what you see in the storybook portal

import * as styles from './shared/styles';
import * as global from './shared/global';
import * as animation from './shared/animation';
import * as icons from './shared/icons';

export { styles, global, animation, icons };

export * from './Avatar';
export * from './Badge';
export * from './Button';
export * from './Icon';
export * from './Link';

Branching strategy

If you want to create a new component or modify something:

  1. Create a separate branch from the "main"
  2. Add code changes, commit, push to a separate branch and create a pull request
  3. Navigate to a pull request and you should see something like that in the UI

Before merging approve a new PR's in the Chromatic UI

Once you merge PR to the main branch it will automatically update deployed Storybook portal here: https://coindesk-design-system.netlify.app/?path=/story/example-introduction--page

And publish a new NPM package version to npmjs: https://www.npmjs.com/package/design-system-cd

To use a correct version in the application run

npm install design-system-cd

To always use the latest version use @latest in the package.json of your application:

   "design-system-cd": "@latest"