Socket
Socket
Sign inDemoInstall

@wordpress/scripts

Package Overview
Dependencies
Maintainers
4
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/scripts

Collection of JS scripts for WordPress development


Version published
Weekly downloads
49K
increased by9.87%
Maintainers
4
Weekly downloads
 
Created
Source

@wordpress/scripts

A collection of JS scripts for WordPress development.

Installation

Install the module

npm install @wordpress/scripts --save-dev

Setup

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.

Available Scripts

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.

Inspiration

This is inspired by react-scripts and kcd-scripts.

Keywords

FAQs

Package last updated on 25 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc