-
Notifications
You must be signed in to change notification settings - Fork 80
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
Move to esbuild instead of browserify #1336
Conversation
I opted out browser tests by removing the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1336 +/- ##
==========================================
- Coverage 77.61% 77.48% -0.14%
==========================================
Files 83 83
Lines 16576 16587 +11
Branches 1640 1638 -2
==========================================
- Hits 12866 12852 -14
- Misses 3652 3678 +26
+ Partials 58 57 -1 ☔ View full report in Codecov by Sentry. |
We don't mention the test commands at all (at the moment). Since the CI will run the check, developers will notice problems latest once pushing. Hence, I don't think we need to mention |
note that now the browser tests are not run on every push, but only on PRs. developers can run them locally with `npm run test:browser`.
Sorry there were complications with prettier (which I've updated to keep the new runner tests in check). I had to also re-run the format command since it seems that the new prettier has different rules. Sorry for making reviewing this harder... please let me know if there something wrong that you spot. Regarding how the browser tests are run, they can run using |
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.
I didn't spot any obvious issue apart from "master" vs "main".
After fixing that, I am fine with merging...
Thanks a lot @relu91 !!
You are right! that's why they didn't run!!! nice catch. pushed the fix. |
mmm it seems that we still require some python to be installed when doing development of node-wot. Let me try change the CI configuration. |
Now we hit a bug with optional dependencies:
This error is suggesting to re-generate the |
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.
I think now everything seems to work 👍
This PR should eventually completely move us from the old browserify build to a more modern toolchain based on esbuild and web/test-runner. There are still things to fix: