-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
Fix start-debug to watch ts files #704
Conversation
fceba56
to
df6666d
Compare
It's great that you managed to make the typescript rollup plugin work, I came across some nasty errors when I did the typescript migration. |
I did it first, but I extracted it to use it for |
Yes, I meant maplibre-gl.d.ts. Did you delete the dist folder to make sure it's generated? Sorry for nagging, I just fought with it a lot to make it run so I'm surprised all these configurations are not actually needed... Also note that I let the tests run and some are failing, you'll need to investigate why, might be related to the bundle size change as some things broke... IDK... |
Yes I moved the folder between each commit to make sure to compare them. In fact it's still
I'm still not that familiar with all the tests,, but I'm investigating to make all the tests pass. Thanks for the support! |
Bundle size report: Size Change: 0 B
ℹ️ View DetailsNo major changes |
I changed my approach, now the build are nearly the same as before, thus the generated bundles are exactly the same, I only use the typescript rollup plugin in watch mode. |
Thanks for looking into it! Very much appreciated! |
The output is valid, but many tests use the intermediate js files that the watch do not generate. One way would be to use ts files in the tests, but I could not make it work. |
We are migrating the unit tests to Jest, which can parse the TypeScript files directly. Or are you talking about different tests? |
But I saw that the build tests failed, which I think indicates that something is a bit off with the output...? |
Tap can parse TypeScript files, but I had issues when mixing js and ts files. I could solve it for some tests by converting them fully to TypeScript, but some tests like
Maybe you saw the tests of an old push, now the tests succeed, or maybe you are talking about something else? |
Any chance you can create another PR with the typescript rollup plugin "always on" so we can look at the failing tests to make sure they are only related to js tap tests and not the output of the rollup build (i.e. the build tests)? |
If you want, but most tests won't even start because they try to import js files in |
I know, I know, that's fine... |
PR #720. |
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.
nits...
Let's merge this. Hopefully we'll be able to fully integrate typescript into rollup later on, but right now this at least fixes the watch scripts. |
* main: (98 commits) [Jest] Migrate `geojson_worker_source.test.js` (maplibre#731) Fix events being fired after Map#remove has been called when the WebGL context is lost and restored (maplibre#726) (maplibre#727) Define return type of getSource as possibly undefined (maplibre#724) Fix attibution controll (maplibre#668) Fix start-debug to watch ts files (maplibre#704) [Jest] Migrate `touch_zoom_rotate.test.js` (maplibre#721) [Jest] Migrate `requestRenderFrame.test.js` (maplibre#722) [Jest] Migrate `scroll_zoom.test.js` (maplibre#712) [Jest] Migrate `marker.test.js` (maplibre#696) [Jest] Migrate `mouse_rotate.test.js` (maplibre#711) [Jest] Migrate `keyboard.test.js` (maplibre#707) [Jest] Migrate `map_event.test.js` (maplibre#710) [Jest] Migrate `drag_rotate.test.js` (maplibre#709) Handle spies and call counts (maplibre#708) [Jest] Migrate `drag_pan.test.js` (maplibre#702) Add type for styleimagemissing event (maplibre#703) Fix MapDataEvent#isSourceLoaded being true in GeoJSONSource "dataloading" event handlers (maplibre#694) (maplibre#695) [Jest] Migrate `dblclick_zoom.test.js` (maplibre#697) [Jest] Migrate `popup.test.js` (maplibre#687) Fixed typo (maplibre#698) ...
* pluggable-render: (102 commits) WIP - pluggable render update Removed a badly typed variable [Jest] Migrate `geojson_worker_source.test.js` (maplibre#731) Fix events being fired after Map#remove has been called when the WebGL context is lost and restored (maplibre#726) (maplibre#727) Define return type of getSource as possibly undefined (maplibre#724) Fix attibution controll (maplibre#668) Fix start-debug to watch ts files (maplibre#704) Filter out hillshade layers Filter out hillshade styles [Jest] Migrate `touch_zoom_rotate.test.js` (maplibre#721) [Jest] Migrate `requestRenderFrame.test.js` (maplibre#722) [Jest] Migrate `scroll_zoom.test.js` (maplibre#712) [Jest] Migrate `marker.test.js` (maplibre#696) [Jest] Migrate `mouse_rotate.test.js` (maplibre#711) [Jest] Migrate `keyboard.test.js` (maplibre#707) [Jest] Migrate `map_event.test.js` (maplibre#710) [Jest] Migrate `drag_rotate.test.js` (maplibre#709) Handle spies and call counts (maplibre#708) [Jest] Migrate `drag_pan.test.js` (maplibre#702) Add type for styleimagemissing event (maplibre#703) ...
This PR fixes
start-debug
and thewatch
scripts.Launch Checklist
maplibre-gl-js
changelog:<changelog></changelog>
.