stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

feature request: set theme's name for stencil push

Open khoallaby opened this issue 3 years ago • 1 comments

Would be nice if you can add a flag to the stencil push command, so you could change the name of the theme that's displayed in bigcommerce.

Currently the naming scheme (i think) is based on what is in your config file. It uses the name setting. Upon stencil pushing a new theme up. if there's another already (with the same name), it'll add a number after it to make it unique. ie THEME_NAME (1)

it would be really nice to be able to change what this is named when you run stencil push. So we can add in the date/time etc, to make it more unique.

you can currently rename it via BC's admin ui, but that is not practical for CI purposes.

khoallaby avatar Dec 09 '21 19:12 khoallaby

We use git flow to handle this and when we create a release we version the package.json, config.json like so:

config.json

{
"name": "Our Project Name v0.1.14",
  "version": "0.1.14",
...
}

package.json

{
  "name": "our-project-name",
  "description": "The OurProjectName theme built on BigCommrece Cornerstone v5.1.0",
  "version": "0.1.14",
...
}

steve-ross avatar Jan 19 '22 18:01 steve-ross