-
Notifications
You must be signed in to change notification settings - Fork 20
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: typescript assets in 11ty dev server and ssr #1992
Conversation
|
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
f67c197
to
22e4593
Compare
22e4593
to
2067482
Compare
Size Change: -3.76 kB (-1.78%) Total Size: 207 kB
ℹ️ View Unchanged
|
@adamjohnson @zeroedin PTAL, I managed a patch to jspm/generator which lets us ignore all local modules in the tracing process. |
Seeing some issues with the build. It seems initially a
Here's what's being output in my console FWIW: Initial https://app.warp.dev/block/OsOoMVvEhuT8xiUt5FxLUm After running |
When running
After these steps, I figured I would try something similar with
|
i wasn't able to reproduce on linux, i'll try on macos:
|
@adamjohnson confirmed your issue on macOS, but oddly it doesn't happen on linux 🤷 Either way, bumping to node 23 seems to have done the job, so 🤞 PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't appear the files ever get created in _site/assets/packages/@rhds/elements/
or _site/assets/packages/@uxdot/elements/
My assumption is while running npm run serve
that these files get created on the fly, but when needed for CI and a static site they aren't available, most likely related to previous build comment.
I tested these on both OSX and Linux Mint. Anecdotally, it takes 11 seconds for a docs change on my M2 MBP. It takes ~50 seconds for a docs change on my personal Dell laptop from 2018. The difference in speed on the Apple silicone is real. I wonder if anyone has a Windows machine they'd be willing to test with? I unfortunately do not have a Windows device. |
Unless someone asks, and gives a compelling reason why we should care, I really don't want to support windows for our development workflow. They can use WSL, a vm, a container, online services like gh codespaces, whatever. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Leventy Gains Typescript Manipulation
What I did
migrate all elements to new standardreverted this because for reasons i care not to know, it breaks the build's performance in a serious way.accessor
syntax for standard decorators/ts5.0 (might spin this into a separate pr)So now the 11ty dev server and the wds dev server operate entirely on typescript sources, with no build. the only time we compile is during the docs build so we can copy files over, and in the 'build' script so we can ship js files.
Testing Instructions
npm run serve
andnpm run build
Notes to Reviewers
In it's current state (thursday morning, Jerusalem time), the build has been going for 14 hours, and after 50 pages or so, pages take 30 minutes each to build. Clearly there's a leak or other perf issue somewhere.