๐ 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
.zipfile - Inside the admin panel, go into
Online Store > Themes - Click the
Upload Themebutton and pick your.zipfile - To the right of the newly created theme, click
Customize. - The
XXXXXXXXXXXpart of the URL is your theme idhttps://my-example-store.myshopify.com/admin/themes/XXXXXXXXXXX/editor
-
Create a file named
config.ymlin the root, with the content of the already existing fileconfig.example.yml -
Replace the dummy-credentials with your actual ones
-
cdinto thedev-assetsfolder and install the dependencies by runningnpm install
Using the boilerplate theme is very smooth.
-
Open two terminal windows/tabs
-
In the first one,
cdinto the root of the theme and runtheme watch
-
In the second one,
cdinto thedev-assetsfolder 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.