项目作者: wadehrarshpreet

项目描述 :
CLI tools to generate boilerplate to create component based library
高级语言: JavaScript
项目地址: git://github.com/wadehrarshpreet/react-create-library.git
创建时间: 2019-11-24T15:28:44Z
项目社区:https://github.com/wadehrarshpreet/react-create-library

开源协议:MIT License

下载


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.

  1. npm install -g react-create-library

Usage

  1. react-create-library my-library

Using npx

  1. npx react-create-library my-library

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

CLI Options

  1. Usage: react-create-library <package-name> [Options]
  2. Options:
  3. -V, --version output the version number
  4. --verbose print additional logs
  5. --pm <value> Package Manager (npm or yarn)
  6. --type <value> Type System for project one of default,typescript,flow (default: "none")
  7. --doc <value> Documentation Library one of none,docz,storybook,react-styleguidist (default: "docz")
  8. --style <value> Styling Library one of inline,css,less,scss,emotion,styled-component (default: "inline")
  9. -l, --license <value> License of Project (default: "MIT")
  10. -s, --skip Skip all question and create project with defaults
  11. -h, --help output usage information
  12. Node version require >= 8 & npm >= 5

If something doesn’t work, please file an issue