tallboy / snowgo.at

ServiceNow Snow G.O.A.T.s
1 stars 8 forks source link

(chore) use Parcel to build the app 📦 #38

Closed YellowKirby closed 2 months ago

YellowKirby commented 3 years ago

Because where's the fun in building a webapp if you're not going to use shiny new tooling all the time?

Swaps out the old gulp-based workflow for Parcel, which covers pretty much everything we need with zero configuration. This should help us with more complex things in the future like adding in GOAT templating (#2) and better performance by serving ES modules to browsers that support it.

Note that with this commit alone, the bundle size is worse than it used to be. Parcel's image optimization is lossless by default and doesn't minify the massive 4.4MB tyler-paulo.jpg as much as the imagemin-based approach (#15). This will be fixed up in a future commit.

Also there's a slight dev workflow change here, but overall should be simpler:

tallboy commented 2 months ago

Fix conflicts plz

YellowKirby commented 2 months ago

@tallboy :shipit: 🙏

YellowKirby commented 2 months ago

This PR seems to have broken the deployment through Cloudflare, but I don't have a way to look at the errors/logs to figure out what's going wrong :(

https://github.com/tallboy/snowgo.at/commit/df003d706596e464044216b554c9ec460031b68e