From 9d22c332a9272e16b7f33ef4073e8034277a847b Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 11:58:44 -0500 Subject: [PATCH 1/6] Say that this repository is a read-only mirror Theme Tools is moving to Shopify's monorepo, and this repository becomes its public, read-only mirror: it takes issues and no pull requests. - CONTRIBUTING.md explains the mirror, how to report an issue, and how to build and test locally. It becomes a file of its own, and docs/contributing.md, which it linked to, points to it. - The pull request template says that pull requests from forks are closed, and links issues. - The Contributing sections of README.md, docs/README.md and the Prettier plugin's CONTRIBUTING.md say the same, and the Prettier plugin's README links this repository's issues. --- .github/PULL_REQUEST_TEMPLATE.md | 44 +---- CONTRIBUTING.md | 64 ++++++- README.md | 6 +- docs/README.md | 6 +- docs/contributing.md | 158 +----------------- .../prettier-plugin-liquid/CONTRIBUTING.md | 6 +- packages/prettier-plugin-liquid/README.md | 2 +- 7 files changed, 78 insertions(+), 208 deletions(-) mode change 120000 => 100644 CONTRIBUTING.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 2f5c6a40c..1e4315d03 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,39 +1,5 @@ -## What are you adding in this PR? - - - - -## What's next? Any followup issues? - - - -## What did you learn? - - - -## Tophatting - - -- [ ] I added screenshots of the changes (before and after the changes if applicable) - -## Before you deploy - - - - -- [ ] This PR includes a new checks or changes the configuration of a check - - [ ] It passes the [precision gates](https://github.com/Shopify/theme-tools/blob/main/docs/review-guidelines.md#precision) - - [ ] I included a minor bump `changeset` - - [ ] I ran `pnpm build` and committed the updated configuration files - - - - - [ ] If applicable, I've updated the `theme-app-extension.yml` config - - [ ] [Shopifolk] I've made a PR to update the [shopify.dev theme check docs](https://github.com/Shopify/shopify-dev/tree/main/content/storefronts/themes/tools/theme-check/checks) if applicable (link PR here). - - -- [ ] I included a minor bump `changeset` -- [ ] My feature is [backward compatible](https://github.com/Shopify/theme-tools/blob/main/docs/review-guidelines.md#compatibility) - - -- [ ] I included a patch bump `changeset` +> [!IMPORTANT] +> This repository is a read-only mirror of Shopify's monorepo, and it doesn't accept pull requests. +> A pull request from a fork is closed automatically. To report a bug or ask for a feature, +> please [open an issue](https://github.com/Shopify/theme-tools/issues/new/choose). +> [CONTRIBUTING.md](https://github.com/Shopify/theme-tools/blob/main/CONTRIBUTING.md) has the details. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 120000 index d0fcfe91a..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1 +0,0 @@ -docs/contributing.md \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..38066a3a5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,63 @@ +# Contributing to Theme Tools + +## This repository is a mirror + +Shopify develops Theme Tools in its monorepo. This repository is a public, read-only mirror of it: +after each change merges there, a bot publishes it here as a pull request from the +`world-mirror/main` branch and merges it once the checks pass. + +- **We don't accept pull requests here.** A pull request from a fork is closed automatically, with + a link to this file. We can't merge it, because the next update from the monorepo would replace + it. +- **Issues are open.** Report a bug or ask for a feature in + [issues](https://github.com/Shopify/theme-tools/issues/new/choose). A clear issue with a small + example is the best way to get a change made. +- **When a fix for your issue ships,** the mirror's pull request says `Fixes #`, and + GitHub closes your issue when that pull request merges. +- **Releases** still publish from this repository's `main`, to the same places as before. + +## Reporting issues + +1. **Check for existing issues.** Search the open and closed issues first. +2. **Choose the right template.** Use the bug report or the feature request template. +3. **Write a clear title** that sums up the problem or the idea. +4. **Describe it in detail.** For a bug, give the Liquid or JSON that causes it, the steps to + reproduce it, the error message, what you expected and what happened. Screenshots help. +5. **Include your environment:** the package or extension version, your operating system, your + Node.js version, and your editor or browser if it matters. + +## Building and testing locally + +You can still build and run everything here, for example to reproduce a bug or to try a fix +before you describe it in an issue. + +1. Clone the repository: `git clone https://github.com/Shopify/theme-tools.git` +2. Install the dependencies: `cd theme-tools && pnpm install` +3. Build the packages: `pnpm build` +4. Run the tests: `pnpm test` for TypeScript, and `cargo test --workspace` for Rust. + +### Debugging the VS Code extension + +Add a breakpoint in any package the extension uses and press `F5` in VS Code. A development +instance opens with your build. + +### The CodeMirror playground + +`pnpm playground` starts a browser with `@shopify/theme-language-server-browser`. + +### VS Code for the Web + +`pnpm dev:web` starts `@vscode/test-web` in Chrome with the extension loaded. For better +debugging, use the `Run Web Extension` launch configuration in the desktop app instead. + +### Trying JSON Schema changes from Shopify/theme-liquid-docs + +1. With VS Code closed, go to your clone of Shopify/theme-liquid-docs and run + `export SHOPIFY_TLD_ROOT=$(pwd)`. +2. Go to your clone of this repository. +3. Run `theme-docs download`, then `code .`. Run `theme-docs download` again after each change. +4. Debug the extension or the playground as usual. + +## Code of conduct + +Everyone who takes part in issues follows our [Code of Conduct](./CODE_OF_CONDUCT.md). diff --git a/README.md b/README.md index f0c47b9c3..75835107f 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ They can be used individually or collectively, catering to varied use cases and ## Contributing -Contributions to the Theme Tools repository are highly encouraged. - -See [CONTRIBUTING.md](./docs/contributing.md) for more details. +This repository is a read-only mirror of Shopify's monorepo, so we don't accept pull requests. +Please report bugs and request features in [issues](https://github.com/Shopify/theme-tools/issues). +[CONTRIBUTING.md](./CONTRIBUTING.md) has the details. ## License diff --git a/docs/README.md b/docs/README.md index 91c799cfd..34b150676 100644 --- a/docs/README.md +++ b/docs/README.md @@ -15,11 +15,13 @@ We encourage you to explore these documents to better understand the capabilitie ## Contributing -We welcome contributions to the Shopify Theme Tools repository. If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcomed. +This repository is a read-only mirror of Shopify's monorepo, so we don't accept pull requests. +Please report bugs and request features in [issues](https://github.com/Shopify/theme-tools/issues). +[CONTRIBUTING.md](../CONTRIBUTING.md) has the details. For more information, you may check with the following places: - [Code of conduct](./code-of-conduct.md) -- [Contributing](./contributing.md) +- [Contributing](../CONTRIBUTING.md) - [Review guidelines](./review-guidelines.md) For all other questions please contact the Shopify Theme Code Tools team. diff --git a/docs/contributing.md b/docs/contributing.md index d47a6447e..972764a5e 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -1,157 +1 @@ -# Contributing to theme-tools - -Thank you for your interest in contributing to theme-tools! Your contributions will help make this project better and more reliable. This document provides guidelines and instructions for setting up your development environment and contributing to the theme-tools repository. - -## Table of Contents - -- [Setting Up Your Environment](#setting-up-your-environment) -- [Submitting a Pull Request](#submitting-a-pull-request) -- [Reporting Issues](#reporting-issues) -- [Code of Conduct](#code-of-conduct) - -## Setting Up Your Environment - -Before you can start contributing to theme-tools, you'll need to set up your development environment. Follow these steps to get started: - -1. **Clone the repository**: Clone the theme-tools repository to your local machine by running the following command in your terminal: - - ```bash - git clone https://github.com/Shopify/theme-tools.git - ``` - -2. **Install dependencies**: Navigate to the project directory and install the required dependencies by running: - - ```bash - cd theme-tools - pnpm install - ``` - -3. **Build monorepo packages**: Ensure that all packages can be buildable: - - ```bash - pnpm build - ``` - -4. **Run tests**: Ensure that all tests pass by running: - - ```bash - pnpm test - ``` - -5. **Start developing**: If you're developing changes to test against the vscode extension, all you need to do is add a breakpoint anywhere in a package used within the VS Code extension, hit `f5` in VS Code and your development instance of theme-check will automatically open. - -### Developing for online-store-web (Shopifolk only) - -To set up the package links to online-store-web, within this repo root run: `pnpm admin:init` - -This process has a small gotcha: online-store-web needs to use the built assets from theme-tools. This means that hot-reload is off the table. - -Once you've made some changes to your local theme-tools packages, to see those changes represented in online-store-web; within this repo root run: `pnpm admin:build` - -### Developing for codemirror-language-client - -Run the following command to start a browser instance that runs `@shopify/theme-language-server-browser`. - -```bash -pnpm playground -``` - -### Developing for VS Code for Web - -#### In Chrome - -Run the following command to start a `@vscode/test-web` instance in Chrome with the Shopify Liquid extension loaded. - -```bash -pnpm dev:web -``` - -#### In the desktop app - -Because the Chrome version doesn't have great debugging, you can also use the `Run Web Extension` Launch configuration to debug the extension. - -This starts a Extension Host window like the normal `F5` flow, but instead of running the node extension, it's running the browser extension. - -### Testing JSON Schema changes on Shopify/theme-liquid-docs - -If ever you want to see how the VS Code extension or playground would behave before merging a PR to Shopify/theme-liquid-docs, you can do the following: - -1. In a terminal, with VS Code closed, go to the Shopify/theme-liquid-docs directory. - - ```sh - # Shopifolk - dev cd theme-liquid-docs - - # External - cd /path/to/theme-liquid-docs - ``` - -2. Export the root of that repository in the `SHOPIFY_TLD_ROOT` environment variable - - ```sh - export SHOPIFY_TLD_ROOT=$(pwd) - ``` - -3. Go to the Shopify/theme-tools directory. - - ```sh - # Shopifolk - dev cd theme-tools - - # External - cd /path/to/theme-tools - ``` - -4. Update the docs and start VS Code from that directory. - - ```sh - # update the docs - theme-docs download - - # start vscode - code . - ``` - -5. (Repeat) You can repeat the `theme-docs download` command to have updated changes. - - ```sh - theme-docs download - ``` - -6. Proceed to debug the VS Code extension or playground as usual. - -## Submitting a Pull Request - -Before you open a pull request, read the [review guidelines](./review-guidelines.md). Reviewers use them to decide whether a change can merge. - -Once you've made changes to the codebase and are ready to submit a pull request (PR), follow these steps: - -1. **Commit your changes**: Commit your changes with a descriptive commit message. - -2. **Push your changes**: Push your changes to the theme-tools repository on GitHub. - -3. **Create a pull request**: Go to the theme-tools repository and click on the "New Pull Request" button. Select the branch containing your changes as the head branch. - -4. **Describe your changes**: Write a clear and concise description of the changes you made, the issue or feature request it addresses, and any additional information that may be helpful for reviewers. - -5. **Submit your pull request**: Click the "Create Pull Request" button to submit your PR for review. - -## Code of conduct - -All developers who wish to contribute through code or issues, please first read our [Code of Conduct](./code-of-conduct.md). - -## Reporting Issues - -If you encounter any issues or have suggestions for improvements, please feel free to report them by creating a new issue in the theme-tools repository. When reporting an issue, please follow these guidelines to help us better understand and address your concerns: - -1. **Check for existing issues**: Before creating a new issue, please search the existing issues to see if someone has already reported the problem or made the same suggestion. - -2. **Choose the right issue template**: When creating a new issue, select the appropriate issue template (if available) to provide the necessary information. - -3. **Provide a clear title**: Write a concise and descriptive title that briefly summarizes the issue or suggestion. - -4. **Describe the issue in detail**: In the issue description, provide as much relevant information as possible. Include steps to reproduce the issue, any error messages, the expected behavior, and the actual behavior. If applicable, include screenshots or screen recordings to help illustrate the problem. - -5. **Include your environment**: Mention the version of theme-tools you are using, as well as any relevant information about your operating system, Node.js version, and browser (if applicable). - -By following these guidelines, you'll help us better understand the issue and address it more effectively. We appreciate your feedback and contributions! +See [CONTRIBUTING.md](../CONTRIBUTING.md). diff --git a/packages/prettier-plugin-liquid/CONTRIBUTING.md b/packages/prettier-plugin-liquid/CONTRIBUTING.md index 6fd9993e3..11f145ee7 100644 --- a/packages/prettier-plugin-liquid/CONTRIBUTING.md +++ b/packages/prettier-plugin-liquid/CONTRIBUTING.md @@ -82,8 +82,4 @@ prettier --plugin . --write path/to/files.liquid ## How to contribute -1. Fork it ( https://github.com/Shopify/prettier-plugin-liquid/fork ) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create a new Pull Request +This plugin lives in [Shopify/theme-tools](https://github.com/Shopify/theme-tools), a read-only mirror of Shopify's monorepo that doesn't accept pull requests. Please report bugs and request features in [its issues](https://github.com/Shopify/theme-tools/issues). [CONTRIBUTING.md](https://github.com/Shopify/theme-tools/blob/main/CONTRIBUTING.md) has the details. diff --git a/packages/prettier-plugin-liquid/README.md b/packages/prettier-plugin-liquid/README.md index d92fd7421..7d4668cf5 100644 --- a/packages/prettier-plugin-liquid/README.md +++ b/packages/prettier-plugin-liquid/README.md @@ -147,7 +147,7 @@ Examples: ## Known issues -Take a look at our [known issues](./KNOWN_ISSUES.md) and [open issues](https://github.com/Shopify/prettier-plugin-liquid/issues). +Take a look at our [known issues](./KNOWN_ISSUES.md) and [open issues](https://github.com/Shopify/theme-tools/issues). ## Contributing From 874aab1ffe667e7e6595e790cdc6a59a64e1636a Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 12:06:11 -0500 Subject: [PATCH 2/6] Add a patch changeset for the Prettier plugin's docs Its README and CONTRIBUTING.md ship in the npm package. The changeset also gives the last release from this repository something to publish. --- .changeset/read-only-mirror-docs.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/read-only-mirror-docs.md diff --git a/.changeset/read-only-mirror-docs.md b/.changeset/read-only-mirror-docs.md new file mode 100644 index 000000000..bca7867b3 --- /dev/null +++ b/.changeset/read-only-mirror-docs.md @@ -0,0 +1,5 @@ +--- +'@shopify/prettier-plugin-liquid': patch +--- + +Point the README and CONTRIBUTING.md at the Shopify/theme-tools issues, since the repository no longer accepts pull requests From 2c6117327c186bca904d74170332600f123a0267 Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 12:18:01 -0500 Subject: [PATCH 3/6] Make docs/contributing.md a symlink to CONTRIBUTING.md The root file holds the text, and the old path shows the same text, as the symlink did the other way round. --- docs/contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 120000 docs/contributing.md diff --git a/docs/contributing.md b/docs/contributing.md deleted file mode 100644 index 972764a5e..000000000 --- a/docs/contributing.md +++ /dev/null @@ -1 +0,0 @@ -See [CONTRIBUTING.md](../CONTRIBUTING.md). diff --git a/docs/contributing.md b/docs/contributing.md new file mode 120000 index 000000000..44fcc6343 --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1 @@ +../CONTRIBUTING.md \ No newline at end of file From 195067d9feb5005b93edd49ec750eefedb1e1751 Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 12:52:25 -0500 Subject: [PATCH 4/6] Keep the contributing guide in docs/contributing.md CONTRIBUTING.md stays a symlink to it, as on main. GitHub already follows that symlink, so the swap only made the diff harder to read, and the package READMEs that link docs/contributing.md keep pointing at the file. --- CONTRIBUTING.md | 64 +------------------------------------------- README.md | 2 +- docs/README.md | 4 +-- docs/contributing.md | 64 +++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 67 insertions(+), 67 deletions(-) mode change 100644 => 120000 CONTRIBUTING.md mode change 120000 => 100644 docs/contributing.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 38066a3a5..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,63 +0,0 @@ -# Contributing to Theme Tools - -## This repository is a mirror - -Shopify develops Theme Tools in its monorepo. This repository is a public, read-only mirror of it: -after each change merges there, a bot publishes it here as a pull request from the -`world-mirror/main` branch and merges it once the checks pass. - -- **We don't accept pull requests here.** A pull request from a fork is closed automatically, with - a link to this file. We can't merge it, because the next update from the monorepo would replace - it. -- **Issues are open.** Report a bug or ask for a feature in - [issues](https://github.com/Shopify/theme-tools/issues/new/choose). A clear issue with a small - example is the best way to get a change made. -- **When a fix for your issue ships,** the mirror's pull request says `Fixes #`, and - GitHub closes your issue when that pull request merges. -- **Releases** still publish from this repository's `main`, to the same places as before. - -## Reporting issues - -1. **Check for existing issues.** Search the open and closed issues first. -2. **Choose the right template.** Use the bug report or the feature request template. -3. **Write a clear title** that sums up the problem or the idea. -4. **Describe it in detail.** For a bug, give the Liquid or JSON that causes it, the steps to - reproduce it, the error message, what you expected and what happened. Screenshots help. -5. **Include your environment:** the package or extension version, your operating system, your - Node.js version, and your editor or browser if it matters. - -## Building and testing locally - -You can still build and run everything here, for example to reproduce a bug or to try a fix -before you describe it in an issue. - -1. Clone the repository: `git clone https://github.com/Shopify/theme-tools.git` -2. Install the dependencies: `cd theme-tools && pnpm install` -3. Build the packages: `pnpm build` -4. Run the tests: `pnpm test` for TypeScript, and `cargo test --workspace` for Rust. - -### Debugging the VS Code extension - -Add a breakpoint in any package the extension uses and press `F5` in VS Code. A development -instance opens with your build. - -### The CodeMirror playground - -`pnpm playground` starts a browser with `@shopify/theme-language-server-browser`. - -### VS Code for the Web - -`pnpm dev:web` starts `@vscode/test-web` in Chrome with the extension loaded. For better -debugging, use the `Run Web Extension` launch configuration in the desktop app instead. - -### Trying JSON Schema changes from Shopify/theme-liquid-docs - -1. With VS Code closed, go to your clone of Shopify/theme-liquid-docs and run - `export SHOPIFY_TLD_ROOT=$(pwd)`. -2. Go to your clone of this repository. -3. Run `theme-docs download`, then `code .`. Run `theme-docs download` again after each change. -4. Debug the extension or the playground as usual. - -## Code of conduct - -Everyone who takes part in issues follows our [Code of Conduct](./CODE_OF_CONDUCT.md). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 120000 index 000000000..d0fcfe91a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +docs/contributing.md \ No newline at end of file diff --git a/README.md b/README.md index 75835107f..ba43d72e4 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ They can be used individually or collectively, catering to varied use cases and This repository is a read-only mirror of Shopify's monorepo, so we don't accept pull requests. Please report bugs and request features in [issues](https://github.com/Shopify/theme-tools/issues). -[CONTRIBUTING.md](./CONTRIBUTING.md) has the details. +[CONTRIBUTING.md](./docs/contributing.md) has the details. ## License diff --git a/docs/README.md b/docs/README.md index 34b150676..17ba70685 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,11 +17,11 @@ We encourage you to explore these documents to better understand the capabilitie This repository is a read-only mirror of Shopify's monorepo, so we don't accept pull requests. Please report bugs and request features in [issues](https://github.com/Shopify/theme-tools/issues). -[CONTRIBUTING.md](../CONTRIBUTING.md) has the details. +[CONTRIBUTING.md](./contributing.md) has the details. For more information, you may check with the following places: - [Code of conduct](./code-of-conduct.md) -- [Contributing](../CONTRIBUTING.md) +- [Contributing](./contributing.md) - [Review guidelines](./review-guidelines.md) For all other questions please contact the Shopify Theme Code Tools team. diff --git a/docs/contributing.md b/docs/contributing.md deleted file mode 120000 index 44fcc6343..000000000 --- a/docs/contributing.md +++ /dev/null @@ -1 +0,0 @@ -../CONTRIBUTING.md \ No newline at end of file diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 000000000..5f6e900bf --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1,63 @@ +# Contributing to Theme Tools + +## This repository is a mirror + +Shopify develops Theme Tools in its monorepo. This repository is a public, read-only mirror of it: +after each change merges there, a bot publishes it here as a pull request from the +`world-mirror/main` branch and merges it once the checks pass. + +- **We don't accept pull requests here.** A pull request from a fork is closed automatically, with + a link to this file. We can't merge it, because the next update from the monorepo would replace + it. +- **Issues are open.** Report a bug or ask for a feature in + [issues](https://github.com/Shopify/theme-tools/issues/new/choose). A clear issue with a small + example is the best way to get a change made. +- **When a fix for your issue ships,** the mirror's pull request says `Fixes #`, and + GitHub closes your issue when that pull request merges. +- **Releases** still publish from this repository's `main`, to the same places as before. + +## Reporting issues + +1. **Check for existing issues.** Search the open and closed issues first. +2. **Choose the right template.** Use the bug report or the feature request template. +3. **Write a clear title** that sums up the problem or the idea. +4. **Describe it in detail.** For a bug, give the Liquid or JSON that causes it, the steps to + reproduce it, the error message, what you expected and what happened. Screenshots help. +5. **Include your environment:** the package or extension version, your operating system, your + Node.js version, and your editor or browser if it matters. + +## Building and testing locally + +You can still build and run everything here, for example to reproduce a bug or to try a fix +before you describe it in an issue. + +1. Clone the repository: `git clone https://github.com/Shopify/theme-tools.git` +2. Install the dependencies: `cd theme-tools && pnpm install` +3. Build the packages: `pnpm build` +4. Run the tests: `pnpm test` for TypeScript, and `cargo test --workspace` for Rust. + +### Debugging the VS Code extension + +Add a breakpoint in any package the extension uses and press `F5` in VS Code. A development +instance opens with your build. + +### The CodeMirror playground + +`pnpm playground` starts a browser with `@shopify/theme-language-server-browser`. + +### VS Code for the Web + +`pnpm dev:web` starts `@vscode/test-web` in Chrome with the extension loaded. For better +debugging, use the `Run Web Extension` launch configuration in the desktop app instead. + +### Trying JSON Schema changes from Shopify/theme-liquid-docs + +1. With VS Code closed, go to your clone of Shopify/theme-liquid-docs and run + `export SHOPIFY_TLD_ROOT=$(pwd)`. +2. Go to your clone of this repository. +3. Run `theme-docs download`, then `code .`. Run `theme-docs download` again after each change. +4. Debug the extension or the playground as usual. + +## Code of conduct + +Everyone who takes part in issues follows our [Code of Conduct](./code-of-conduct.md). From 691e0f53423257def411548865cf9db92f5b8361 Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 12:52:25 -0500 Subject: [PATCH 5/6] Remove the Prettier plugin's contributing guide The plugin takes no contributions here, and the monorepo has its own top-level guide. The README's Contributing section now says where to report issues. --- .changeset/read-only-mirror-docs.md | 2 +- .../prettier-plugin-liquid/CONTRIBUTING.md | 85 ------------------- packages/prettier-plugin-liquid/README.md | 2 +- 3 files changed, 2 insertions(+), 87 deletions(-) delete mode 100644 packages/prettier-plugin-liquid/CONTRIBUTING.md diff --git a/.changeset/read-only-mirror-docs.md b/.changeset/read-only-mirror-docs.md index bca7867b3..0fe15aade 100644 --- a/.changeset/read-only-mirror-docs.md +++ b/.changeset/read-only-mirror-docs.md @@ -2,4 +2,4 @@ '@shopify/prettier-plugin-liquid': patch --- -Point the README and CONTRIBUTING.md at the Shopify/theme-tools issues, since the repository no longer accepts pull requests +Point the README at the Shopify/theme-tools issues, since the repository no longer accepts pull requests diff --git a/packages/prettier-plugin-liquid/CONTRIBUTING.md b/packages/prettier-plugin-liquid/CONTRIBUTING.md deleted file mode 100644 index 11f145ee7..000000000 --- a/packages/prettier-plugin-liquid/CONTRIBUTING.md +++ /dev/null @@ -1,85 +0,0 @@ -# Contributing to @shopify/prettier-plugin-liquid - -Requirements: - -- Node v16+ -- pnpm - -``` -git clone git@github.com:Shopify/prettier-plugin-liquid.git -pnpm install -pnpm test -``` - -## Context - -There's a lot of abstract concepts that goes into making this plugin. - -- Take a look at our plugin's [principles](./docs/principles/index.md). -- Read [HOW_IT_WORKS.md](HOW_IT_WORKS.md) for a technical overview. -- Read [Whitespace Handling](./docs/whitespace-handling.md) for an overview of how we deal with that internally. - -The source code for this plugin is in TypeScript. - -## Standards - -- PR should explain what the feature does, and why the change exists. -- PR should include any carrier specific documentation explaining how it works. -- Code should be generic and reusable. - -## Formating - -This plugin uses prettier to format its TypeScript codebase. To format your code before a commit, run the following command: - -``` -pnpm format -``` - -## Testing - -This prettier plugin has two suites of tests: unit tests and integration tests. - -To run the unit tests: - -```bash -pnpm test:unit -``` - -To run the integration tests (where we make sure an input file gets transformed into another after running prettier): - -```bash -pnpm test:integration -``` - -To run the idempotence tests (where we make sure running prettier twice on an input file returns the same result): -```bash -pnpm test:idempotence -``` - -To run all tests: - -```bash -pnpm test -``` - -To run from source on another repo or file: - -```bash -# build the code so you can run it (only need to do it once) -pnpm build - -# run prettier on a file or folder -prettier --plugin . --write path/to/files.liquid -``` - -## Running from source on another code base - -### Adding new integration tests - -- Copy any of the folder in the `test/` directory and rename it to something appropriate. -- In the `index.liquid` file, type code that should be made prettier -- In the `fixed.liquid` file, type what you'd expect the plugin to output - -## How to contribute - -This plugin lives in [Shopify/theme-tools](https://github.com/Shopify/theme-tools), a read-only mirror of Shopify's monorepo that doesn't accept pull requests. Please report bugs and request features in [its issues](https://github.com/Shopify/theme-tools/issues). [CONTRIBUTING.md](https://github.com/Shopify/theme-tools/blob/main/CONTRIBUTING.md) has the details. diff --git a/packages/prettier-plugin-liquid/README.md b/packages/prettier-plugin-liquid/README.md index 7d4668cf5..c1aaa922e 100644 --- a/packages/prettier-plugin-liquid/README.md +++ b/packages/prettier-plugin-liquid/README.md @@ -151,7 +151,7 @@ Take a look at our [known issues](./KNOWN_ISSUES.md) and [open issues](https://g ## Contributing -[Read our contributing guide](CONTRIBUTING.md) +This plugin lives in [Shopify/theme-tools](https://github.com/Shopify/theme-tools), a read-only mirror of Shopify's monorepo that doesn't accept pull requests. Please report bugs and request features in [its issues](https://github.com/Shopify/theme-tools/issues). ## License From 33d33a867b0137544f59c8976fd6510fb7d74c1e Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Tue, 1 Dec 2026 12:52:49 -0500 Subject: [PATCH 6/6] Replace the docs/contributing.md symlink with a link The monorepo's mirror refuses symlinks, so both files must be regular files. CONTRIBUTING.md holds the text, and docs/contributing.md links it. --- docs/contributing.md | 64 +------------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/docs/contributing.md b/docs/contributing.md index 5f6e900bf..972764a5e 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -1,63 +1 @@ -# Contributing to Theme Tools - -## This repository is a mirror - -Shopify develops Theme Tools in its monorepo. This repository is a public, read-only mirror of it: -after each change merges there, a bot publishes it here as a pull request from the -`world-mirror/main` branch and merges it once the checks pass. - -- **We don't accept pull requests here.** A pull request from a fork is closed automatically, with - a link to this file. We can't merge it, because the next update from the monorepo would replace - it. -- **Issues are open.** Report a bug or ask for a feature in - [issues](https://github.com/Shopify/theme-tools/issues/new/choose). A clear issue with a small - example is the best way to get a change made. -- **When a fix for your issue ships,** the mirror's pull request says `Fixes #`, and - GitHub closes your issue when that pull request merges. -- **Releases** still publish from this repository's `main`, to the same places as before. - -## Reporting issues - -1. **Check for existing issues.** Search the open and closed issues first. -2. **Choose the right template.** Use the bug report or the feature request template. -3. **Write a clear title** that sums up the problem or the idea. -4. **Describe it in detail.** For a bug, give the Liquid or JSON that causes it, the steps to - reproduce it, the error message, what you expected and what happened. Screenshots help. -5. **Include your environment:** the package or extension version, your operating system, your - Node.js version, and your editor or browser if it matters. - -## Building and testing locally - -You can still build and run everything here, for example to reproduce a bug or to try a fix -before you describe it in an issue. - -1. Clone the repository: `git clone https://github.com/Shopify/theme-tools.git` -2. Install the dependencies: `cd theme-tools && pnpm install` -3. Build the packages: `pnpm build` -4. Run the tests: `pnpm test` for TypeScript, and `cargo test --workspace` for Rust. - -### Debugging the VS Code extension - -Add a breakpoint in any package the extension uses and press `F5` in VS Code. A development -instance opens with your build. - -### The CodeMirror playground - -`pnpm playground` starts a browser with `@shopify/theme-language-server-browser`. - -### VS Code for the Web - -`pnpm dev:web` starts `@vscode/test-web` in Chrome with the extension loaded. For better -debugging, use the `Run Web Extension` launch configuration in the desktop app instead. - -### Trying JSON Schema changes from Shopify/theme-liquid-docs - -1. With VS Code closed, go to your clone of Shopify/theme-liquid-docs and run - `export SHOPIFY_TLD_ROOT=$(pwd)`. -2. Go to your clone of this repository. -3. Run `theme-docs download`, then `code .`. Run `theme-docs download` again after each change. -4. Debug the extension or the playground as usual. - -## Code of conduct - -Everyone who takes part in issues follows our [Code of Conduct](./code-of-conduct.md). +See [CONTRIBUTING.md](../CONTRIBUTING.md).