shopify主题开发
windows环境
安装 Shopify CLI
npm install -g @shopify/cli @shopify/theme
使用 Dawn 初始化一个新主题
Dawn 是 Shopify 的参考主题,专为性能、灵活性和易用性而构建。它使用Online Store 2.0功能,包括JSON 模板,支持所有页面上的应用程序块和部分。Dawn 被用作所有免费 Shopify 主题的基础。
Dawn 是一个超轻量级、移动优先的主题,它使用原子组件、最少的 JavaScript 和一组固执己见的功能。它最大限度地提高了商家的灵活性,同时最大限度地降低了复杂性。
shopify theme init
shopify theme dev --store {
store-name}
其中–store代表您要用于预览主题的商店的名称。
在 Google Chrome 中,打开http://127.0.0.1:9292打开主题预览。
上传到商店
shopify theme push --unpublished
unpublished 不发布
shopify theme push
更新
shopify theme publish
发布主题