🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@masonite/wp-project-version-sync

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@masonite/wp-project-version-sync

Update your WordPress theme or plugin version based on a different source such as a package.json

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
5
Created
Source

wp-project-version-sync

A CLI command to update your WordPress plugin or theme's file header version based off of your package.json version.

wp-update-project-version is a CLI command that is most useful when added to your build script in your package.json, like so:

{
    "scripts":  {
        "build": "webpack -p && wp-project-version-sync -p style.css"
    }
}

Installation

npm i @masonite/wp-project-version-sync

Usage

Currently, only package.json is the only supported <source> reference for a version. You can update one or more files, though at the moment, only WordPress header files are supported.

// wp-update-project-version -s <source> -p <path> [paths...]
wp-update-project-version -s package.json -p style.css index.php

Keywords

wordpress

FAQs

Package last updated on 03 Jan 2019

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