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-create-library

v1.0.9

Published

CLI tools to generate boilerplate to create component based library

Downloads

26

Readme

react-create-library

Command Line tool to generate boilerplate for your react library.

Create React Library with no build configuration.

react-create-library

Features

  • User friendly CLI Interface
  • Handles all modern JS features
  • Bundles cjs, esnext, umd and es module formats
  • Support for TypeScript and flow type System
  • Support for documentation library like docz, storybook and react-styleguidist
  • Support for different styling like css, less, scss, emotion and styled-component
  • Standard-version for manage versioning and CHANGELOG generation
  • Prettier, Eslint & Stylelint added to maintain the code quality & readability.
  • Rollup for bundling & sourcemap generation
  • Babel for transpiling
  • Jest for testing
  • Working example setup using create-react-app

Install globally

This package requires node >= 8.

npm install -g react-create-library

Usage

react-create-library my-library

Using npx

npx react-create-library my-library

Interactive CLI, answer few questions and choose modules required for development.

CLI Options

Usage: react-create-library <package-name> [Options]

Options:
  -V, --version          output the version number
  --verbose              print additional logs
  --pm <value>           Package Manager (npm or yarn)
  --type <value>         Type System for project one of default,typescript,flow (default: "none")
  --doc <value>          Documentation Library one of none,docz,storybook,react-styleguidist (default: "docz")
  --style <value>        Styling Library one of inline,css,less,scss,emotion,styled-component (default: "inline")
  -l, --license <value>  License of Project (default: "MIT")
  -s, --skip             Skip all question and create project with defaults
  -h, --help             output usage information


Node version require >= 8 & npm >= 5

If something doesn’t work, please file an issue