Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge branch 'Shopify:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
agrohs authored Jun 17, 2023
2 parents 2cfffc8 + 4bf4cf1 commit 767f295
Show file tree
Hide file tree
Showing 57 changed files with 1,529 additions and 320 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-rats-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Fix session refresh for theme dev without password
5 changes: 5 additions & 0 deletions .changeset/fair-rockets-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/app': patch
---

Skip .DS_Dtore files when the theme app extension bundle content is created
5 changes: 5 additions & 0 deletions .changeset/heavy-glasses-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/app': patch
---

Allow theme app extensions to exclude files from deploying via `.shopifyignore` file
5 changes: 5 additions & 0 deletions .changeset/silly-shoes-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Fix clean login on theme dev
5 changes: 5 additions & 0 deletions .changeset/thin-islands-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': minor
---

Updated app generate schema to output to either to schema.graphql (by default) or stdout with --stdout flag
6 changes: 6 additions & 0 deletions .changeset/wicked-pants-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/cli-kit': patch
'@shopify/app': patch
---

Add React deduplication plugin for ESBuild & extensions
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module.exports = {
project: './tsconfig.json',
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
},
plugins: ['@nrwl/nx'],
plugins: ['@nx'],
// WARNING: If you want to add new rules/plugins, you need to add them to the eslint-plugin-cli package.
extends: ['plugin:@shopify/cli/configs'],
rules: {
'@nrwl/nx/enforce-module-boundaries': [
'@nx/enforce-module-boundaries': [
'error',
{
allow: [],
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The list below contains valuable resources for people interested in contributing
* [Performance](./cli/performance.md)
* [Debugging](./cli/debugging.md)
* [ESLint rules](./cli/eslint-rules.md)
* [Release process](./cli/release.md)
* [Release process](./release.md)
* [Testing strategy](./cli/testing-strategy.md)
* [Cross-OS compatibility](./cli/cross-os-compatibility.md)
* [Troubleshooting](./cli/troubleshooting.md)
Expand Down
37 changes: 17 additions & 20 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
{
"extends": "@nrwl/workspace/presets/npm.json",
"npmScope": "@shopify",
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"options": {
"cacheableOperations": [
"build"
],
"runtimeCacheInputs": [
"node bin/cache-inputs.js || node ../../bin/cache-inputs.js || node ../bin/cache-inputs.js"
]
}
}
},
"affected": {
"defaultBase": "main"
},
"targetDefaults": {
"clean": {
"dependsOn": ["^clean"]
Expand All @@ -27,13 +9,28 @@
"refresh-manifests": {
"dependsOn": ["build"]
},
"lint": {
},
"lint": {},
"lint:fix": {
"dependsOn": ["build"]
},
"type-check": {
"dependsOn": ["^build"]
}
},
"extends": "@nx/workspace/presets/npm.json",
"npmScope": "@shopify",
"tasksRunnerOptions": {
"default": {
"runner": "@nx/workspace/tasks-runners/default",
"options": {
"cacheableOperations": ["build"],
"runtimeCacheInputs": [
"node bin/cache-inputs.js || node ../../bin/cache-inputs.js || node ../bin/cache-inputs.js"
]
}
}
},
"affected": {
"defaultBase": "main"
}
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"clean": "nx run-many --target=clean --all --skip-nx-cache && nx reset",
"docs:generate": "nx run-many --target=docs:generate --all --skip-nx-cache",
"lint": "nx run-many --target=lint --all --skip-nx-cache",
"lint:affected": "nx affected --target=lint --all",
"lint:affected": "nx affected --target=lint",
"lint:fix": "nx run-many --target=lint:fix --all --skip-nx-cache",
"lint:fix:affected": "nx affected --target=lint:fix --all",
"lint:fix:affected": "nx affected --target=lint:fix",
"test": "nx run-many --target=test --all --skip-nx-cache",
"test:unit": "nx run-many --target=test --all --skip-nx-cache --exclude=features",
"test:features": "pnpm nx run features:test",
"test:affected": "nx affected --target=test --all",
"test:affected": "nx affected --target=test",
"test:regenerate-snapshots": "nx build cli && packages/features/snapshots/regenerate.sh",
"type-check": "nx run-many --target=type-check --all --skip-nx-cache",
"type-check:affected": "nx affected --target=type-check --all",
"type-check:affected": "nx affected --target=type-check",
"build": "nx run-many --target=build --all --skip-nx-cache",
"build:affected": "nx affected --target=build --all",
"build:affected": "nx affected --target=build",
"refresh-templates": "nx run-many --target=refresh-templates --all --skip-nx-cache",
"refresh-manifests": "nx run-many --target=refresh-manifests --all --skip-nx-cache && bin/prettify-manifests.js",
"changeset-manifests": "changeset version && pnpm install --no-frozen-lockfile && pnpm refresh-manifests && bin/update-cli-kit-version.js && pnpm docs:generate",
Expand All @@ -33,10 +33,7 @@
"@babel/core": "^7.22.1",
"@bugsnag/source-maps": "^2.3.1",
"@changesets/cli": "2.26.1",
"@nrwl/eslint-plugin-nx": "15.9.2",
"@nrwl/js": "15.9.2",
"@nrwl/tao": "15.9.2",
"@nrwl/workspace": "15.9.2",
"@nrwl/tao": "16.3.2",
"@octokit/core": "^4.2.1",
"@octokit/rest": "^19.0.11",
"@shopify/eslint-plugin-cli": "file:packages/eslint-plugin-cli",
Expand All @@ -59,7 +56,7 @@
"graphql-tag": "^2.12.6",
"liquidjs": "^10.7.1",
"node-fetch": "^3.3.1",
"nx": "15.9.2",
"nx": "16.3.2",
"oclif": "3.9.0",
"octokit-plugin-create-pull-request": "^3.12.2",
"pathe": "1.1.0",
Expand All @@ -73,7 +70,10 @@
"tmp": "^0.2.1",
"ts-node": "^10.9.1",
"tslib": "^2.5.2",
"typescript": "4.9.5"
"typescript": "5.0.4",
"@nx/workspace": "16.3.2",
"@nx/js": "16.3.2",
"@nx/eslint-plugin": "16.3.2"
},
"workspaces": {
"packages": [
Expand Down
140 changes: 140 additions & 0 deletions packages/app/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,132 @@
},
"args": {}
},
"app:config:link": {
"id": "app:config:link",
"description": "Fetch your app's config from the Partner Dashboard.",
"strict": true,
"pluginName": "@shopify/app",
"pluginAlias": "@shopify/app",
"pluginType": "core",
"hidden": true,
"aliases": [],
"flags": {
"no-color": {
"name": "no-color",
"type": "boolean",
"description": "Disable color output.",
"hidden": false,
"allowNo": false
},
"verbose": {
"name": "verbose",
"type": "boolean",
"description": "Increase the verbosity of the logs.",
"hidden": false,
"allowNo": false
},
"path": {
"name": "path",
"type": "option",
"description": "The path to your app directory.",
"multiple": false,
"default": "."
},
"environment": {
"name": "environment",
"type": "option",
"char": "e",
"description": "The environment to apply to the current command.",
"hidden": true,
"multiple": false
}
},
"args": {}
},
"app:config:push": {
"id": "app:config:push",
"description": "Push your app's config to the Partner Dashboard.",
"strict": true,
"pluginName": "@shopify/app",
"pluginAlias": "@shopify/app",
"pluginType": "core",
"hidden": true,
"aliases": [],
"flags": {
"no-color": {
"name": "no-color",
"type": "boolean",
"description": "Disable color output.",
"hidden": false,
"allowNo": false
},
"verbose": {
"name": "verbose",
"type": "boolean",
"description": "Increase the verbosity of the logs.",
"hidden": false,
"allowNo": false
},
"path": {
"name": "path",
"type": "option",
"description": "The path to your app directory.",
"multiple": false,
"default": "."
},
"environment": {
"name": "environment",
"type": "option",
"char": "e",
"description": "The environment to apply to the current command.",
"hidden": true,
"multiple": false
}
},
"args": {}
},
"app:config:use": {
"id": "app:config:use",
"description": "Set a particular configuration to use.",
"strict": true,
"pluginName": "@shopify/app",
"pluginAlias": "@shopify/app",
"pluginType": "core",
"hidden": true,
"aliases": [],
"flags": {
"no-color": {
"name": "no-color",
"type": "boolean",
"description": "Disable color output.",
"hidden": false,
"allowNo": false
},
"verbose": {
"name": "verbose",
"type": "boolean",
"description": "Increase the verbosity of the logs.",
"hidden": false,
"allowNo": false
},
"path": {
"name": "path",
"type": "option",
"description": "The path to your app directory.",
"multiple": false,
"default": "."
},
"environment": {
"name": "environment",
"type": "option",
"char": "e",
"description": "The environment to apply to the current command.",
"hidden": true,
"multiple": false
}
},
"args": {}
},
"app:env:pull": {
"id": "app:env:pull",
"description": "Pull app and extensions environment variables.",
Expand Down Expand Up @@ -647,6 +773,13 @@
"description": "The API key to fetch the schema with.",
"required": false,
"multiple": false
},
"stdout": {
"name": "stdout",
"type": "boolean",
"description": "Output the schema to stdout instead of writing to a file.",
"required": false,
"allowNo": false
}
},
"args": {}
Expand Down Expand Up @@ -823,6 +956,13 @@
"description": "The API key to fetch the schema with.",
"required": false,
"multiple": false
},
"stdout": {
"name": "stdout",
"type": "boolean",
"description": "Output the schema to stdout instead of writing to a file.",
"required": false,
"allowNo": false
}
},
"args": {}
Expand Down
18 changes: 18 additions & 0 deletions packages/app/src/cli/commands/app/config/link.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {appFlags} from '../../../flags.js'
import Command from '../../../utilities/app-command.js'
import {globalFlags} from '@shopify/cli-kit/node/cli'

