Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/read-only-mirror-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/prettier-plugin-liquid': patch
---

Point the README at the Shopify/theme-tools issues, since the repository no longer accepts pull requests
44 changes: 5 additions & 39 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
## What are you adding in this PR?

<!-- Describe your changes. Provide enough context so that someone new can understand the 'why' behind this change. -->
<!-- Remember to use `fixes` or `solves` keywords to close issues automatically (https://help.github.com/articles/closing-issues-using-keywords/). -->

## What's next? Any followup issues?

<!-- Outline follow up tasks with links to issues so they're tracked. -->

## What did you learn?

<!-- Totally optional. But... If you learned something interesting, why not share it? -->

## Tophatting

<!-- Instructions on how you test your changes as a human -->
- [ ] I added screenshots of the changes (before and after the changes if applicable)

## Before you deploy

<!-- Delete the checklists you don't need -->

<!-- Check changes -->
- [ ] 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
<!-- It might be that a check doesn't make sense in a theme-app-extension context -->
<!-- When that happens, the check's config should be updated/overridden in the theme-app-extension config -->
<!-- see packages/node/configs/theme-app-extension.yml -->
- [ ] 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).

<!-- Public API changes, new features -->
- [ ] I included a minor bump `changeset`
- [ ] My feature is [backward compatible](https://github.com/Shopify/theme-tools/blob/main/docs/review-guidelines.md#compatibility)

<!-- Bug fixes -->
- [ ] 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.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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](./docs/contributing.md) has the details.

## License

Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ 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)
Expand Down
158 changes: 1 addition & 157 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -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).
89 changes: 0 additions & 89 deletions packages/prettier-plugin-liquid/CONTRIBUTING.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/prettier-plugin-liquid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ 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

[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

Expand Down
Loading