Development tool for Shopify using webpack and themekit.
Check out the node package version: Shopify Packer
Install dependencies - npm install
Start webpack compiler - npm run start
npm run deploy
Webpack will create the following snippets that load all style and script chunks. You need to include this in your theme.liquid file.
{% include 'script-tags' %}
{% include 'style-tags' %}
The system will check for any script or style sheet that matches Shopify template and layout files.
filename: scripts/templates/product.js
creates file: assets/template.product.js
script-tags snippet (auto generated) will only load this script on pages that use product template
{%- if template == 'product' -%}
<script type="text/javascript" src="{{ 'template.product.js' | asset_url }}" defer="defer"></script>
{%- else -%}
<link rel="prefetch" href="{{ 'template.product.js' | asset_url }}" as="script">
{%- endif -%}
Start - Watches files for changes and deploys changes to Shopify. Also builds and deploys all theme files to Shopify before starting
npm run start
Watch - Watches files for changes and deploys changes to Shopify. Skips first deployment.
npm run watch
Build - Builds js/scss in production mode
npm run build
Deploy - Deploys the contents of dist folder
npm run deploy
Test - Runs all tests and code linters
npm run test
Lint CSS - Checks scss for errors and best practices.
npm run lint:css
Lint JS - Checks js for errors and best practices.
npm run lint:js
Fix CSS - Checks scss for errors and best practices. Automatically fixes simple errors like line endings
npm run fix:css
Fix jS - Checks js for errors and best practices. Automatically fixes simple errors.
npm run fix:js
This project uses stylelint and eslint for checking css and js.
Dawn 代表了一种以 HTML 为先,只需要 JavaScript 的主题开发方法。它是 Shopify 第一个内置性能、灵活性和 Online Store 2.0 功能的可用主题源,并作为构建 Shopify 主题的参考。 特性: 最纯粹形式的网络原生 精益、快速和可靠 JavaScript 不是必需的 服务器呈现 功能性 入门 Fork 存储库并克隆它: git clone git@gith
Shopify Packer Modern development tool for Shopify using Webpack 5. Easy to extend and customize, zero build config, comes with starter themes and compatible with existing Shopify sites. Features Webp
Laravel Shopify App A full-featured Laravel package for aiding in Shopify App development, similar to shopify_app for Rails. Works for Laravel 7 and up. Table of Contents * Wiki pages Goals Documentat
Polaris 是 Shopify 的体验平台,该存储库专注于集中系统、文档和基础。 如何使用这个 repo 确保计算机上安装了 Git 和 Node.js,然后运行以下命令开始: $ git clone https://github.com/Shopify/polaris.git # git clone repository$ cd polaris
generator-shopify-nextjs A Yeoman generator for Serverless Shopify apps using Next.js, Koa, Prisma GraphQL & Shopify's Polaris The Stack next.js koa koa-shopify-auth koa-shopify-graphql-proxy Polaris
@shopify/koa-shopify-auth Middleware to authenticate a Koa application with Shopify. Sister module to @shopify/shopify-express, but simplified. Features you might know from the express module like the