<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Trafilea</title>
    <description>The latest articles on Forem by Trafilea (@trafilea).</description>
    <link>https://forem.com/trafilea</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F2503%2F0794b928-12c7-463d-bdf6-aafc82d79627.jpg</url>
      <title>Forem: Trafilea</title>
      <link>https://forem.com/trafilea</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/trafilea"/>
    <language>en</language>
    <item>
      <title>Modern Shopify Themes Development with Nx-Shopify</title>
      <dc:creator>Sebastián Duque G</dc:creator>
      <pubDate>Fri, 14 May 2021 14:03:18 +0000</pubDate>
      <link>https://forem.com/trafilea/modern-shopify-themes-development-with-nx-shopify-31ho</link>
      <guid>https://forem.com/trafilea/modern-shopify-themes-development-with-nx-shopify-31ho</guid>
      <description>&lt;h1&gt;
  
  
  TL;DR
&lt;/h1&gt;

&lt;p&gt;Nx-Shopify is an &lt;a href="https://nx.dev" rel="noopener noreferrer"&gt;Nx&lt;/a&gt; plugin for developing Shopify themes with performance, modern tooling, and ergonomics in mind.&lt;/p&gt;

&lt;p&gt;Check the Getting Started guide and the full docs at the &lt;a href="https://trafilea.github.io/nx-shopify/" rel="noopener noreferrer"&gt;Nx-Shopify&lt;/a&gt; official website.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/trafilea" rel="noopener noreferrer"&gt;
        trafilea
      &lt;/a&gt; / &lt;a href="https://github.com/trafilea/nx-shopify" rel="noopener noreferrer"&gt;
        nx-shopify
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Nx plugin for developing performance-first Shopify themes 🚀
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fnrwl%2Fnx%2Fmaster%2Fimages%2Fnx-logo.png" width="80" height="50"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;
  Nx-Shopify
&lt;/h1&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;p&gt;&lt;a href="https://github.com/trafilea/nx-shopify/actions/workflows/e2e.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/trafilea/nx-shopify/actions/workflows/e2e.yml/badge.svg" alt="e2e"&gt;&lt;/a&gt;
&lt;a href="http://commitizen.github.io/cz-cli/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1d01d79de532fa2a8b9d3e1c29e2b5d6f700b6d36f108c8416faca472cb35b6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d6d6974697a656e2d667269656e646c792d627269676874677265656e2e737667" alt="Commitizen friendly"&gt;&lt;/a&gt;
&lt;a href="https://github.com/trafilea/nx-shopify/blob/master/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/34e973688eaffdcf48165a50d4b46612cc9bd464837f81d9e0e9989fd76f3966/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74726166696c65612f6e782d73686f70696679" alt="License"&gt;&lt;/a&gt;
&lt;a href="https://www.npmjs.com/package/@trafilea/nx-shopify" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/d2aff0ee53b9ebee998ca8d225799f6d58d1e7a7f22cd8f03514316d13d7be24/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f4074726166696c65612f6e782d73686f70696679" alt="npm (scoped)"&gt;&lt;/a&gt;
&lt;a href="https://www.npmjs.com/package/@trafilea/nx-shopify" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/92065019b6a335ae28ee762c0882121285c5dd8987d2df6d04d776b5cb9ef61a/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f4074726166696c65612f6e782d73686f70696679" alt="npm"&gt;&lt;/a&gt;
&lt;a href="https://github.com/semantic-release/semantic-release" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/251b82ec02847188c7f2f024d0a6752bb8e0422772baaace42e7a7dc3fd8c88a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2532302532302546302539462539332541362546302539462539412538302d73656d616e7469632d2d72656c656173652d6531303037392e737667" alt="semantic-release"&gt;&lt;/a&gt;
&lt;a href="https://github.com/prettier/prettier" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/97be20604d833ecbf2b0a9d3d17e3f0e29ae6de33b102c744849d0bf17f399e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d70726574746965722d6666363962342e7376673f7374796c653d666c61742d737175617265" alt="code style: prettier"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/trafilea/nx-shopify#contributors-" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/ebc019cd16befd901bfe054d09a21add163b3a820cdce210165560483fcc03f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616c6c5f636f6e7472696275746f72732d372d6f72616e67652e7376673f7374796c653d666c61742d737175617265" alt="All Contributors"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;🔎 &lt;strong&gt;An &lt;a href="https://nx.dev" rel="nofollow noopener noreferrer"&gt;Nx&lt;/a&gt; plugin for developing performance-first Shopify themes 🚀&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Be it you need to build a custom Shopify store theme, develop a generic theme or even maintain multiple stores/themes with shared code across them, this Nx plugin helps you power-up your development experience&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Getting Started&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;Install the Nx CLI globally&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;# npm
$ npm install --global nx

