npm test from this generator is used to validate a component before accepting it.
PropTypes as brute documentation. This might seem slightly extreme but I think this is the least the author should do if he intends to share his components. Makes other people's workflow much easier.
^ If we do that, maybe even have the README auto-generated from the PropTypes and its sibling comments. Pull the rest (name, version, license) from package.json. That'll be one less worry for component writers.
We'll have a React component site:
npm test
from this generator is used to validate a component before accepting it.PropTypes
as brute documentation. This might seem slightly extreme but I think this is the least the author should do if he intends to share his components. Makes other people's workflow much easier.PropTypes
and its sibling comments. Pull the rest (name, version, license) from package.json. That'll be one less worry for component writers.