| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## main #3578 +/- ##
==========================================
- Coverage 60.67% 59.19% -1.48%
==========================================
Files 35 35
Lines 1790 1784 -6
Branches 404 361 -43
==========================================
- Hits 1086 1056 -30
- Misses 562 612 +50
+ Partials 142 116 -26
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
Currently blocked due to the Build failing due to parcel build in v2 not working the same as in v1. Filed an issue upstream here but would love any help/suggestions. |
Sorry, something went wrong.
There was a problem hiding this comment.
A lot of changes in the deps, it's a good thing we have good test coverage!
Sorry, something went wrong.
|
Turns out this only semi-works. yarn watch isn't actually working and the end-to-end tests are failing. I'm going to explore the alternative, switching to tsc instead of parcel |
Sorry, something went wrong.
|
WIP: https://github.com/cdr/code-server/tree/jsjoeio/remove-parcel Having issues getting our code to load in the browser after compiling with tsc and then using browserify. Ideally, it should be easy:
The adventure continues next week. |
Sorry, something went wrong.
|
Anything I can help with to upgrade you to Parcel 2? What issues did you run into with it? |
Sorry, something went wrong.
|
Hey @devongovett - super kind of you to offer to help — thank you! I wish I took better notes when I was trying to upgrade to Parcel 2. I filed two issues (parcel-bundler/parcel#6433 and parcel-bundler/parcel#6433) which did help but there were other issues we couldn't get past. All I do remember was something changed between Parcel 1 and Parcel 2 with how TypeScript files were bundled and we couldn't get it working with Parcel 2. There also weren't TypeScript typings, which was a bit of a bummer (but I think that's being worked on? parcel-bundler/parcel#3912) Regardless, it made us realize that we really only needed to bundle a few files and it was probably overkill asking Parcel to do it for us. We ended up using tsc and browserify and it turned out to be very simple (see migration PR here #3614). Thanks again for offering to help! Can't tell you how much we appreciate it. |
Sorry, something went wrong.
|
Yes, TS definitions for the API are in progress: parcel-bundler/parcel#6484 Anyway, if you do figure out what the problem was I'm happy to help. Ideally Parcel should work fine for cases like this. |
Sorry, something went wrong.
parent c4e7ee3 author Joe Previte <jjprevite@gmail.com> 1624313323 -0700 committer Joe Previte <jjprevite@gmail.com> 1624386904 -0700 gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE6XoH+XX6Zt5LBiiaLJFZDGt0LCQFAmDSLVgACgkQLJFZDGt0 LCRIsw/8C35RO8Yr/gLs2PDeYXdmfBgB96dj71eZFeUxiURY+6xGkFLWff+Dm7P/ tN36AQSMkL8Ia8+r5XEQK1q92lQrsJfJKRRJ4OW/Xn2ZF8D0YRZWomhVjKHQRozs TPMt3IOeFjmCpF2M8veI3KgbF/p29YTwQ6PcKE2dsodF3CUoEzW9ciswKOinxAev iliSgbHuu35hX+OHtAm5ZJh5WOxhr23o9vwuJSLw2+/285sqPPwRO3wwZuLLh6wA KYFer3/vfS6+EIs0ushajeeDYsaMYtr55Yc9OI4otcQoT1GQFuGe5D/ISN6XYtmB N9RKKkiWVnG959eKQ7ycnDXrt1KQphxkaMR3o3DGsX1FPK6WAxOuDHN+VHZXelLM S8ZhmVblbfu8bkkLO8+xb5I1iz4NnV7QDI3q/1dqcq+ZTzRfu0b19RpPSxyZJ5dx 9g3KFZ29qzovb5aH5+9yQvJlGtflzsL6eIbOYdv7LuslEhE8Ks9Oa2zSjbQ8K/4q DAWfj6wR80yg36eL55gH9IJeMT0g+W3oUxRa0Um7PAgNAoFcaBI0jpAPuf1W7Rzd 2asHTkpENQUHe5fZkUpzVVmkqf2LzhjChAd5cKkdS4pp+ne8sfy6+sJRBoIUmwXy zQ8ZYJnsWXLrC/ijiOzFzrTskgr875vj7oEczmjfcyvNutskTG8= =kJgg -----END PGP SIGNATURE----- refactor: remove parcel refactor: upgrade to parcel v2 fix: css-what and normalize-url refactor: update parcel settings in build-code-server.sh feat: add .parcel-cache to .gitignore refactor: reference /src stylesheets in pages/*.html refactor: remove css imports from register.ts refactor: bundle pages/*css in release refactor: upgrade to parcel v2
How to fix:
Actually, that should work but I'm running into an issue which appears to be upstraem |
Sorry, something went wrong.
|
I'm going to try @code-asher's idea tomorrow and create a new branch and PR. I will copy over everything too. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR migrates us away from Parcel by using tsc and browserify to accomplish the same thing.
Originally, we needed to upgrade Parcel from v1 to v2 due to maintainers deprecating v1 and a bunch of security vulnerabilities that we couldn't patch in v1. We were going to use v2 but it has breaking changes. So we decided to replace it with browserify which is a bit more lightweight and does the same thing.
Changes
Screenshot
Screenshot after building and running locally

Checklist
Related