It's nearly impossible to do continuous delivery to mulitple environments with the @bigcommerce/stencil-cli - you'll run into "too many themes" errors, have to put your '.stencil' config file in your repo (unsafe) or accidentally deploy to the wrong environment. This script will let you avoid those issues so you can continuously deliver a theme to different environments.
- install:
npm i -g @steve-ross/bigcommerce-tools
- clone your repo (and cd into your theme directory if needed)
- install theme packages:
npm i
- DEPLOY:
stencil-preflight -y -i --stencilInit --activateTheme "YOUR THEME NAME (in config.json)" --accessToken your_access_token --clientId your_client_id --storeHash your_store_hash
- Clone the repo
npm i
npm link
- open a PR!