# yarn
$ yarn add --global nx

# pnpm
$ pnpm install --global nx
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Create an empty Nx workspace (or use an existing one)&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ npx create-nx-workspace my-org --preset=empty
$ cd ./my-org
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Install the Nx-Shopify plugin as a devDependency&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;# npm
$ npm install --save-dev @trafilea/nx-shopify

# yarn
$ yarn add --save-dev @trafilea/nx-shopify

# pnpm
$ pnpm install --save-dev @trafilea/nx-shopify
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate a Shopify theme using the Nx CLI&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ nx generate @trafilea/nx-shopify:theme my-theme
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Check the generators and executors provided by the plugin&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ nx list @trafilea/nx-shopify
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Documentation&lt;/h2&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;🤓 Read the full…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/trafilea/nx-shopify" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;h1&gt;
  
  
  A little history: Shopify Slate &amp;amp; Themekit
&lt;/h1&gt;

&lt;p&gt;Before being &lt;a href="https://github.com/Shopify/slate/pull/1091" rel="noopener noreferrer"&gt;deprecated in January 2020&lt;/a&gt;, Shopify's official toolkit for developing Shopify themes was &lt;a href="https://github.com/Shopify/slate" rel="noopener noreferrer"&gt;Slate&lt;/a&gt;. Slate provided a theme development environment that enabled the developer to have a better project structure than the regular directories found in a Shopify theme. With the deprecation of Slate, the only official tool for theme development left is &lt;a href="https://shopify.dev/tools/theme-kit" rel="noopener noreferrer"&gt;Themekit&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Themekit acts like a bridge between the developer's local files and the files found in a Shopify store's theme. The folder structure of a Themekit theme is meant more for the theme rendering process than for code maintainability or multiple developers constantly working on the same code base. Additionally, a Themekit project provides little to zero build tooling for the application code. &lt;/p&gt;

&lt;p&gt;This is how a basic Themekit project looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0zd9i6v38g40jnm5x1ep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0zd9i6v38g40jnm5x1ep.png" alt="Themekit Structure"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Given the context above, the need to have a well-defined project structure, dev ergonomics, high-quality code, and use of modern web technologies, were limited due to lack of tooling.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://trafilea.com" rel="noopener noreferrer"&gt;Trafilea&lt;/a&gt;, we heavily use Shopify themes and are constantly making changes to them according to our business needs and growth. Providing our developers a functional, stable, and feature-rich development experience is crucial, this why we built and open-sourced &lt;a href="https://github.com/trafilea/nx-shopify" rel="noopener noreferrer"&gt;Nx-Shopify&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;
  
  
  Nx-Shopify 🚀
&lt;/h1&gt;

