Renames the Genesis Sample theme and resets the version number with a quick cli walk-through.
$ npm install genesis-theme-claim --save-dev
$ 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'
"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/"
}
}
The version number is automatically reset to 1.0.0
across all theme files including @since
tags in PHP comments.