Skip to content

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

License

Notifications You must be signed in to change notification settings

masonitedoors/wp-project-version-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published