
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@wordpress/scripts
Advanced tools
A collection of JS scripts for WordPress development.
Install the module
npm install @wordpress/scripts --save-dev
This is a CLI and exposes a binary called wp-scripts
so you can call it directly. However this module is designed to be configured using the scripts
section in the package.json
file of your project. Example configuration:
{
"scripts": {
"test": "wp-scripts",
"test:help": "wp-scripts --help",
"test:watch": "wp-scripts --watch"
}
}
This is how you execute those scripts using the presented setup:
npm run test
or npm test
- runs all unit tests.npm run test:help
- prints all available options to configure unit tests runner.npm run test:watch
- runs all unit tests in the watch mode.wp-scripts test
Launches the test runner. It uses Jest behind the scenes and you are able to utilize all of its CLI options. You can also run ./node_modules/.bin/wp-scripts --help
or npm run test:help
(if you use package.json
setup shared above) to view all of the available options.
This is inspired by react-scripts and kcd-scripts.
FAQs
Collection of reusable scripts for WordPress development.
The npm package @wordpress/scripts receives a total of 59,711 weekly downloads. As such, @wordpress/scripts popularity was classified as popular.
We found that @wordpress/scripts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.