Have a topic for discussion for the next meeting? Leave a suggested edit on next week’s agenda.
TypeScript Types from Packages
WordPress packages will now ship with their own first-party TypeScript types!
Pull request: https://github.com/WordPress/gutenberg/pull/18942
The types (declaration files) will be published with the packages, so folks using the packages via npm will have access without doing anything else.
The type generation is built into the existing package build/publish flow, so things should remain largely the same from the perspective of Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ development (hopefully with better information in our IDEs!)
npm run build:package-types is the script that generates them.
Awesome job! Kudos!
JSX support for wordpress/scripts
Link to the issue
PR proposing it for formatting command.
There is a small discussion about seeing if it is necessary to discourage or not jsx files. Noticing that changes to accept jsx are quite simple. And are even accepted in some code already. There are different opinions, so the team prefer to continue the discussion.
Updating Jest Error
@aduth comments that is Enzyme related issue. That expects a DOM to exist.
Airbnb transferred the project to the community. Seems that everyone is going to switch away from Enzyme.
Also they comment that Jest, Babel and Puppeteer should be upgraded, and would be nice to have some strategya arount all that. The project seems to have too many dependencies.