Sign inSign up

hieuhidro/stencil-cli

By hieuhidro

Updated over 3 years ago

BigCommerce stencil-cli

Image
0

146

hieuhidro/stencil-cli repository overview

stencil-cli tool image

Stencil CLI allows developers to locally edit and preview themes without impacting a merchant's live storefront, and its built-in Browsersync capabilities make simultaneous testing across desktop, mobile, and tablet devices a breeze. Once work is complete, developers can push themes to BigCommerce storefronts and make them live using Stencil CLI's simple yet powerful commands.

This article contains detailed instructions on installing and configuring Stencil CLI, the first step towards developing Stencil themes for BigCommerce storefronts.

Using the image.

Document root

/home/node/app/

Using docker compose (docker-compose.yml)

version: '2.2'
services:
  stencil-cli:
    image: hieuhidro/stencil-cli:latest
    expose:
      - 3000
      - 3002
    ports:
      - '3000:3000'
    volumes:
      - './theme:/home/node/app/'
      - '~/npm:/home/root/.npm/'
      - '~/.ssh:/root/.ssh:delegated'
    environment:
      - NODE_OPTIONS=--openssl-legacy-provider
      - VIRTUAL_HOST=acupuncture-atlanta.git
      - VIRTUAL_PORT=3000
      - CERT_NAME=default
      - HTTPS_METHOD=noredirect
    networks:
      - default
      - proxy

# Proxy network
networks:
  proxy:
    external: true
Runing the stencil-cli tool
docker-compose run --rm --service-ports stencil-cli help
Accessing to the container
docker-compose run --rm stencil-cli
Install theme's require npm packages.
Step 1: docker-compose run --rm stencil-cli
Step 2: npm install && exit
Starting development the theme
docker-compose run --rm --service-ports stencil-cli start

Tag summary

Content type

Image

Digest

sha256:46f89b4f1

Size

260.6 MB

Last updated

over 3 years ago

docker pull hieuhidro/stencil-cli