๐ A minimal Shopify theme boilerplate with support for Gulp, Autoprefixer, Babel and more.
Setting up this boilerplate theme consists of two phases.
- Clone the repository
- Compress the folder into a
.zip
file - Inside the admin panel, go into
Online Store > Themes
- Click the
Upload Theme
button and pick your.zip
file - To the right of the newly created theme, click
Customize
. - The
XXXXXXXXXXX
part of the URL is your theme idhttps://my-example-store.myshopify.com/admin/themes/XXXXXXXXXXX/editor
-
Create a file named
config.yml
in the root, with the content of the already existing fileconfig.example.yml
-
Replace the dummy-credentials with your actual ones
-
cd
into thedev-assets
folder and install the dependencies by runningnpm install
Using the boilerplate theme is very smooth.
-
Open two terminal windows/tabs
-
In the first one,
cd
into the root of the theme and runtheme watch
-
In the second one,
cd
into thedev-assets
folder and rungulp watch
The theme watch
command watches for changes in the theme files and will update the theme with the new files if any changes occur. The gulp watch
command watches the files inside the dev-assets
folder. When a file change occurs there, Gulp processes and copies the affected files into the assets
folder of the Shopify theme. This triggers the theme watch
command and the theme will be updated.