render-react-components
Cli tool for rendering react components.
Last updated a year ago by lewis617 .
MIT · Bugs · Original npm · Tarball · package.json
$ cnpm install render-react-components 
SYNC missed versions from official npm registry.

render-react-components

NPM version NPM downloads Dependencies

查看中文版

render-react-components is a cli tool to recursilvly search all the react components in your project(only in src derectory) and create files to render them isolatedly.

Getting started

## Install globally or locally
$ npm i render-react-components -g

## Create files to render components
$ rrc init

## you can use the filter argument(the keyword of compoennt path) to init for part of components
$ rrc init --filter=Component1
## or simply use -f=keyword to filter
$ rrc init -f=Component1

## Local development
$ rrc dev

## Delete all the files that created by rrc init
$ rrc clean

Configuration

For configuration, you can use .rrc.js configuration file, e.g.

module.exports = {
  disableCSSModules: true,
  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
    'prop-types': 'PropTypes',
  }
};

disableCSSModules

Disable CSS Modules,we do not recommend doing this.

externals

Configure webpack's [externals] (https://webpack.js.org/configuration/externals/) property.

e.g.

// Don't pack react and react-dom
"externals": {
  "react": "window.React",
  "react-dom": "window.ReactDOM"
}

alias

Configure webpack's resolve.alias property.

extraResolveExtensions

Configure webpack's resolve.extensions property.

extraResolveModules

Configure webpack's resolve.modules property.

LICENSE

MIT

Current Tags

  • 1.1.3                                ...           latest (a year ago)

7 Versions

  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 14
Dependencies (21)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |