Skip to content

Commit

Permalink
Use new script
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 6, 2019
1 parent 3103d3f commit 622ec3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bin/update-readmes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const packages = [
//'block-library',
//'block-serialization-default-parser',
//'blocks',
//'compose',
'compose',
//'data',
//'date',
//'deprecated',
Expand Down
14 changes: 7 additions & 7 deletions packages/compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ composition, where each successive invocation is supplied the return value of th
**Returns**
`Function` Returns the new composite function.
`Function`: Returns the new composite function.
### createHigherOrderComponent
Expand All @@ -108,7 +108,7 @@ name, returns the enhanced component augmented with a generated displayName.
**Returns**
`WPComponent` Component class with generated display name assigned.
`WPComponent`: Component class with generated display name assigned.
### ifCondition
Expand All @@ -123,7 +123,7 @@ the given condition is satisfied or with the given optional prop name.
**Returns**
`Function` Higher-order component.
`Function`: Higher-order component.
### pure
Expand All @@ -139,7 +139,7 @@ only rerendering when its props/state change
**Returns**
`WPComponent` Component class with generated display name assigned.
`WPComponent`: Component class with generated display name assigned.
### withGlobalEvents
Expand All @@ -160,7 +160,7 @@ component.
**Returns**
`Component` Component with an instanceId prop.
`Component`: Component with an instanceId prop.
### withSafeTimeout
Expand All @@ -175,7 +175,7 @@ that ought to be bound to a component's lifecycle.

**Returns**

`Component` Wrapped component.
`Component`: Wrapped component.

### withState

Expand All @@ -190,7 +190,7 @@ via props.

**Returns**

`Component` Wrapped component.
`Component`: Wrapped component.


<!-- END TOKEN(Autogenerated API docs) -->
Expand Down
6 changes: 0 additions & 6 deletions packages/compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"lodash": "^4.17.11"
},
"devDependencies": {
"@wordpress/docgen": "file:../docgen"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"docs:generate": "docgen ./src/index.js --output ./README.md --to-token"
}
}

0 comments on commit 622ec3f

Please sign in to comment.