Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.93k stars 3.12k forks source link

Keep only relevant npm WordPress packages #1466

Open kadimi opened 3 years ago

kadimi commented 3 years ago

Changes proposed in this Pull Request:

The @wordpress/scripts npm package offers 13 scripts but only 2 are used by _s. I thought that adding only those two scripts to the project instead of the whole family would improve it and it certainly did. Here is a comparison:

npm install Before the Change

added 1884 packages from 774 contributors and audited 1887 packages in 53.306s
# ...
found 2 vulnerabilities

npm install After the Change

added 604 packages from 373 contributors and audited 604 packages in 15.74s
# ...
found 0 vulnerabilities

Comparison

Before After % Improvement
Packages 1884 604 312%
Vulnerabilities 2 0 ∞%
Time 53.306s 15.74s 339%