chore(build): add Vercel preview builds for framework test apps#31073
chore(build): add Vercel preview builds for framework test apps#31073
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3bbcabf to
5eb431e
Compare
5eb431e to
91aa59e
Compare
91aa59e to
e4f45f1
Compare
e4f45f1 to
e785090
Compare
e785090 to
60b1804
Compare
60b1804 to
b5c7660
Compare
b5c7660 to
2e41f54
Compare
2e41f54 to
192f551
Compare
192f551 to
99f295a
Compare
99f295a to
5f78b43
Compare
thetaPC
left a comment
There was a problem hiding this comment.
Mainly requesting for the sync command.
Question: Is it possible to add a way where we can determine if we want to build the frameworks? That way if we only need core then we don't have to wait for the others to build. It can be a label that is added to the PR or text command that is submitted through the comments, etc.
|
|
||
| echo "=== Ionic Framework Preview Build ===" | ||
| echo "Core dir: ${CORE_DIR}" | ||
| echo "Repo root: ${REPO_ROOT:-NOT FOUND}" |
There was a problem hiding this comment.
We get a warning if REPO_ROOT is not found later in the script, I wonder if it would be beneficial if we can move it after this echo as to remind the dev that there is no need for concern.
| build_angular_pkgs() { | ||
| (cd "${REPO_ROOT}/packages/angular" && npm install && npm run build) || return 1 | ||
| (cd "${REPO_ROOT}/packages/angular-server" && npm install && npm run build) || return 1 | ||
| } | ||
|
|
||
| build_react_pkgs() { | ||
| (cd "${REPO_ROOT}/packages/react" && npm install && npm run build) || return 1 | ||
| (cd "${REPO_ROOT}/packages/react-router" && npm install && npm run build) || return 1 | ||
| } | ||
|
|
||
| build_vue_pkgs() { | ||
| (cd "${REPO_ROOT}/packages/vue" && npm install && npm run build) || return 1 | ||
| (cd "${REPO_ROOT}/packages/vue-router" && npm install && npm run build) || return 1 | ||
| } |
There was a problem hiding this comment.
These are missing the npm run sync command
core/scripts/vercel-build.sh
Outdated
|
|
||
| build_angular_test() { | ||
| local APP | ||
| APP=$(pick_app "${REPO_ROOT}/packages/angular/test" ng20 ng19 ng18) || { |
There was a problem hiding this comment.
Is it possible to make this dynamic? We would have to manually update the versions otherwise.
core/scripts/vercel-build.sh
Outdated
|
|
||
| build_react_test() { | ||
| local APP | ||
| APP=$(pick_app "${REPO_ROOT}/packages/react/test" react19 react18) || { |
There was a problem hiding this comment.
Is it possible to make this dynamic? We would have to manually update the versions otherwise.
core/scripts/vercel-build.sh
Outdated
|
|
||
| build_vue_test() { | ||
| local APP | ||
| APP=$(pick_app "${REPO_ROOT}/packages/vue/test" vue3) || { |
There was a problem hiding this comment.
Is it possible to make this dynamic? We would have to manually update the versions otherwise.
| const App: React.FC = () => ( | ||
| <IonApp> | ||
| <IonReactRouter> | ||
| <IonReactRouter basename={import.meta.env?.BASE_URL?.replace(/\/$/, '') || undefined}> |
There was a problem hiding this comment.
It might be helpful to add a comment of why basename is added so we avoid removing it because we don't remember it's importance.
|
RE: Your review comment: Not really, unfortunately. If we relied on code-based suggestion, we'd be building most of the time anyway (we need to build them all any time core changes). If we went the tag route, we'd have to make some annoying changes to Vercel, including giving it a GitHub token to read that I think. I'm pretty sure what it currently has access to isn't enough to pull labels like that. |
Issue number: resolves internal
What is the current behavior?
Vercel preview deployments only build and serve core Stencil component test pages. Framework-specific test apps (Angular, React, Vue, React Router) are not included, requiring developers to pull and build locally to validate them.
What is the new behavior?
Vercel preview deployments build and serve framework test apps alongside core component tests under a single preview URL.
Does this introduce a breaking change?
Other information