npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

plugin-theme-component

v4.0.2

Published

Archetype Theme's Shopify CLI theme component plugin

Downloads

290

Readme

Theme component plugin

oclif Static Badge License: MIT

A Shopify CLI plugin for building theme components.

The plugin-theme-component repository is a foundational part of the Archetype Devkit preview. It provides commands to create, develop, and install a collection of theme components.

Getting Started

Prerequisites

You'll need to ensure you have the following installed on your local development machine:

Installation

Simply run the following command to install the Shopify CLI plugin:

shopify plugins install plugin-theme-component

Uninstalling the plugin

If you want to uninstall the plugin from the Shopify CLI, you can run the following command:

shopify plugins uninstall plugin-theme-component

List of commands

shopify theme component

Theme Component Plugin - By Archetype Themes

USAGE
  $ shopify theme component [-v]

FLAGS
  -v, --version  Display Plugin Version

DESCRIPTION
  Theme Component Plugin - By Archetype Themes

See code: src/commands/theme/component/index.js

shopify theme component dev [COMPONENTS]

Develop using theme components

USAGE
  $ shopify theme component dev [COMPONENTS...] [--debug] [--trace] [-t <path-or-github-url>] [-s] [-w] [--sync]

ARGUMENTS
  COMPONENTS...  Component name(s)

FLAGS
  -s, --[no-]setup-files  Copy Setup Files
  -w, --[no-]watch        Watch For Changes
      --[no-]sync         Sync your files through shopify theme dev

PATH FLAGS
  -t, --theme-path=<path-or-github-url>  [default: https://github.com/archetype-themes/plugin-theme-component/tree/main/
                                         resources/explorer] Path to your theme

DEBUG FLAGS
  --debug  Debug Mode is more verbose.
  --trace  Trace Mode provides tracing and debug information.

DESCRIPTION
  Develop using theme components

FLAG DESCRIPTIONS
  -s, --[no-]setup-files  Copy Setup Files

    Installs component setup files in your dev theme to allow component exploration in an isolated environment.

  -t, --theme-path=<path-or-github-url>  Path to your theme

    The path to your theme should point to a GitHub URL or a local path. This defaults to Archetype Themes' publicly
    shared component explorer theme.

  -w, --[no-]watch  Watch For Changes

    Any changes to component and theme source files triggers a file copy and theme build if necessary.

  --[no-]sync  Sync your files through shopify theme dev

    This will execute `shopify theme dev --path .explorer` along with your component dev command. You can customize
    options for that command in your toml file.

See code: src/commands/theme/component/dev.js

shopify theme component generate COMPONENTS

Generate canvas files for new components

USAGE
  $ shopify theme component generate COMPONENTS... [--debug] [--trace]

ARGUMENTS
  COMPONENTS...  Component name(s)

DEBUG FLAGS
  --debug  Debug Mode is more verbose.
  --trace  Trace Mode provides tracing and debug information.

DESCRIPTION
  Generate canvas files for new components

See code: src/commands/theme/component/generate.js

shopify theme component install [COMPONENTS]

Install a collection of components

USAGE
  $ shopify theme component install [COMPONENTS...] [--debug] [--trace] [-c <path-or-github-url>]

ARGUMENTS
  COMPONENTS...  Component name(s)

PATH FLAGS
  -c, --components-path=<path-or-github-url>  [default: https://github.com/archetype-themes/reference-components.git]
                                              Path to your components

DEBUG FLAGS
  --debug  Debug Mode is more verbose.
  --trace  Trace Mode provides tracing and debug information.

DESCRIPTION
  Install a collection of components

FLAG DESCRIPTIONS
  -c, --components-path=<path-or-github-url>  Path to your components

    The path to your components should point to a GitHub URL or a local path. This defaults to Archetype Themes'
    publicly shared reference components.

See code: src/commands/theme/component/install.js

Contributing

Interested in shaping the future of theme development with us? We welcome you to join our community! Your insights and discussions play a crucial role in our continuous improvement. We encourage you to start discussions, ask questions, and provide feedback on our component approach.

If you notice a bug, or want to contribute to the codebase, feel free to do so in the form of creating an issue or pull request.

Developing the plugin locally

If you already have the plugin installed via npm, you'll need to uninstall the plugin before being able to develop the plugin locally.

Once this is done, follow these steps to ensure the Shopify CLI is running the local version of the plugin:

  • git clone https://github.com/archetype-themes/plugin-theme-component.git
  • cd plugin-theme-component
  • npm ci
  • shopify plugins link