cli icon indicating copy to clipboard operation
cli copied to clipboard

Add build logging to app watcher for esbuild-based extensions

Open nickwesselman opened this issue 9 months ago β€’ 3 comments

WHY are these changes introduced?

UI extensions currently don't output any logging for successful builds, unlike Functions.

WHAT is this pull request doing?

Adds logging for esbuild-managed builds to the app watcher.

image.png

image.png

How to test your changes?

Add a UI extension and pnpm shopify app dev --path <your app>

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • [X] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • [ ] Existing analytics will cater for this addition
  • [ ] PR includes analytics changes to measure impact

Checklist

  • [X] I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • [ ] I've considered possible documentation changes

nickwesselman avatar May 07 '25 18:05 nickwesselman

This stack of pull requests is managed by Graphite. Learn more about stacking.

nickwesselman avatar May 07 '25 18:05 nickwesselman

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.

[!CAUTION] DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release.

github-actions[bot] avatar May 07 '25 19:05 github-actions[bot]

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
76.61% (-0.36% πŸ”»)
9582/12508
🟑 Branches
71.87% (-0.45% πŸ”»)
4725/6574
🟑 Functions
76.55% (-0.21% πŸ”»)
2484/3245
🟑 Lines
77.12% (-0.36% πŸ”»)
9055/11742
Show files with reduced coverage πŸ”»
St.:grey_question:
File Statements Branches Functions Lines
🟒
... / extension-instance.ts
84.62% (-0.59% πŸ”»)
79.37% (-2.38% πŸ”»)
92.59% 85.16%
🟒
... / flow_action.ts
90% (-10% πŸ”»)
100%
75% (-25% πŸ”»)
90% (-10% πŸ”»)
🟒
... / bundle.ts
78.57% (-3.78% πŸ”»)
75% (-12.5% πŸ”»)
80%
84.62% (-2.88% πŸ”»)
🟒
... / link.ts
96.55%
92.42% (-0.43% πŸ”»)
100% 96.39%
πŸ”΄
... / extension.ts
56.9% (-1.44% πŸ”»)
57.14% (-2.86% πŸ”»)
50%
57.89% (-1.43% πŸ”»)
🟒
... / dev-session.ts
80.31% (-5.1% πŸ”»)
62.5% (-6.62% πŸ”»)
90% (-1.89% πŸ”»)
82.46% (-5.24% πŸ”»)
🟒
... / serialize-fields.ts
95% (-2.5% πŸ”»)
87.5% (-3.13% πŸ”»)
100% 97.44%
🟒
... / binaries.ts
97.3% (+1.09% πŸ”Ό)
89.66% (+2.16% πŸ”Ό)
94.44% (-0.29% πŸ”»)
97.3% (+1.09% πŸ”Ό)
🟑
... / build.ts
78.69% (-1% πŸ”»)
64.58%
78.38% (-0.57% πŸ”»)
77.19% (-1.14% πŸ”»)
🟑
... / developer-platform-client.ts
69.7% (-8.08% πŸ”»)
68.42% (-3.01% πŸ”»)
80% (-3.33% πŸ”»)
74.07% (-7.98% πŸ”»)
🟒
... / mkcert.ts
93.33% (-3.59% πŸ”»)
76% (-8.85% πŸ”»)
100%
93.02% (-5.39% πŸ”»)
πŸ”΄
... / app-management-client.ts
41.78% (-2.59% πŸ”»)
36.75% (-4.02% πŸ”»)
40% (-2% πŸ”»)
40.37% (-2.84% πŸ”»)
πŸ”΄
... / partners-client.ts
25.66% (-0.97% πŸ”»)
31.58%
16.95% (-1.38% πŸ”»)
25.34% (-1.01% πŸ”»)
🟑
... / generate.ts
67.16% (-0.48% πŸ”»)
57.45% 50%
72.58% (-0.44% πŸ”»)
🟒
... / api.ts
83.65% (-1.92% πŸ”»)
70.77% (-3.08% πŸ”»)
100%
83% (-2% πŸ”»)
🟑
... / exchange.ts
80%
64% (-6.37% πŸ”»)
84.62% 79.31%
🟒
... / ConcurrentOutput.tsx
98.36% (-1.64% πŸ”»)
88% (-4% πŸ”»)
100%
98.33% (-1.67% πŸ”»)
πŸ”΄
... / system.ts
37.5% (-16.07% πŸ”»)
28.57% (-16.67% πŸ”»)
54.55% (-9.09% πŸ”»)
38.18% (-16.36% πŸ”»)
🟒
... / version.ts
88.89% (-0.58% πŸ”»)
90% 100%
87.5% (-0.74% πŸ”»)
🟒
... / admin.ts
80% (-0.43% πŸ”»)
44.44% 90.91%
81.82% (-0.4% πŸ”»)
🟒
... / graphql.ts
100%
75% (-12.1% πŸ”»)
100% 100%
🟑
... / api.ts
66.25% (-0.21% πŸ”»)
52.05% 66.67%
68.21% (-0.21% πŸ”»)

Test suite run success

2250 tests passing in 980 suites.

Report generated by πŸ§ͺjest coverage report action from 8bde45b25bf474a80ce35f72f7dbe153d3709ed1

github-actions[bot] avatar May 07 '25 19:05 github-actions[bot]