&lt;p&gt;Nx-Shopify is an Nx plugin that adds support for modern Shopify Themes development to an Nx workspace. It comes with various features including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TypeScript based.&lt;/li&gt;
&lt;li&gt;Styling with SASS and PostCSS.&lt;/li&gt;
&lt;li&gt;Out of the box unit testing with Jest.&lt;/li&gt;
&lt;li&gt;Out of the box code formatting using Prettier and ESLint.&lt;/li&gt;
&lt;li&gt;Multiple application and Themekit environments.&lt;/li&gt;
&lt;li&gt;Code lazy loading.&lt;/li&gt;
&lt;li&gt;Code generator for creating new themes with separate configs.&lt;/li&gt;
&lt;li&gt;Code generators for creating theme blocks such as layouts, templates, sections, and snippets.&lt;/li&gt;
&lt;li&gt;React integration via &lt;code&gt;@nrwl/react&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Webpack extended configuration.&lt;/li&gt;
&lt;li&gt;➕ all features included in an Nx workspace.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nx-Shopify makes use of Shopify Themekit under the hood, so every project built with Nx-Shopify will be compliant with the themekit project format, in case you need to run specific themekit commands in your project. &lt;strong&gt;TIP:&lt;/strong&gt; you can add custom targets for your projects using the &lt;a href="http://nx.dev/workspace/run-commands-executor" rel="noopener noreferrer"&gt;Nx run commands executor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Ok, but...&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Nx?
&lt;/h2&gt;

&lt;p&gt;Nx is a set of dev tools for monorepos designed to provide a great development experience in a plug-and-play way. According to their website: "&lt;strong&gt;Nx&lt;/strong&gt; is a suite of powerful, extensible dev tools to help you architect, test, and build at any scale — integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more."&lt;/p&gt;

&lt;p&gt;Watch this 35 seconds video to have a general overview of some of the things Nx does:&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/BIeQTWLyAqc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;(We ❤️ Nx)&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Generators
&lt;/h2&gt;

&lt;p&gt;Most Nx plugins include code generators to facilitate developers' life so they can focus on what really matters. Nx-Shopify includes generators for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://trafilea.github.io/nx-shopify/docs/fundamentals/creating-a-theme" rel="noopener noreferrer"&gt;New themes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/generators/layout" rel="noopener noreferrer"&gt;Layouts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/generators/template" rel="noopener noreferrer"&gt;Templates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/generators/section" rel="noopener noreferrer"&gt;Sections&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/generators/snippet" rel="noopener noreferrer"&gt;Snippets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A fresh generated Shopify theme would look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbnm046v355dupw99pdh5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbnm046v355dupw99pdh5.png" alt="Nx-Shopify Structure"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every theme block is organized in a component-based/cohesive design with its respective Liquid, styles, Typescript, and test files. You can also nest blocks under another block's directory if that makes sense to you. You have control of your theme project architecture. &lt;/p&gt;

&lt;h2&gt;
  
  
  CLI commands
&lt;/h2&gt;

&lt;p&gt;The CLI commands that can be executed against a theme are known in Nx as executors. The list of executors included with Nx-Shopify are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/executors/build" rel="noopener noreferrer"&gt;build&lt;/a&gt; - Builds the theme to a Themekit compliant structure ready to be deployed to Shopify&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/executors/serve" rel="noopener noreferrer"&gt;serve&lt;/a&gt; - Runs a local web &amp;amp; assets server for local theme development&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/executors/test" rel="noopener noreferrer"&gt;test&lt;/a&gt; - Runs Jest tests against the theme code.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://trafilea.github.io/nx-shopify/docs/cli-usage/executors/deploy" rel="noopener noreferrer"&gt;deploy&lt;/a&gt; - Deploys a built theme to Shopify according to the Themekit environment configured in the &lt;code&gt;config.yml&lt;/code&gt; file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You get a list of all plugin's generators and executors by running the following command in your workspace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nx list @trafilea/nx-shopify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  React integration via &lt;code&gt;@nrwl/react&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Do not miss the &lt;a href="https://trafilea.github.io/nx-shopify/docs/guides/using-react" rel="noopener noreferrer"&gt;React integration step-by-step guide&lt;/a&gt; on our docs site.&lt;/p&gt;



&lt;p&gt;Star ⭐ the repo, check the &lt;a href="https://trafilea.github.io/nx-shopify/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;, and power up your Shopify themes development experience!&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/trafilea" rel="noopener noreferrer"&gt;
        trafilea
      &lt;/a&gt; / &lt;a href="https://github.com/trafilea/nx-shopify" rel="noopener noreferrer"&gt;
        nx-shopify
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Nx plugin for developing performance-first Shopify themes 🚀
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fnrwl%2Fnx%2Fmaster%2Fimages%2Fnx-logo.png" width="80" height="50"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;
  Nx-Shopify
