pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
237 stars 16 forks source link

Examples folder organisation #161

Closed vorg closed 1 year ago

vorg commented 5 years ago

We have moved to one js file per example structure with example-name.js files. That's great. But now we also have non-example-file.js there like build.js or helpers.js. It's a bit confusing as you need to read the source to find it is it example or not. It additionally breaks sketchbook-cli (multi file budo-like runner).

Proposal:

Missing

vorg commented 5 years ago

Or even better we could contribute to sketchbook-cli as gallery export in on wishlist there.

vorg commented 5 years ago

helpers.js -> that should be in pex-renderer core or pex-helpers build.js -> that has been replaced by webpack.config.js examples.js -> that has been replaced by index.js index.html -> i guess we need that for design

@dmnsgn any feedback on this? Is there current setup messy for you? Can we live with one webpack js file or should we move sources to /src or build scripts to /lib ?

dmnsgn commented 5 years ago

Ideal examples structure:

We're close to that, we just need to move helpers. Scripts could be in their own packages as well, as it would be nice to unify pex-renderer/context/gui/gl examples workflow.

Can we live with one webpack js file or should we move sources to /src or build scripts to /lib ?

Are you still talking about the examples here or pex-renderer lib? If the latter, we could have a single file at root folder with two entries:

vorg commented 5 years ago

So i guess the next step is to implement https://github.com/pex-gl/pex-renderer/issues/72 and remove helpers

dmnsgn commented 1 year ago

v4: helpers are in core now, esm and snowdev usage means no build step.