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

react-storybook-jsx-starter-kit

v1.0.4

Published

This project is to be used as a starter kit for building React component using Storybook and Rollup

Downloads

3

Readme

react-storybook-rollup-starter-kit

This project is to be used as a template/starter-kit for building React components library using Storybook to document the components and Rollup to build the library for consuption.

This project is bootstrapped with the following

Getting Started

In order to get started using the setup, download/pull/fork the repository and start building your components under /src/components. Each component you create should follow the same setup as per the <Button /> component, where each has:

  • .js file for the source code

  • .module.scss file for the scss

  • .spec.js file for the tests

  • stories.js file for including the storybook story for the docs

  • index.js file to export the component

  • src/components/inde.js file to include all components to be exported

The above configuration is needed to ensure both storybook and rollup are correctly executed.

Available Scripts

In the project directory, you can run:

yarn start and yarn storybook

Runs storybook. Open http://localhost:6006 to view it in the browser. The page will reload if you make component edits.

yarn lint

Runs airbnb linting config. Please refer to .eslintrc for more details in rules that are excluded/added from the initial Airbnb configuration, which can be found here

yarn test

Launches the test runner in the interactive watch mode. See the section about running tests for more information.

yarn build

Builds the component library using rollup. This runs a set of defined configurations under rollup.config.js file. The exports are built inside build folder which can be used to publish to npm ecosystem.

yarn build-storybook

Builds static files for storybook site. This is so it can be deployed as the docs source for the component library.

Next steps

It is left to the development team who is utilising this starter kit to:

  • Modify the project name in package.json to contain your library name and decide where the library will be hosted in the cloud and accordingly include the correct npm credentials/scope into the .npmrc (e.g hosting platoform: npmjs)

  • Decide on their releasing strategy and fully use the Semantic Versioning and adding corresponding trace of changes in the CHANGELOG.md file using the Keep a Changelog Method