@geekbone/genesis-theme-rename

1.0.0 • Public • Published

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-rename --save-dev

Usage

In a terminal

$ genesis-theme-rename --help

  Usage
    $ genesis-theme-rename

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

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

Or in a package.json script

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

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.

Readme

Keywords

Package Sidebar

Install

npm i @geekbone/genesis-theme-rename

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

33.6 kB

Total Files

12

Last publish

Collaborators

  • vishalganna