Skip to content

Commit

Permalink
Merge branch 'main' into notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloriestra committed Nov 4, 2024
2 parents 9ecc3dc + 451e74c commit 53f17bf
Show file tree
Hide file tree
Showing 1,820 changed files with 11,955 additions and 128,091 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-gifts-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': minor
---

Removes Ruby implementation of the `theme push` command
5 changes: 0 additions & 5 deletions .changeset/cuddly-months-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cuddly-steaks-exist.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/four-bikes-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/theme': patch
'@shopify/app': patch
---

Bump Shopify/theme-tools packages
5 changes: 5 additions & 0 deletions .changeset/fresh-crabs-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Fix files ignored when using negate patterns
5 changes: 5 additions & 0 deletions .changeset/fresh-ears-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Fix the theme ID mismatch error, where the live theme ID is returned instead of the development theme ID
5 changes: 5 additions & 0 deletions .changeset/giant-icons-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Fixes an issue in the `theme push` command where a confirmation prompt is rendered to users who provide the `--allow-live` flag
5 changes: 5 additions & 0 deletions .changeset/great-timers-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Remove ruby version from theme info command
5 changes: 5 additions & 0 deletions .changeset/heavy-lions-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/app': patch
---

adding optional preloads to ui extension targets
5 changes: 0 additions & 5 deletions .changeset/hip-chefs-dance.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/metal-eggs-tap.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/moody-beds-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/cli-kit': patch
'@shopify/app': patch
---

Show a warning when there are multiple CLI installations
5 changes: 0 additions & 5 deletions .changeset/nervous-sloths-wash.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/red-jars-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Bump cli-hydrogen to 9.0.2
5 changes: 5 additions & 0 deletions .changeset/serious-radios-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Fix issue where you could not use multipass passwords with theme dev
5 changes: 0 additions & 5 deletions .changeset/sharp-eggs-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/short-hornets-compete.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/small-goats-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Show an error when the `config/settings_schema.json` file cannot be parsed.
5 changes: 0 additions & 5 deletions .changeset/smart-pots-drive.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/soft-melons-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': major
---

Removes the Ruby implementation of the `theme push` command
5 changes: 5 additions & 0 deletions .changeset/strong-guests-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Fix theme dev command deleting remote files even if using --nodelete flag
5 changes: 5 additions & 0 deletions .changeset/wicked-years-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Improve language around --nodelete flags for push and pull commands
30 changes: 30 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
As a Principal Developer, the highest ranking engineer at our company, you are tasked with creating clear, readable code in Typescript. You use the latest version of all of these technologies, and follow their best practices and conventions.

When responding to questions, follow the Chain of Thought method. First, outline a detailed plan step by step in great detail, then outline that plan in pseudocode, then confirm it, then write the code, and rewrite the code for concision and readability.

You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning; but you always admit when you don't know the answer.

Remember the following important mindset when providing code, in the following order:
- Adherance to conventions and patterns in the rest of the codebase
- Simplicity
- Readability
- Testability
- Explicitness
- Beginner-friendly

Adhere to the following guidelines in your code:
- Follow the user's requirements carefully and to the letter.
- Fully implement all requested functionality
- Leave no TODOs, FIXMEs, placeholders or missing pieces.
- Always consider the experience of a developer who will be reading your code.
- Use comments to explain why you are doing something in a certain way, if it is not obvious. If unsure, leave a comment.
- Employ descriptive, human-readable variable and function/const names.
- Prefer writing in a functional style, producing pure functions that do not cause side effects.
- The codebase is strictly linted; follow the existing code style to ensure consistency.
- If the generated code would fail a lint check, refactor the code until it no longer fails the lint check.
- Search hard to find an existing function where possible. These are often in the @shopify/cli-kit library.
- Be sure to reference file names
- Be concise. Minimize any prose other than code.
- If you think there might not be a correct answer, say so. If you do not know the answer, say so instead of guessing.
- In tests, always avoid mocking the filesystem. Use real files and directories, in temporary directories if needed.
- In tests, prefer to have as little shared state between tests as possible. Avoid beforeAll and afterAll.
14 changes: 14 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# By default, review should come from the app-inner-loop team
* @shopify/app-inner-loop

