Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move theme utilities to cli-kit #4469

Closed

Conversation

jeffreyguenther
Copy link

WHY are these changes introduced?

I propose this move to enable CLI plugin developers to use the utilities used by the theme commands. cli-kit provides a large collection of utilities for making Shopify CLIs. It contains all of the shared code between the various CLI packages.

There even is a theme folder with a limited set of functionality. Rather than be limited by what's there today, I propose that all the building blocks for the theme commands be moved to to cli-kit. It will allow CLI plugins like Shopkeeper to tightly integrate with the Shopify CLI.

Shopkeeper is a way to address: #4438 and #3509

I have not completed the refactor and open this as a draft because I want to get your buy-in before completing the work. Also, I'm open to discussing the exact list of utilities moved over. My preference is more is better, but let's talk!

Also #4467 prevents me from doing the work locally.

WHAT is this pull request doing?

This PR moves a set of the theme utilities from the theme package to cli-kit.

How to test your changes?

Running the CLI test suite should do the job. This is just a relocation of files.

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

@jeffreyguenther
Copy link
Author

Based on my conversation with @benjaminsehl, the CLI team will be tackling this need in an upcoming release.

Thanks for hearing me out! Appreciate it! 🙌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant