Packages need better readme to be descriptive and informative for clarity.
Some packages readmes are oneliner or missing details.
Ref https://github.com/WordPress/gutenberg/pull/10510#discussion_r224445644
cc: @chrisvanpatten
Packages Checklist:
Audit Checklist:
@ajitbohra A good starting point for this might be to create a list of the packages as a checkbox list, and also come up with standards to audit the readmes/descriptions.
I think as a baseline, each package should meet the following criteria:
npm install @wordpress/components --save and ES2015 instructions)I know @tofumatt has many good opinions on documentation and might have additional criteria for us to consider.
I frankly think ES5 instructions aren't really worth it, but I'm not sure if that's official WordPress policy 😄
Those sound like a great start to me, not much to add. Only thing is how usable they even are outside WordPress and what the intended audience is for each package. Some are better supported outside of a WordPress context and some are just packages whose target is WordPress. It's worth explicitly saying so to set expectation of support, see:
https://github.com/WordPress/gutenberg/pull/10429#pullrequestreview-162946474
I'd definitely like to see this.
@tofumatt That's actually a good point — if you're consuming the packages via npm it may be safe to assume that you have an ES6/webpack setup, especially because the scripts themselves use ES6 and need to be transpiled anyway.
ES5 examples are important in the editor documentation, but not so much in the README that we push to npm.
And they definitely bloat the docs, which can be scary for those (like me) that often skim docs of new packages rather than read them thoroughly at first. 😅
Agree with @tofumatt less is more, same here I often skim docs 😅
@chrisvanpatten that checklist looks good for audit will add the checkbox checklist of the packages. Will try to split out the list into two one with content which needs to be reviewed structured which you can have a look at. Another list with the packages that need content will add the rough draft and you can cover me on the copy my writing skills suck 😅
I'm closing this one out, per all the work @nosolosw has done here: https://github.com/WordPress/gutenberg/issues/14227