@redneckz/react-lib-config
Common config (Babel, ESLint, Rollup) for React libs
Last updated 23 days ago by redneckz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @redneckz/react-lib-config 
SYNC missed versions from official npm registry.

react-lib-config

Common configuration to bundle, lint and test React libraries. Based on Rollup, Babel, ESLint, Jest, Flow.

NPM Version Build Status

How-to

  1. Install: $ npm install @redneckz/react-lib-config
  2. Configure Rollup, Babel, ESLint, Jest, Flow: $ react-lib-init
  3. Declare some meta and add some scripts to lint, test, build and publish your library
{
  "name": "@redneckz/test-package",
  "version": "0.0.0",
  "main": "lib/index.js",
  "module": "es/index.js",
  "browser": "dist/index.min.js",
  "files": [
    "src",
    "lib",
    "es",
    "dist"
  ],
  "peerDependencies": {
    "react": "^16.10.0-0"
  },
  "devDependencies": {
    "react": "16.10.0",
    "@redneckz/react-lib-config": "0.0.9"
  },
  "scripts": {
    "prepublish": "npm run build",
    "prebuild": "npm run eslint && npm run jest && npm run clean",
    "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
    "build:commonjs": "cross-env NODE_ENV=cjs react-lib-build",
    "build:es": "cross-env NODE_ENV=es react-lib-build",
    "build:umd": "cross-env NODE_ENV=development react-lib-build",
    "build:umd:min": "cross-env NODE_ENV=production react-lib-build",
    "clean": "rimraf lib es dist coverage",
    "pretest": "npm run eslint",
    "test": "npm run jest && npm run coveralls",
    "eslint": "eslint \"src/**/*.js?(x)\" --cache --cache-location \"./.cache\"",
    "jest": "cross-env NODE_ENV=test jest",
    "coveralls": "coveralls < coverage/lcov.info"
  }
}

License

MIT

Current Tags

  • 0.0.9                                ...           latest (23 days ago)

9 Versions

  • 0.0.9                                ...           23 days ago
  • 0.0.8                                ...           2 months ago
  • 0.0.7                                ...           4 months ago
  • 0.0.6                                ...           4 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           8 months ago
  • 0.0.2                                ...           9 months ago
  • 0.0.1                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 57
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |