seothemes / genesis-theme-claim

Rename a WP theme with a quick cli walk-through.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genesis Theme Claim

Renames the Genesis Sample theme and resets the version number with a quick cli walk-through.

Version

Install

$ npm install genesis-theme-claim --save-dev

Usage

In a terminal

$ genesis-theme-claim --help

  Usage
    $ genesis-theme-claim

  Options
    --config=<path>  Path to config [Default: ./themeclaim.json]
    --ignore=<path>  Specify an additional file or glob to ignore

  Examples
    $ genesis-theme-claim --config='/build/conf.json' --ignore='**/*.ignore'

Or in a package.json script

"scripts": {
	"rename": "genesis-theme-claim",
}

Run the "script"

$ npm run rename

By default, the config is set up for use with the Genesis Sample Theme.

To rename any other theme, create a themeclaim.json and place it in the root of your theme with the following contents. Change the data to match your current theme data exactly (this is the data you're wanting to change).

{
	"from": {
    		"Name": "Genesis Sample",
    		"Description": "This is the sample theme created for the Genesis Framework.",
    		"Namespace": "Genesis Sample",
    		"Uri": "https://demo.studiopress.com/",
    		"Author": "StudioPress",
    		"AuthorUri": "https://www.studiopress.com/"
    	}
}

Version

The version number is automatically reset to 1.0.0 across all theme files including @since tags in PHP comments.

About

Rename a WP theme with a quick cli walk-through.

License:GNU General Public License v2.0


Languages

Language:JavaScript 100.0%