p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

version.json doubts

Open montoyamoraga opened this issue 6 years ago • 4 comments

hi! working with @guillemontecinos, we are following the steps of the README.md and step 3 mentions creating the version.json file.

We are currently just copying and pasting the file version-sample.json and then changing its name to version.json, is that OK?

Also, the version.json mentions p5.js version 0.6.0 and we are currently on 0.7.2., should we update it on the version-sample.json file directly? Or in the version.json? Or is it irrelevant? Or automatic?

I'm tagging @limzykenneth because I think they know the answer, best! =)

montoyamoraga avatar Nov 27 '18 13:11 montoyamoraga

I have never done that step as I think it's only used to show the version number and date on the download page. The live site probably generate version.json somehow as the version number on the live site is correct.

I would personally like to eliminate that step entirely to get closer to being able to just run rm -rf dist/ and the build step can still generate all the necessary files for the website.

limzykenneth avatar Nov 27 '18 13:11 limzykenneth

thanks! i think i get it, so I won't touch the version-sample.json file in the meantime, I will leave this issue open if it's not a problem

montoyamoraga avatar Nov 27 '18 19:11 montoyamoraga

@montoyamoraga this file is .gitignored, so any data in here is fine, it will not get copied to the server. running the endpoint https://p5js.org/git-pull.php updates this file on the server, updating the version number from the github repo

lmccart avatar Nov 28 '18 03:11 lmccart

this should probably be documented in the readme, so let's leave this open until I can do that

lmccart avatar Nov 28 '18 03:11 lmccart

Hola @holomorfo , este PR esta listo para ser revisado

Guirdo avatar Apr 29 '24 14:04 Guirdo

Hello @Qianqianye @limzykenneth ! This PR is ready!

Thank you!

Guirdo avatar Apr 29 '24 17:04 Guirdo

Hi @Guirdo @holomorfo, could you fix the PR so it could pass the check? Thanks!

Qianqianye avatar Apr 29 '24 18:04 Qianqianye

@Qianqianye Done!

Guirdo avatar Apr 29 '24 19:04 Guirdo

Looks great, thanks!

Qianqianye avatar Apr 29 '24 22:04 Qianqianye