export default class ConfigLink extends Command {
static hidden = true

static description = "Fetch your app's config from the Partner Dashboard."

static flags = {
...globalFlags,
...appFlags,
}

public async run(): Promise<void> {
const {flags} = await this.parse(ConfigLink)
}
}
18 changes: 18 additions & 0 deletions packages/app/src/cli/commands/app/config/push.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {appFlags} from '../../../flags.js'
import Command from '../../../utilities/app-command.js'
import {globalFlags} from '@shopify/cli-kit/node/cli'

export default class ConfigPush extends Command {
static hidden = true

static description = "Push your app's config to the Partner Dashboard."

static flags = {
...globalFlags,
...appFlags,
}

public async run(): Promise<void> {
const {flags} = await this.parse(ConfigPush)
}
}
18 changes: 18 additions & 0 deletions packages/app/src/cli/commands/app/config/use.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {appFlags} from '../../../flags.js'
import Command from '../../../utilities/app-command.js'
import {globalFlags} from '@shopify/cli-kit/node/cli'

export default class ConfigUse extends Command {
static hidden = true

static description = 'Set a particular configuration to use.'

static flags = {
...globalFlags,
...appFlags,
}

public async run(): Promise<void> {
const {flags} = await this.parse(ConfigUse)
}
}
Loading

0 comments on commit 767f295

Please sign in to comment.