Skip to content

Commit 4b9428e

Browse files
committed
Prepare 1.0.0 release
1 parent 3dd7e12 commit 4b9428e

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# react-transform-log-render
22

3-
[React Transform](https://github.com/gaearon/babel-plugin-react-transform) of the render method for log output
3+
[React Transform](https://github.com/gaearon/babel-plugin-react-transform) of the render method for log output
44

55
## Installation
66

@@ -34,6 +34,40 @@
3434
}
3535
```
3636

37+
## Include/Exclude components (by name)
38+
39+
1. Add path to config module
40+
41+
```js
42+
{
43+
"stage": 0,
44+
"env": {
45+
"development": {
46+
"plugins": ["react-transform"],
47+
"extra": {
48+
"react-transform": {
49+
"transforms": [{
50+
"transform": "react-transform-log-render",
51+
"imports": ["./src/react-transform-log-render-options"]
52+
}, …]
53+
}
54+
}
55+
}
56+
}
57+
}
58+
```
59+
60+
2. Config example
61+
62+
```js
63+
export default {
64+
exclude: ['Root', 'App'],
65+
include: ['TaskItem', 'Header', 'TaskCreate'],
66+
};
67+
```
68+
69+
> You can be used the option include or exclude separately
70+
3771
## How it looks
3872

3973
<img width="320" alt="2015-11-14 17 12 51" src="https://cloud.githubusercontent.com/assets/4242765/11163037/a1263916-8aea-11e5-817d-0de67d66a2bd.png">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-transform-log-render",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"description": "React Transform of the render method for log output",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)