Title: Javascript Chat Summary: Tuesday, November 5, 2019
Author: Jorge Costa
Published: November 8, 2019

---

 [  ](https://profiles.wordpress.org/jorgefilipecosta/) [Jorge Costa](https://profiles.wordpress.org/jorgefilipecosta/)
7:13 pm _on_ November 8, 2019     
Tags: [core-js ( 131 )](https://make.wordpress.org/core/tag/core-js/),
[javascript ( 130 )](https://make.wordpress.org/core/tag/javascript/), [meeting notes ( 227 )](https://make.wordpress.org/core/tag/meeting-notes/)

# Javascript Chat Summary: Tuesday, November 5, 2019

**Below is a of the discussion from this week’s JavaScriptJavaScript 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](https://www.javascript.com/) chat(
[agenda](https://docs.google.com/document/d/1AjsodtFky173O-cvE7bBImjfQU4fIXFeMxrK40ftwUw/edit?usp=sharing),
[Slack Transcript](https://wordpress.slack.com/archives/C5UNMSU4R/p1572962446288000)**)

Have a topic for discussion for the next meeting? Leave a suggested edit on [next week’s agenda](https://docs.google.com/document/d/1PebVUSbRVDo4ghzLikyhZMdHqKahSdkkGOwkMTNmUF8/edit).

## Editor-specific .gitignore entries in GutenbergGutenberg 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/](https://wordpress.org/gutenberg/)󠁿

 * Context: [https://github.com/WordPress/gutenberg/pull/18257#discussion_r342255694](https://github.com/WordPress/gutenberg/pull/18257#discussion_r342255694)
    - Proposing to add a gitignore entry for VSCode’s “.vscode” local folder
 * Historically we’ve avoided editor-specific entries in the project’s gitignore
   to avoid opening pandora’s box (proliferation of ignore entries), but is this
   too rigid a guideline causing friction in new contributor onboarding?
 * Question: Should we allow more of these entries, and if so, which?

[@gziolo](https://profiles.wordpress.org/gziolo/) said that he does not have a strong
opinion on this item, but WordPress as a project is strict about it.

[@mkaz](https://profiles.wordpress.org/mkaz/) also does not feels strong either 
way but said he would probably merge the PR because vscode its perhaps the largest
and most popular editor.

@chancethedev shared his perspective as an instructor:

> I often include vscode settings in my repos to make things easier for students
> when running workshops, so ignoring it globally won’t work for me. That said, 
> I can just remember to remove it before I commit so it’s not a HUGE deal, I can
> just imagine folks slipping up often enough to where it’ll end up in commits from
> time-to-time and we’ll just have the conversation again.

[@aduth](https://profiles.wordpress.org/aduth/) and [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/)
asked if the fact that WordPress os strict is written down somewhere?

[@gziolo](https://profiles.wordpress.org/gziolo/) shared the following comment from
https://core.trac.wordpress.org/ticket/34345:

>  IDEIDE Integrated Development Environment. A software package that provides a
> full suite of functionality to software developers/programmers. Normally an IDE
> includes a source code editor, code-build tools and debugging functionality.-specific.
> gitignore rules should not be present in a project. They should be managed in 
> the user’s ~/.gitignore_global.

[@gziolo](https://profiles.wordpress.org/gziolo/) added that it does not look like
it is a written rule, as he was not able to find it in the docs. So, we can go both
ways; we should document it to make it easy for contributors to update patches.

[@nerrad](https://profiles.wordpress.org/nerrad/) said :

> I lean towards adding the rule and just evaluating on a case-by-case basis.
> It seems to be more dev friendly and avoids unnecessary noise in reviews.

[@mkaz](https://profiles.wordpress.org/mkaz/) asked if there is any downside to 
adding the rule and [@aduth](https://profiles.wordpress.org/aduth/) answered:

> I don’t think there’s a downside in-and-of-itself, more the slippery slope of 
> how we make these decisions in the future without a well-defined approach.

[@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/) suggested as
action item working on some language for HOW we decide.

[@mkaz](https://profiles.wordpress.org/mkaz/) and [@gziolo](https://profiles.wordpress.org/gziolo/)
suggested we add 3-5 top popular IDEs. [@gziolo](https://profiles.wordpress.org/gziolo/)
said we could also link to docs how to add an IDE to ~/.gitignore_global.

[@aduth](https://profiles.wordpress.org/aduth/) suggested, and [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/)
supported that we can base it on “X% or greater” of some well-defined data, e.g.,
h[ttps://insights.stackoverflow.com/survey/2019#technology-_-most-popular-development-environments](https://insights.stackoverflow.com/survey/2019#technology-_-most-popular-development-environments).

@chancethedev said he is joining the docs team specifically for Gutenberg docs, 
so he is happy to bring this up in the docs meeting today as well.

If you have any thoughts on this, please share them.

## Bundling and loaders – extend coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. to allow SVG components

As part of the open floor, [@mkaz](https://profiles.wordpress.org/mkaz/) introduced
the topic by saying: 

>  For the open floor, I’m interested in the topic above regarding bundling and 
> loaders – trying to extend core to allow SVG components.
> Parcel sounds like an interesting option but looks like v2 is not out yet, so 
> would need to wait

[@aduth](https://profiles.wordpress.org/aduth/) asked clarification on the background
of this task and what is trying to be achieved by importing an SVG.

[@mkas](https://profiles.wordpress.org/mkas/) linked to the ticketticket Created
for both bug reports and feature development on the bug tracker. [https://github.com/WordPress/gutenberg/issues/14628](https://github.com/WordPress/gutenberg/issues/14628)
and said:

> Right now the Social Links duplicates the SVG in CSSCSS Cascading Style Sheets.
> and PHPPHP The web scripting language in which WordPress is primarily architected.
> WordPress requires PHP 7.4 or higher to work – we want to figure out some way 
> to get it to a single .svg file

[@aduth](https://profiles.wordpress.org/aduth/) asked if it’d be feasible to manually
shove the SVG into JSX. And asked if not an option to use something like `<img src
="icon.svg">`.

[@mkaz](https://profiles.wordpress.org/mkaz/) answered that the problem for the 
publishing view is KSES, and linking to images, one loses the ability to color them.

[@aduth](https://profiles.wordpress.org/aduth/) shared the main questions he thinks
we should answer are “Should we do it, and if so, how?” and shared some thoughts:

 * I am conscious of the size inflation, though I think we need to be solving this
   problem anyways. Could be a way to prompt us to investigate better handling of“
   large” blocks (opening path for more complex blocks too, like reintroducing Code
   +SyntaxHighlighting).
 * I guess there is some issue with our build that the Webpack loader might not 
   work? The Babel transform seems less ideal, but also workable.

[@gziolo](https://profiles.wordpress.org/gziolo/) shared the following analysis 
of what creat reactReact React is a JavaScript library that makes it easy to reason
about, construct, and maintain stateless and stateful user interfaces. [https://reactjs.org](https://reactjs.org/)
app did:

> CRA experiments with Babel macros, but the blockerblocker A bug which is so severe
> that it blocks a release. at the moment is cache invalidation. They had a very
> solid proposal to inline many types of files, including SVG with Babel macros 
> [https://github.com/facebook/create-react-app/issues/3722#issuecomment-458124126.](https://github.com/facebook/create-react-app/issues/3722#issuecomment-458124126.)
> Macros struggle with the cache invalidation for the dependent files. See the comment
> in create-react-app [https://github.com/facebook/create-react-app/commit/11737bc78676868e76ce5d0c04ddbb5c758d3908#diff-b1524f1e1ccabdb327a12f23b432b20bR13](https://github.com/facebook/create-react-app/commit/11737bc78676868e76ce5d0c04ddbb5c758d3908#diff-b1524f1e1ccabdb327a12f23b432b20bR13).
> Related Babel issue which might resolve this issue in the future: [https://github.com/babel/babel/issues/8497](https://github.com/babel/babel/issues/8497).

[@mkaz](https://profiles.wordpress.org/mkaz/) said Parcel 2 sounds like a potential
option for the future. Then, asked if we want to add SVGR support to wp-scripts 
without it in core Gutenberg, relevant PR https://github.com/WordPress/gutenberg/
pull/18243. [@gziolo](https://profiles.wordpress.org/gziolo/) answered that we use
a custom config in Gutenberg, so it should be fine.

[#core-js](https://make.wordpress.org/core/tag/core-js/), [#javascript](https://make.wordpress.org/core/tag/javascript/),
[#meeting-notes](https://make.wordpress.org/core/tag/meeting-notes/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2019/11/08/javascript-chat-summary-tuesday-november-5-2019/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/323cf209e19dd825678e9ccc51bc3f745f96571f1c68af26ae7955c1fa9ad1f2?
     s=32&d=mm&r=g)
 2.   [Aaron Jorbin](https://profiles.wordpress.org/jorbin/)  4:09 pm _on_ November
     9, 2019
 3.  > Editor-specific .gitignore entries in GutenbergGutenberg 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/](https://wordpress.org/gutenberg/)
 4.  While historically coreCore Core is the set of software required to run WordPress.
     The Core Development Team builds WordPress. has shied away from this, I do think
     it might be worth reconsidering. I’m all in favor of a change that reduces the
     friction to contributing. To that end, I wonder if we should include ignores for
     all possible IDEs?
 5.  I would also caution using the stack overflow survey as the basis for any decision
     making as the demographics of that survey are overwhelmingly white and overwhelmingly
     male which isn’t the demographics of the community WordPress has, nor are they
     the demographics of the community WordPress wants.
 6.  I do think it would be best to mirror the changes in both the core repository 
     and the Gutenberg repository.
 7.  ![](https://secure.gravatar.com/avatar/120b2dbc332ea0daf46d432e7d1fd3bf9a2b98955f9bad07dfd3ff8eb0fdfc87?
     s=32&d=mm&r=g)
 8.   [Stephen Edgar](https://profiles.wordpress.org/netweb/)  10:07 am _on_ November
     17, 2019
 9.  I think this could be a good experiment, historically IDEIDE Integrated Development
     Environment. A software package that provides a full suite of functionality to
     software developers/programmers. Normally an IDE includes a source code editor,
     code-build tools and debugging functionality./Editor changes that were decided
     to be ignored were for the most part fairly simple config files for the IDE/Editor,
     some folder paths, some ignore paths.
 10. The complexity of build tools these days is a much different landscape, being 
     able to add suggestions of IDE/Editor extensions to include in the project, integration
     of build scripts key mappings , debug scripts key mappings and much more.
 11. As to whether using VS Code as an example that that be included in the repo should
     be for another discussion, potentially this could be a separate repo for each 
     Editor/IDE based on any list decided

Comments are closed.

# Post navigation

[← REST API Meeting Agenda for Nov 7](https://make.wordpress.org/core/2019/11/07/rest-api-meeting-agenda-for-nov-7/)

[Media Meeting Recap – November 7, 2019 →](https://make.wordpress.org/core/2019/11/11/media-meeting-recap-november-7-2019/)