&lt;/h1&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;p&gt;&lt;a href="https://github.com/trafilea/nx-shopify/actions/workflows/e2e.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/trafilea/nx-shopify/actions/workflows/e2e.yml/badge.svg" alt="e2e"&gt;&lt;/a&gt;
&lt;a href="http://commitizen.github.io/cz-cli/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1d01d79de532fa2a8b9d3e1c29e2b5d6f700b6d36f108c8416faca472cb35b6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d6d6974697a656e2d667269656e646c792d627269676874677265656e2e737667" alt="Commitizen friendly"&gt;&lt;/a&gt;
&lt;a href="https://github.com/trafilea/nx-shopify/blob/master/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/34e973688eaffdcf48165a50d4b46612cc9bd464837f81d9e0e9989fd76f3966/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74726166696c65612f6e782d73686f70696679" alt="License"&gt;&lt;/a&gt;
&lt;a href="https://www.npmjs.com/package/@trafilea/nx-shopify" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/d2aff0ee53b9ebee998ca8d225799f6d58d1e7a7f22cd8f03514316d13d7be24/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f4074726166696c65612f6e782d73686f70696679" alt="npm (scoped)"&gt;&lt;/a&gt;
&lt;a href="https://www.npmjs.com/package/@trafilea/nx-shopify" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/92065019b6a335ae28ee762c0882121285c5dd8987d2df6d04d776b5cb9ef61a/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f4074726166696c65612f6e782d73686f70696679" alt="npm"&gt;&lt;/a&gt;
&lt;a href="https://github.com/semantic-release/semantic-release" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/251b82ec02847188c7f2f024d0a6752bb8e0422772baaace42e7a7dc3fd8c88a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2532302532302546302539462539332541362546302539462539412538302d73656d616e7469632d2d72656c656173652d6531303037392e737667" alt="semantic-release"&gt;&lt;/a&gt;
&lt;a href="https://github.com/prettier/prettier" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/97be20604d833ecbf2b0a9d3d17e3f0e29ae6de33b102c744849d0bf17f399e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d70726574746965722d6666363962342e7376673f7374796c653d666c61742d737175617265" alt="code style: prettier"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/trafilea/nx-shopify#contributors-" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/ebc019cd16befd901bfe054d09a21add163b3a820cdce210165560483fcc03f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616c6c5f636f6e7472696275746f72732d372d6f72616e67652e7376673f7374796c653d666c61742d737175617265" alt="All Contributors"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;🔎 &lt;strong&gt;An &lt;a href="https://nx.dev" rel="nofollow noopener noreferrer"&gt;Nx&lt;/a&gt; plugin for developing performance-first Shopify themes 🚀&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Be it you need to build a custom Shopify store theme, develop a generic theme or even maintain multiple stores/themes with shared code across them, this Nx plugin helps you power-up your development experience&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Getting Started&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;Install the Nx CLI globally&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;# npm
$ npm install --global nx

# yarn
$ yarn add --global nx

# pnpm
$ pnpm install --global nx
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Create an empty Nx workspace (or use an existing one)&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ npx create-nx-workspace my-org --preset=empty
$ cd ./my-org
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Install the Nx-Shopify plugin as a devDependency&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;# npm
$ npm install --save-dev @trafilea/nx-shopify

# yarn
$ yarn add --save-dev @trafilea/nx-shopify

# pnpm
$ pnpm install --save-dev @trafilea/nx-shopify
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate a Shopify theme using the Nx CLI&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ nx generate @trafilea/nx-shopify:theme my-theme
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Check the generators and executors provided by the plugin&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ nx list @trafilea/nx-shopify
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Documentation&lt;/h2&gt;

&lt;/div&gt;


&lt;ul&gt;

&lt;li&gt;🤓 Read the full…&lt;/li&gt;

&lt;/ul&gt;
&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/trafilea/nx-shopify" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>typescript</category>
      <category>shopify</category>
    </item>
  </channel>
</rss>
