@shopify/cli-hydrogen 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/hydrogen/deploy.js +72 -8
- package/dist/commands/hydrogen/deploy.test.js +111 -9
- package/dist/commands/hydrogen/dev.js +33 -23
- package/dist/commands/hydrogen/preview.js +20 -10
- package/dist/commands/hydrogen/shortcut.js +1 -0
- package/dist/commands/hydrogen/upgrade.js +705 -0
- package/dist/commands/hydrogen/upgrade.test.js +786 -0
- package/dist/generator-templates/starter/CHANGELOG.md +70 -0
- package/dist/generator-templates/starter/app/components/Footer.tsx +3 -1
- package/dist/generator-templates/starter/app/components/Layout.tsx +13 -10
- package/dist/generator-templates/starter/app/routes/[robots.txt].tsx +0 -27
- package/dist/generator-templates/starter/package.json +10 -9
- package/dist/generator-templates/starter/remix.env.d.ts +2 -0
- package/dist/lib/check-lockfile.js +1 -0
- package/dist/lib/codegen.js +1 -0
- package/dist/lib/flags.js +13 -2
- package/dist/lib/log.js +1 -0
- package/dist/lib/mini-oxygen/assets.js +118 -0
- package/dist/lib/mini-oxygen/common.js +2 -1
- package/dist/lib/mini-oxygen/index.js +3 -0
- package/dist/lib/mini-oxygen/node.js +15 -3
- package/dist/lib/mini-oxygen/workerd-inspector-logs.js +227 -0
- package/dist/lib/mini-oxygen/workerd-inspector-proxy.js +200 -0
- package/dist/lib/mini-oxygen/workerd-inspector.js +62 -235
- package/dist/lib/mini-oxygen/workerd.js +54 -47
- package/dist/lib/render-errors.js +2 -0
- package/dist/lib/setups/i18n/replacers.test.js +2 -0
- package/dist/lib/shell.js +1 -1
- package/oclif.manifest.json +90 -8
- package/package.json +10 -21
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.0
|
|
2
|
+
"version": "6.1.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"hydrogen:build": {
|
|
5
5
|
"id": "hydrogen:build",
|
|
@@ -171,6 +171,14 @@
|
|
|
171
171
|
"required": false,
|
|
172
172
|
"multiple": false
|
|
173
173
|
},
|
|
174
|
+
"force": {
|
|
175
|
+
"name": "force",
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"char": "f",
|
|
178
|
+
"description": "Forces a deployment to proceed if there are uncommited changes in its Git repository.",
|
|
179
|
+
"required": false,
|
|
180
|
+
"allowNo": false
|
|
181
|
+
},
|
|
174
182
|
"path": {
|
|
175
183
|
"name": "path",
|
|
176
184
|
"type": "option",
|
|
@@ -191,6 +199,13 @@
|
|
|
191
199
|
"required": false,
|
|
192
200
|
"allowNo": false
|
|
193
201
|
},
|
|
202
|
+
"no-json-output": {
|
|
203
|
+
"name": "no-json-output",
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"description": "Prevents the command from creating a JSON file containing the deployment URL (in CI environments).",
|
|
206
|
+
"required": false,
|
|
207
|
+
"allowNo": false
|
|
208
|
+
},
|
|
194
209
|
"token": {
|
|
195
210
|
"name": "token",
|
|
196
211
|
"type": "option",
|
|
@@ -199,6 +214,13 @@
|
|
|
199
214
|
"required": false,
|
|
200
215
|
"multiple": false
|
|
201
216
|
},
|
|
217
|
+
"metadata-description": {
|
|
218
|
+
"name": "metadata-description",
|
|
219
|
+
"type": "option",
|
|
220
|
+
"description": "Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommited changes.",
|
|
221
|
+
"required": false,
|
|
222
|
+
"multiple": false
|
|
223
|
+
},
|
|
202
224
|
"metadata-url": {
|
|
203
225
|
"name": "metadata-url",
|
|
204
226
|
"type": "option",
|
|
@@ -245,10 +267,10 @@
|
|
|
245
267
|
"multiple": false,
|
|
246
268
|
"default": 3000
|
|
247
269
|
},
|
|
248
|
-
"worker
|
|
249
|
-
"name": "worker
|
|
270
|
+
"worker": {
|
|
271
|
+
"name": "worker",
|
|
250
272
|
"type": "boolean",
|
|
251
|
-
"description": "Run the app in a worker environment closer to Oxygen production instead of a Node.js sandbox.
|
|
273
|
+
"description": "Run the app in a worker environment closer to Oxygen production instead of a Node.js sandbox.",
|
|
252
274
|
"allowNo": false
|
|
253
275
|
},
|
|
254
276
|
"codegen": {
|
|
@@ -286,9 +308,16 @@
|
|
|
286
308
|
"debug": {
|
|
287
309
|
"name": "debug",
|
|
288
310
|
"type": "boolean",
|
|
289
|
-
"description": "
|
|
311
|
+
"description": "Enables inspector connections with a debugger.",
|
|
290
312
|
"allowNo": false
|
|
291
313
|
},
|
|
314
|
+
"inspector-port": {
|
|
315
|
+
"name": "inspector-port",
|
|
316
|
+
"type": "option",
|
|
317
|
+
"description": "Port where the inspector will be available.",
|
|
318
|
+
"multiple": false,
|
|
319
|
+
"default": 9229
|
|
320
|
+
},
|
|
292
321
|
"host": {
|
|
293
322
|
"name": "host",
|
|
294
323
|
"type": "option",
|
|
@@ -301,6 +330,13 @@
|
|
|
301
330
|
"char": "e",
|
|
302
331
|
"description": "Specify an environment's branch name when using remote environment variables.",
|
|
303
332
|
"multiple": false
|
|
333
|
+
},
|
|
334
|
+
"disable-version-check": {
|
|
335
|
+
"name": "disable-version-check",
|
|
336
|
+
"type": "boolean",
|
|
337
|
+
"description": "Skip the version check when running `hydrogen dev`",
|
|
338
|
+
"required": false,
|
|
339
|
+
"allowNo": false
|
|
304
340
|
}
|
|
305
341
|
},
|
|
306
342
|
"args": {}
|
|
@@ -511,10 +547,10 @@
|
|
|
511
547
|
"multiple": false,
|
|
512
548
|
"default": 3000
|
|
513
549
|
},
|
|
514
|
-
"worker
|
|
515
|
-
"name": "worker
|
|
550
|
+
"worker": {
|
|
551
|
+
"name": "worker",
|
|
516
552
|
"type": "boolean",
|
|
517
|
-
"description": "Run the app in a worker environment closer to Oxygen production instead of a Node.js sandbox.
|
|
553
|
+
"description": "Run the app in a worker environment closer to Oxygen production instead of a Node.js sandbox.",
|
|
518
554
|
"allowNo": false
|
|
519
555
|
},
|
|
520
556
|
"env-branch": {
|
|
@@ -523,6 +559,19 @@
|
|
|
523
559
|
"char": "e",
|
|
524
560
|
"description": "Specify an environment's branch name when using remote environment variables.",
|
|
525
561
|
"multiple": false
|
|
562
|
+
},
|
|
563
|
+
"inspector-port": {
|
|
564
|
+
"name": "inspector-port",
|
|
565
|
+
"type": "option",
|
|
566
|
+
"description": "Port where the inspector will be available.",
|
|
567
|
+
"multiple": false,
|
|
568
|
+
"default": 9229
|
|
569
|
+
},
|
|
570
|
+
"debug": {
|
|
571
|
+
"name": "debug",
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"description": "Enables inspector connections with a debugger.",
|
|
574
|
+
"allowNo": false
|
|
526
575
|
}
|
|
527
576
|
},
|
|
528
577
|
"args": {}
|
|
@@ -605,6 +654,39 @@
|
|
|
605
654
|
},
|
|
606
655
|
"args": {}
|
|
607
656
|
},
|
|
657
|
+
"hydrogen:upgrade": {
|
|
658
|
+
"id": "hydrogen:upgrade",
|
|
659
|
+
"description": "Upgrade Remix and Hydrogen npm dependencies.",
|
|
660
|
+
"strict": true,
|
|
661
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
662
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
663
|
+
"pluginType": "core",
|
|
664
|
+
"aliases": [],
|
|
665
|
+
"flags": {
|
|
666
|
+
"path": {
|
|
667
|
+
"name": "path",
|
|
668
|
+
"type": "option",
|
|
669
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
670
|
+
"multiple": false
|
|
671
|
+
},
|
|
672
|
+
"version": {
|
|
673
|
+
"name": "version",
|
|
674
|
+
"type": "option",
|
|
675
|
+
"char": "v",
|
|
676
|
+
"description": "A target hydrogen version to update to",
|
|
677
|
+
"required": false,
|
|
678
|
+
"multiple": false
|
|
679
|
+
},
|
|
680
|
+
"force": {
|
|
681
|
+
"name": "force",
|
|
682
|
+
"type": "boolean",
|
|
683
|
+
"char": "f",
|
|
684
|
+
"description": "Ignore warnings and force the upgrade to the target version",
|
|
685
|
+
"allowNo": false
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"args": {}
|
|
689
|
+
},
|
|
608
690
|
"hydrogen:debug:cpu": {
|
|
609
691
|
"id": "hydrogen:debug:cpu",
|
|
610
692
|
"description": "Builds and profiles the server startup time the app.",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
|
-
"version": "6.0
|
|
7
|
+
"version": "6.1.0",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@types/recursive-readdir": "^2.2.1",
|
|
24
24
|
"@types/stack-trace": "^0.0.30",
|
|
25
25
|
"@types/tar-fs": "^2.0.1",
|
|
26
|
-
"devtools-protocol": "^0.0.1177611",
|
|
27
|
-
"get-port": "^7.0.0",
|
|
28
26
|
"@vitest/coverage-v8": "^0.33.0",
|
|
27
|
+
"devtools-protocol": "^0.0.1177611",
|
|
29
28
|
"fast-glob": "^3.2.12",
|
|
30
29
|
"flame-chart-js": "2.3.1",
|
|
30
|
+
"get-port": "^7.0.0",
|
|
31
31
|
"type-fest": "^3.6.0",
|
|
32
32
|
"vitest": "^0.33.0"
|
|
33
33
|
},
|
|
@@ -35,16 +35,17 @@
|
|
|
35
35
|
"@ast-grep/napi": "0.11.0",
|
|
36
36
|
"@graphql-codegen/cli": "5.0.0",
|
|
37
37
|
"@oclif/core": "2.11.7",
|
|
38
|
-
"@shopify/cli-kit": "3.
|
|
38
|
+
"@shopify/cli-kit": "3.51.0",
|
|
39
39
|
"@shopify/hydrogen-codegen": "^0.1.0",
|
|
40
|
-
"@shopify/mini-oxygen": "^2.2.
|
|
41
|
-
"@shopify/oxygen-cli": "
|
|
40
|
+
"@shopify/mini-oxygen": "^2.2.4",
|
|
41
|
+
"@shopify/oxygen-cli": "2.6.2",
|
|
42
42
|
"ansi-escapes": "^6.2.0",
|
|
43
|
+
"cli-truncate": "^4.0.0",
|
|
43
44
|
"diff": "^5.1.0",
|
|
44
45
|
"fs-extra": "^11.1.0",
|
|
45
46
|
"get-port": "^7.0.0",
|
|
46
47
|
"gunzip-maybe": "^1.4.2",
|
|
47
|
-
"miniflare": "3.
|
|
48
|
+
"miniflare": "3.20231016.0",
|
|
48
49
|
"prettier": "^2.8.4",
|
|
49
50
|
"semver": "^7.5.3",
|
|
50
51
|
"source-map": "^0.7.4",
|
|
@@ -58,23 +59,11 @@
|
|
|
58
59
|
"@parcel/watcher": "^2.3.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
|
-
"@remix-run/dev": "^2.1.0"
|
|
62
|
-
"@remix-run/react": "^2.1.0",
|
|
63
|
-
"@shopify/hydrogen": "2023.10.2",
|
|
64
|
-
"@shopify/remix-oxygen": "^2.0.0"
|
|
62
|
+
"@remix-run/dev": "^2.1.0"
|
|
65
63
|
},
|
|
66
64
|
"peerDependenciesMeta": {
|
|
67
65
|
"@remix-run/dev": {
|
|
68
66
|
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"@remix-run/react": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"@shopify/hydrogen-react": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"@shopify/remix-oxygen": {
|
|
77
|
-
"optional": true
|
|
78
67
|
}
|
|
79
68
|
},
|
|
80
69
|
"bin": "dist/create-app.js",
|
|
@@ -87,7 +76,7 @@
|
|
|
87
76
|
"oclif.manifest.json"
|
|
88
77
|
],
|
|
89
78
|
"engines": {
|
|
90
|
-
"node": ">=
|
|
79
|
+
"node": ">=18.0.0"
|
|
91
80
|
},
|
|
92
81
|
"oclif": {
|
|
93
82
|
"commands": "dist/commands",
|