Below is a summary of this week’s JavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com/. chat (agenda, Slack Transcript). Have a topic for discussion for the next meeting? Leave a suggested edit on next week’s agenda.
Daylight savings time
Slack Conversation
@aduth proposed to not move the meeting time this instance, because for some people having the meeting an hour later means they can attend. If you have any feedback on this proposal, please leave a comment.
Default webpack configuration
Slack conversation
A default webpack configuration pull request has been merged to wp-scripts
. So plugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party authors can now do wp-scripts build
and that will build their JavaScript into a bundle for the browser.
There was a brief discussion on whether or not the build command should accept a custom webpack configuration. For now this will stay possible. In the longer term the default configuration should be good enough for a lot of users and the 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/ webpack config should align with the default config as much as possible.
Pull request for typescript definitions
Slack conversation
The Gutenberg repository received a pull request with TypeScript definitions. This raised the broader question whether these pull requests should be accepted, because these definitions also need to be maintained.
In the chat the consensus was that it is only worth merging these kinds of PRs if the maintainability burden is very low. Given that is not the case it is probably better to not merge the given PR.
This will be decided on next week, please comment here with your ideas on this.
Removing grunt dependency from grunt-patch-wordpress
Slack conversation
@jorbin wants to make the grunt-patch-wordpress
tool a general command-line utility that runs without a grunt
dependency. Everyone agreed that this is a good idea. The new package will be located inside the monorepo like all other JavaScript packages.
#core-js, #javascript