@abolkog/theme-kit 中文文档教程
Theme-Kit
围绕 Shopify ThemeKit 的 NoeJS CLI 包装器,
目前使用裸液体主题
Prerequisites
- Shopify ThemeKit installed
Install
- Install the package globally
npm i -g theme-kit
Usage
theme-kit 是 shopify 的 cli 包装器themekit,您可以使用它在您的工作目录中切换主题,启动 themekit watch 以进行开发或从 shopify 获取/下载新主题
此包装器将在根级别创建一个文件
.werd
来存储您的配置。 将此文件添加到您的.gitignore
Downlaod theme
导航到一个新文件夹并使用命令 get
mkdir my-project && cd my-project
theme-kit get
按照屏幕上的说明
Watch theme
下载主题导航到您的工作并发出命令switch
config.yml
文件必须存在于根文件夹中,
cd my-theme
theme-kit switch
按照屏幕上的说明
Watch theme
进行操作要观察主题更改并将主题上传到 shopify,请使用命令 dev
存在于根文件夹
mkdir my-project && cd my-project
theme-kit dev
config.yml
文件必须按照屏幕上的说明
Authors
- Khalid Elshafie - Initial work - abolkog
中另请参阅 contributors 参与了这个项目。
License
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE.md 文件
Theme-Kit
A NoeJS CLI Wrapper around Shopify ThemeKit
Currently Working with bare liquid themes
Prerequisites
- Shopify ThemeKit installed
Install
- Install the package globally
npm i -g theme-kit
Usage
theme-kit is a cli wrapper around shopify themekit, you can use it to switch theme in your working dir, start themekit watch for development or fetch/download a new theme from shopify
This wrapper will created a file
.werd
on the root level to store your configutation. Add this file to your.gitignore
Downlaod theme
Navigate to a new folder and use the command get
to download a theme
mkdir my-project && cd my-project
theme-kit get
follow the on-screen instruction
Watch theme
Navigate to your them working and issue the commadn switch
the
config.yml
file must exists in the root folder
cd my-theme
theme-kit switch
follow the on-screen instruction
Watch theme
To watch for theme changes and upload the theme to shopify use the command dev
the
config.yml
file must exists in the root folder
mkdir my-project && cd my-project
theme-kit dev
follow the on-screen instruction
Authors
- Khalid Elshafie - Initial work - abolkog
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details