Skip to content
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

Cdn links #1695

Merged
merged 39 commits into from
Apr 15, 2021
Merged

Cdn links #1695

merged 39 commits into from
Apr 15, 2021

Conversation

disko998
Copy link
Contributor

No description provided.

@jsdelivr jsdelivr deleted a comment from disko998 Mar 22, 2021
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-q8pfsgtilyzfu March 22, 2021 21:15 Inactive
@jimaek
Copy link
Member

jimaek commented Mar 22, 2021

Fix the build and tests please. Under this PR we can also remove the cdn/ directory I think. Please do that and fix any issues that come from that.

config/_files2.yml Outdated Show resolved Hide resolved
@@ -1,338 +1,323 @@
bootstrap:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file can be removed I think, it was needed when the files were hosted in the repo itself. Now both cdn/ dir and this file can be removed I believe a new one can be generated during build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this files is generated with a new generation script that creates cdn from jsDeliver api. And then later app reads from the file to generate sri and display links on the website.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes so we can remove it from the repo and run it during the build process and generate the file then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I just need to make a small change because the script now requires this file to exist before running the script, but I'll change that to create it on the fly.

@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-vqmvky5kynqh3 March 23, 2021 22:28 Inactive
@disko998
Copy link
Contributor Author

As I said, v5 is in a new package: https://www.jsdelivr.com/package/npm/@fortawesome/fontawesome-free

So we need to switch to that one?

@disko998
Copy link
Contributor Author

I was looking at the bootstrap doc like @jimaek said so they still use 4.7.0

@MartinKolarik
Copy link
Member

Yes.

@jimaek
Copy link
Member

jimaek commented Mar 31, 2021

I was looking at the bootstrap doc like @jimaek said so they still use 4.7.0

I meant check the format and what files they use, not literally use the same versions. The goal of this migration is to always show the latest available versions for all projects that this site hosts

@@ -54,6 +54,7 @@ bootstrap:
javascriptEsmSri: sha384-sKZy8g2KJhBTFCD6cIg8d4EifJxaa8c/iYIERdeKorHWhAgZgQOfqOKMe3xBqye1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file should be removed completely from the repo. For auto-updates to work we need to generate it during deployment. I dont see a reason to host it in the repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can put it in gitignore

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do everything you need to delete it from the repo and make sure the tests run on the file that is generated on the fly

@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs March 31, 2021 18:41 Inactive
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs March 31, 2021 19:54 Inactive
@disko998
Copy link
Contributor Author

disko998 commented Apr 1, 2021

I was looking at the bootstrap doc like @jimaek said so they still use 4.7.0

I meant check the format and what files they use, not literally use the same versions. The goal of this migration is to always show the latest available versions for all projects that this site hosts

I mean that was the latest version for the package I used, how should I know that we need to use @fortawesome/fontawesome-free

@disko998
Copy link
Contributor Author

disko998 commented Apr 1, 2021

What is the command to fix these eslint errors, is annoying to go over them by hand?

@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 3, 2021 20:53 Inactive
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 4, 2021 20:15 Inactive
@disko998
Copy link
Contributor Author

disko998 commented Apr 4, 2021

@jimaek is there a way to fix these lint errors with puglint, not sure what is a cmd? Can't fix it with eslint --fix also someone mentions prettier works automatically but it doesn't seems so.

@jimaek
Copy link
Member

jimaek commented Apr 4, 2021

@jimaek is there a way to fix these lint errors with puglint, not sure what is a cmd? Can't fix it with eslint --fix also someone mentions prettier works automatically but it doesn't seems so.

Maybe xo --fix?

@XhmikosR
Copy link
Collaborator

XhmikosR commented Apr 5, 2021

Pug lint doesn't have an auto-fix command. You will need to fix the errors manually. Just don't use tabs and pay attention to indentation since pug needs it. But the errors here are in JS, so npm run xo -- --fix should do the trick.

@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 5, 2021 14:31 Inactive
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 6, 2021 21:54 Inactive
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 12, 2021 19:49 Inactive
@jimaek jimaek requested a review from MartinKolarik April 13, 2021 11:41
@jimaek jimaek temporarily deployed to bootstrapcdn-cdn-bf590npkjexhs April 15, 2021 19:38 Inactive
@jimaek jimaek merged commit 000eb08 into jsdelivr:develop Apr 15, 2021
@jimaek jimaek deleted the cdn branch April 15, 2021 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants