- The bundled
@wordpress/dependency-extraction-webpack-plugin
dependency has been updated to the next major version^2.0.0
.start
andbuild
scripts save now the generated asset file for each entry point in the new PHP output format.
- Add the new
env
family of scripts (#17004).
- Add
wordpress
folder to the list of ignored paths in all applicable config files (#17296).
- Test files matching has changed to fix the overlap between two types of tests implemented with
test-e2e
andtest-unit
. Refer to the documentation of the corresponding scripts to learn about new file discovery rules.
- The bundled
puppeteer
dependency has been updated from requiring1.6.1
to requiring^1.19.0
(#16875). It uses Chromium v77 instead of Chromium v69. - The bundled
jest-puppeteer
dependency has been updated from requiring^4.0.0
to requiring^4.3.0
(#16875). - The bundled
eslint
dependency has been updated from requiring^5.16.0
to requiring^6.1.0
. - The bundled
@wordpress/eslint-plugin
dependency has been updated to the next major version^3.0.0
due to new ESLint rules enabled for all test files.
- Use the SCSS shared
stylelint-config-wordpress
config so that both CSS and SCSS rules are used (#17060)
- The
build
andstart
commands supports simplified syntax for multiple entry points:wp-scripts build entry-one.js entry-two.js
(15982).
- Added missing babel-jest dependency (#16259).
- The
lint-js
command lints now JS files in the entire project's directories by default (15890). - The
lint-pkg-json
command lints nowpackage.json
files in the entire project's directories by default (15890). - The
lint-style
command lints now CSS and SCSS files in the entire project's directories by default (15890). - The
lint-js
,lint-pkg-json
andlint-style
commands ignore now files located inbuild
andnode_modules
folders by default (15977).
- Leverage
@wordpress/dependency-extraction-webpack-plugin
plugin to extract WordPress dependencies. - The bundled
eslint
dependency has been updated from requiring^5.12.1
to requiring^5.16.0
.
- The default Webpack configuration uses
thread-loader
to parallelize Babel processing. - The default Webpack configuration now opts-in to the
cacheDirectory
option for its Babel loader. - The
source-map-loader
is excluded from production builds. This serves only as an optimization and should otherwise have no impact on build results.
- The
build
andstart
commands will use a default webpack config if none is provided.
- The bundled
eslint
dependency has been updated from requiring^4.19.1
to requiring^5.12.1
(see Migration Guide). - The bundled
jest
dependency has been updated from requiring^23.6.0
to requiring^24.1.0
(see Breaking Changes, #13922). - The bundled
jest-puppeteer
dependency has been updated from requiring3.2.1
to requiring^4.0.0
(#13922).
- Added support for
build
script (#12837) - Added support for
start
script (#12837) - Updated
npm-package-json-lint
dependency #14200
- Avoid inheriting from ESLint configurations in ancestor directories when using the default configuration (#13483)
- Added support for
check-engines
script (#12721) - Added support for
lint-style
script (#12722) - Added support for
test-e2e
script (#12437) - Update default config provided for
lint-js
script (#12845)
- Added support for
lint-js
script (#10504)
- New flag
--ignore
forcheck-licenses
script - Try deferring to LICENSE file for
license
fields which include filename - Add "BSD-3-Clause-W3C" as GPL-compatible
- Resolves an issue where npm package lint script did not work in Windows environments (#9321
- Updated dependencies:
jest
,npm-package-json-lint
andread-pkg-up
- Updated code to work with Babel 7 (#7832)
- Moved
@WordPress/packages
repository to@WordPress/gutenberg
(#7805)
- Added support for
lint-pkg-json
script (#128)
- Fix: Standardized
package.json
format (#119)