-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compile with parcel #4
base: master
Are you sure you want to change the base?
Conversation
Hey, thanks for this. To be honest, I’ve never used any sort of bundler (or any sort of JS toolchain, really — my projects tend to be pretty small) so I don’t really know what the advantages are here. It seems cool that you can easily deploy it to gh-pages. Before merging this in, I’d like to know how to build/deploy it. I’d install parcel and Thanks for doing the linting! Several months ago I was looking at optimizing and was pretty sure it wasn’t using jQ, but couldn’t remember for sure from when I first wrote this in 2018. |
Yes. You can also just do |
You would just need to add the following file to master branch. Enable GitHub pages to a clean branch and 🎉 https://github.com/yakov116/isyontefearlythisyear/blob/master/.github/workflows/demo.yml |
https://observablehq.com/embed/@d3/d3v6-migration-guide?cells=group it would be nice to be able to upgrade to d3 v6 but I am not sure what to replace there. The whole file will be cut in 1/2 |
I added the file to this PR it will enable it after merging |
Wow, is v6 that much smaller‽ I didn’t realize that. It has a number of breaking changes with v5 because it relies on newer built-in JS data structures like maps, which is great, but means updating the way isyontefearlythisyear aggregates data. I don’t think it’d actually be that hard, but this project has kind of been in launch-and-forget mode for a while. |
Its modual based which means that when compiling it will only bring the functions we use. V5 imports everything |
It seems like a lot of your linting is making style changes that are opinion based. Out of curiosity, are there advantages to putting spaces before function arguments, using single-quote strings, and using tab rather than 4-space indenting? (I agree with you on using |
My personal style. I can change the setting in the linter.
This is the only one that I really like, makes it easier to read. IMHO |
Bump |
@Noleli ? |
Hi Yakov, sorry for the delay, and thanks again for your contribution! I’m good with most of the linting and getting rid of the unused dependencies, but really don’t think a project of this size is large enough to warrant a build tool. The one linting thing I disagree with is the replacement for |
The whole point of the PR was to use Parcel so it can be deployed via GitHub pages (making load time instant since everything is compiled and no need to download any files.) |
Basically what I did here is compile the website with parcel.
Using gh-pages you can deploy this directly.
There was no code changes except for some linting (Use ES6 syntax etc.)
I also removed non used dependencies (Jquery and Bootstrap Java script files) this make the fast website load even faster
You can test it out on https://yakov116.github.io/isyontefearlythisyear/
I am not finished linting. I would just like to know if you would accept this.
Also needed would be to enable actions and create the workflow file