docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.10#787
Open
nx-plugin-for-aws wants to merge 4 commits into
Open
docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.10#787nx-plugin-for-aws wants to merge 4 commits into
nx-plugin-for-aws wants to merge 4 commits into
Conversation
Contributor
|
📚 Documentation translations have been updated and committed (562b566) to this PR. |
Use a string module id instead of a regex literal for the ace-builds external entry. The regex literal inside the diff code block was mangled by the documentation translation step, producing invalid MDX in translated files and breaking the docs build.
Contributor
|
📚 Documentation translations have been updated and committed (314ee90) to this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #787 +/- ##
=======================================
Coverage 87.22% 87.22%
=======================================
Files 140 140
Lines 4987 4987
Branches 1164 1164
=======================================
Hits 4350 4350
Misses 338 338
Partials 299 299 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for this change
The PDK migration guide was pinned to
@aws/nx-plugin@0.50.0and used an old workspace-creation command and pre-1.0 generator names. This validates and updates the guide against the latest1.0.0-rc.10release.I performed a full real migration of the shopping-list tutorial app end-to-end on
1.0.0-rc.10— including a live AWS deploy, an authenticated end-to-end API test, and teardown — to confirm every step.Description of changes
create-nx-workspace --presetTabs with the documented<CreateNxWorkspaceCommand>component, pinned to1.0.0-rc.10via thetagprop (removed now-unusedTabs/TabItemimport).0.50.0to1.0.0-rc.10in the point-in-time callout.ts#apientry point withframework: 'smithy'(instead ofts#smithy-apidirectly), and lowercaseauth: 'iam'(the enum is now lowercase).ts#website(framework: 'react') andts#website#authentry points (instead ofts#react-website/ts#react-website#auth). Same fix applied to the Type Safe API FAQ snippet.Echooperation handler (backend/src/operations/echo.ts), which otherwise breaks the build once the operation is removed from the model.@aws-northstar/ui+ace-builds: added a manual step to excludeace-builds/webpack-resolverfrom the Vite bundle. Northstar bundles a code editor that uses a webpack-specific import which the current Vite/Rolldown bundler can't resolve; the shopping-list app doesn't use that component, so we externalise it. This is documented as a manual tutorial step under "Add AWS Northstar Dependency" since Northstar isn't part of the website generator.tsx: added a step to installtsxbeforeserve-local, since the Smithy API's local server runs with it. (Also fixed at the source in fix(ts#smithy-api): add tsx as a dev dependency #786 — once that releases this step can be dropped.)Description of how you validated changes
pnpm create @aws/nx-workspace@1.0.0-rc.10workspace using the exact documented commands.nx run-many --target buildandlint --fixpass for all projects.serve-localruns both the website (4200) and Smithy API (3001).nx build docs) — all pages render without errors.Issue # (if applicable)
N/A
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license