CanvasGUI problems

Your repo isn’t following the standard way for versioning! :warning:

You have a /dist/canvasgui/ folder where you keep all your minimized version release subfolders.

Although that’s OK if we wish to keep all releases in 1 place, that’s improper for CDN distribution links!

The proper way is to always have the latest version at the repo’s root and then create repo releases for it:

If you click the link above and are the owner of the repo, you’ll see a big green button labeled “Create a new release”.

Given canvasGUI’s current latest version is 0.9.6, choose a tag name:
v0.9.6 (the v prefix is optional, but recommended)

Those repo tags are the way CDNs identify releases!

If you add release v0.9.6 and have “gui.js” file at the repo’s root, the jsDelivr CDN links are gonna be like:

  1. https://cdn.jsDelivr.net/gh/quarks/canvasGUI@0.9.6/gui.js
  2. https://cdn.jsDelivr.net/gh/quarks/canvasGUI@0.9.6/gui.min.js

BtW, jsDelivr automatically generates a minimized version if we use extension “.min.” if 1 doesn’t exist.

But of course, you can explicitly make “gui.min.js” and place it at the repo’s root along w/ the non-minimized “gui.js” version.

Also, if we omit the “@0.9.6” version, we’ll get the “@latest” 1 by default:

  1. https://cdn.jsDelivr.net/gh/quarks/canvasGUI/gui.js
  2. https://cdn.jsDelivr.net/gh/quarks/canvasGUI/gui.min.js

I believe if you follow that style, it’ll increase the chance to be approved by the Open Processing sketch hosting site. :folded_hands:

P.S.: Of course you can do all that and still keep your “/dist/canvasgui/” folder. 1 doesn’t exclude the other. :grinning_cat_with_smiling_eyes:

1 Like