# Theme team and CLI owners should review theme changes
packages/cli-kit/src/private/themes/* @shopify/advanced-edits @shopify/app-inner-loop
packages/cli-kit/src/public/themes/* @shopify/advanced-edits @shopify/app-inner-loop
packages/theme/** @shopify/advanced-edits @shopify/app-inner-loop

# These are metafiles that can be reviewed by anyone
.changeset/* @shopify/advanced-edits @shopify/app-inner-loop
.github/CODEOWNERS @shopify/advanced-edits @shopify/app-inner-loop
docs-shopify.dev/* @shopify/advanced-edits @shopify/app-inner-loop
packages/cli/oclif.manifest.json @shopify/advanced-edits @shopify/app-inner-loop

4 changes: 2 additions & 2 deletions .github/workflows/changelog-reminder.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths: ['packages/*/src/**', 'packages/cli-kit/assets/cli-ruby/**']
paths: ['packages/*/src/**']
name: Changelog Reminder
jobs:
remind:
Expand All @@ -14,5 +14,5 @@ jobs:
with:
changelogRegex: \.changeset
message: |
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset.
We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.
2 changes: 0 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ env:
SHOPIFY_CLI_ENV: development
SHOPIFY_CONFIG: debug
PNPM_VERSION: '8.15.7'
RUBY_VERSION: '3.1.2'
BUNDLER_VERSION: '2.3.18'

jobs:
type-diff:
Expand Down
77 changes: 0 additions & 77 deletions .github/workflows/cli-ruby.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/reviewers-reminder.yml

This file was deleted.

30 changes: 29 additions & 1 deletion .github/workflows/shopify-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
matrix:
os: ['ubuntu-latest']
node: ['18.20.3']
target: ['build', 'type-check', 'lint']
target: ['build', 'type-check']
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -127,6 +127,34 @@ jobs:
- name: ${{ matrix.target }}
run: pnpm nx run-many --all --skip-nx-cache --target=${{ matrix.target }} --output-style=stream

pr-platform-agnostic-lint:
name: '[PR] Run lint with Node ${{ matrix.node }} in ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
timeout-minutes: 30
strategy:
matrix:
os: ['ubuntu-latest']
node: ['18.20.3']
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }}
ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
fetch-depth: 1
- name: Setup deps
uses: ./.github/actions/setup-cli-deps
with:
node-version: ${{ matrix.node }}
- name: Lint
run: pnpm nx run-many --all --skip-nx-cache --target=lint --output-style=stream --format=json -o eslint-report.json
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@21a1ba0738d8b732639999029c4ff40b6e121bb4 # pin@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
report-json: "packages/*/eslint-report.json"

pr-platform-agnostic-bundle:
name: '[PR] Run bundle with Node ${{ matrix.node }} in ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ testing.mjs

# NX
.nx

# ESLint reports
eslint-report.json
11 changes: 11 additions & 0 deletions RELEASE_NOTES/3.69.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Themes
- Remove legacy flag and Ruby implementation from theme console, dev, push, pull
- Assorted fixes for JS based theme commands, including hot-reloading and dealing with server errors

# Apps
- Remove legacy flag and Ruby implementation for Theme App Extensions

# Misc
- Remove support for access_code based authentication in the CLI

And lots more besides!
2 changes: 1 addition & 1 deletion bin/bundling/esbuild-plugin-graphiql-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const GraphiQLImportsPlugin = {
return {
contents: contents
.replace('@shopify/app/assets/graphiql/favicon.ico', './assets/graphiql/favicon.ico')
.replace('@shopify/cli-kit/assets/style.css', './assets/style.css'),
.replace('@shopify/app/assets/graphiql/style.css', './assets/graphiql/style.css'),
}
})
},
Expand Down
Loading

0 comments on commit 53f17bf

Please sign in to comment.