Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): Avoid prebuilding api side, instead use an esbuild plugin #9767

Merged
merged 60 commits into from
Jan 18, 2024

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Dec 28, 2023

Resurrecting this again, to see if I can get CI more stable this time

2nd edition Implementation: With the second edition, I'm trying esbuild's watcher - rather than chokidar
This is a no go ❌, because when new files are introduced the watcher isn't triggered.

3rd edition implementation: Use esbuild's rebuild function that may provide performance benefits

Old PR #7672

dac09 and others added 30 commits February 22, 2023 15:59
…p-prebuild

* 'main' of github.com:redwoodjs/redwood:
  chore(deps): update dependency @types/uuid to v9.0.1 (redwoodjs#7680)
  chore(deps): update dependency @replayio/playwright to v0.3.23 (redwoodjs#7677)
  chore(deps): update dependency @npmcli/arborist to v6.2.3 (redwoodjs#7675)
  chore(deps): update dependency @envelop/types to v3.0.2 (redwoodjs#7674)
  chore: add codemod for clerk fix in v4.2.0 (redwoodjs#7676)
  chore(deps): update dependency @clerk/types to v3.28.1 (redwoodjs#7652)
  chore(deps): update dependency @envelop/testing to v5.0.6 (redwoodjs#7673)
  Update directives.md (redwoodjs#7670)
  fix(deps): update dependency vscode-languageserver-types to v3.17.3 (redwoodjs#7636)
  Fix `yarn rw exec` to set nonzero exit code on error (redwoodjs#7660)
…p-prebuild

* 'main' of github.com:redwoodjs/redwood: (1608 commits)
  Docker: Update to work with corepack and yarn v4 (redwoodjs#9764)
  [RFC]: useRoutePaths (redwoodjs#9755)
  Adds a note about the two commands you will use with your schema to the top of the schema file (redwoodjs#8589)
  docs: Supertokens.md: Fix typo (redwoodjs#9765)
  Fix supertokens docs & integration issues (redwoodjs#9757)
  fix(apollo): Enhance error differently for Suspense Cells (redwoodjs#9640)
  SSR smoke-test: Use <Metadata /> (redwoodjs#9763)
  chore(deps): update dependency @types/qs to v6.9.11 (redwoodjs#9761)
  chore(ci): Better error handling in detectChanges.mjs (redwoodjs#9762)
  fix(path-alias): Fix aliasing of paths using ts/jsconfig (redwoodjs#9574)
  chore(deps): update dependency @types/yargs to v17.0.32 (redwoodjs#9759)
  Make it easier to find useMatch docs (redwoodjs#9756)
  chore(unit tests): Use side-effect import to fix TS errors (redwoodjs#9754)
  fix(context): Refactor context (redwoodjs#9371)
  docs: Replaced deprecated <Set private> with PrivateSet within router.md (redwoodjs#9749)
  add TS support for storybook preview tsx config extension (redwoodjs#9309)
  fix(studio): Fix windows path issues (redwoodjs#9752)
  chore(tasks): Add comparison view to nmHoisting visualisation (redwoodjs#9751)
  chore(cli): make fs modules used in the CLI consistent (redwoodjs#9746)
  ...
jtoar and others added 5 commits January 6, 2024 22:05
…p-prebuild-try-2

* 'main' of github.com:redwoodjs/redwood:
  fix(server): error early on incompatible config (apiHost and apiUrl) (redwoodjs#9808)
  chore(esm): convert crwa to esm and bundle (redwoodjs#9786)
  chore(cli): More robust isAwaitable (redwoodjs#9806)
  chore(ci): Update task names to say "node 20" (redwoodjs#9805)
  Use TS for rebuild-test-project-fixture script (redwoodjs#9804)
  chore: bump TSTyche (redwoodjs#9803)
  docs(fragments): Typo, grammar and formatting fixes (redwoodjs#9802)
@dac09 dac09 marked this pull request as ready for review January 8, 2024 09:34
…p-prebuild-try-2

* 'main' of github.com:redwoodjs/redwood:
  chore: Improved Possible Types DX and Framework integration for GraphQL Fragments with Union and Interface support (redwoodjs#9594)
tasks/e2e/cypress.config.js Outdated Show resolved Hide resolved
@dac09
Copy link
Collaborator Author

dac09 commented Jan 8, 2024

Thanks for the review @Tobbe - going to wait till Dom and I get a chance to go through this together in detail - there's a chance CI won't catch finer details here.

…p-prebuild-try-2

* 'main' of github.com:redwoodjs/redwood:
  Fastify config: Use exact file extension in log message (redwoodjs#9828)
  Remove unused Fastify plugin (redwoodjs#9827)
  Add trusted-documents to fragments CI smoke-test (redwoodjs#9826)
  prerender: Enable Trusted Documents support (redwoodjs#9825)
  trustedDocuments.test.ts: Format source
  cli: add missing dep jscodeshift (redwoodjs#9823)
  graphql setup fragments: Move telemetry to main handler (redwoodjs#9819)
  feat: Adds Setup CLI Command to Configure GraphQL Trusted Documents (redwoodjs#9800)
  Update cli tsconfig to reference used packages (redwoodjs#9822)
  fragments setup: newline fix + refactor->rename (redwoodjs#9821)
  yarn rw setup graphql fragments (redwoodjs#9811)
@dac09
Copy link
Collaborator Author

dac09 commented Jan 15, 2024

Comments addressed!

@jtoar I'll let you do the final check and merge when ready :)

@jtoar jtoar merged commit 4f1cd09 into redwoodjs:main Jan 18, 2024
38 checks passed
@jtoar jtoar mentioned this pull request Jan 18, 2024
dac09 added a commit that referenced this pull request Jan 22, 2024
…edwood into try/setupScenario-multiple-tests

* 'try/setupScenario-multiple-tests' of github.com:dac09/redwood: (235 commits)
  chore(project-config): switch to vitest (#9864)
  chore(ci): Fix CRWA telemetry check (#9865)
  chore(crwa): update e2e test to handle yarn install patch (#9862)
  feat(crwa): Always install using yarn v4 (#9861)
  fix(cli): Skip Studio when running `rw upgrade` (#9860)
  fix(studio): Upgrade to 11.0.1 and enable web-side (#9858)
  feat(server file): add `createServer` (#9845)
  chore(crwa): set `REDWOOD_CI` and `REDWOOD_DISABLE_TELEMETRY` (#9857)
  Fix(crwa): Exit 0 after Quit install (#9856)
  chore(crwa): switch to vitest (#9855)
  chore(api): Switch to use vitest over jest (#9853)
  fix(server): ensure consistency between CLI serve entrypoints regarding help and strict (#9809)
  Improve how the api-server watch command works (#9841)
  docs(typo): correct grammar in realtime docs (#9850)
  Add support for Prisma Bytes and GraphQL scalar Byte (#9847)
  packages/cli: Switch from substr (deprecated) to slice (#9849)
  mapPrismaScalarToPagePropTsType: Fix Decimal test case (#9846)
  chore(build): Avoid prebuilding api side, instead use an esbuild plugin (#9767)
  Fix url query param encoding (#9844)
  chore(fwtools): handle existing resolutions in tarsync (#9840)
  ...
@jtoar jtoar modified the milestones: next-release, v7.0.0 Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants