react-lib-scripts
React lib scripts
Last updated a year ago by antonybudianto .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-lib-scripts 
SYNC missed versions from official npm registry.

react-lib-scripts

All-in-one CLI for building React Library

oclif Version Downloads/week License

Stacks

Tech stacks used:

  • CLI
    • OCLIF
  • Bundler
    • Webpack 4
      • css-loader, iso-morphic-style-loader
      • postcss-loader (autoprefixer)
      • url-loader (all images will be base64)
      • webpack-node-externals
    • Babel

Usage

$ npm install -D react-lib-scripts
You can put the command as npm scripts.
"start": "react-lib-scripts start",
"build": "react-lib-scripts build"

Note:
- Node 8+ supported
- `NODE_ENV` environment variable is required.
Set following fields on your package.json
"main": "lib/index.js",
"files": [
  "lib",
  ...
],

Commands

react-lib-scripts build

Create library bundle

USAGE
  $ react-lib-scripts build

DESCRIPTION
  ...
  Create library bundle

See code: src/commands/build.js

react-lib-scripts help [COMMAND]

display help for react-lib-scripts

USAGE
  $ react-lib-scripts help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

react-lib-scripts start

Start lib development flow

USAGE
  $ react-lib-scripts start

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/start.js

Customize

  • Babel
    • You can put .babelrc in the root of your package
  • Webpack
    • Create rls.config.js
    • Copy and paste following:
      module.exports = {
        modifyWebpack: (config) => config
      }
      
  • PostCSS
    • You can put postcss.config.js in the root of your package

Current Tags

  • 0.0.17                                ...           latest (a year ago)

17 Versions

  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |