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): refactor and increase sanity #6146

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

wmertens
Copy link
Member

@wmertens wmertens commented Apr 23, 2024

now all packages only use other built packages, no source imports.

  • upgrade typescript + fixups
  • add a version override so the API extractor uses it too
  • make typescript use bundler semantics for imports
  • remove most TS path overrides, keep only per-package internal ones
  • change build for qwik-labs to use vite + dts plugin
  • build types and api in steps: qwik, then qwik-city+qwik-react, then the rest
  • fixes [🐞] Missing "export" in some types #6049
  • adds binary optimizer build for linux
  • improves CI workflow and fixes recent breakage

As a bonus, the total runtime for CI went from 50+ minutes to 40-ish, realtime from about 25 to about 15. Mostly thanks to way faster builds and somewhat faster E2E tests.

@wmertens wmertens force-pushed the build-refactor branch 10 times, most recently from 8add9a1 to 61cd209 Compare April 24, 2024 12:29
now all packages only use other built packages, no source imports.

- upgrade typescript + fixups
- add a version override so the API extractor uses the same TS version
- make typescript use bundler semantics for imports
- remove most TS path overrides, keep only per-package internal ones
- change build for qwik-labs to use vite + dts plugin
- build types and api in steps: qwik, then qwik-city+qwik-react, then the rest
- change the dev server to remove workarounds
- add flag to disable vendor scan, was causing e2e issues
- some type fixes
Playwright doesn't play that nice with NixOS because it downloads binaries that require libs that aren't always available. Nix has a special package with playwright browsers.

We don't use the latest features of Playwright, so lagging behind is fine and it limits the downloads required.
@wmertens wmertens force-pushed the build-refactor branch 15 times, most recently from 02c47d3 to 137d925 Compare April 24, 2024 19:39
the previous setup assumed that the display components would render twice before being visible but now they're only rendered once.
@wmertens wmertens requested a review from mhevery April 24, 2024 22:35
@wmertens wmertens merged commit 24ef307 into QwikDev:main Apr 24, 2024
22 checks passed
@wmertens wmertens deleted the build-refactor branch April 24, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐞] Missing "export" in some types
2 participants