Conversation
| @@ -0,0 +1 @@ | |||
| ../dist No newline at end of file | |||
There was a problem hiding this comment.
I have added a dist symlink in order the static server to serve the examples/ folder as root (to fake that dist/ is inside examples/, see #370 (review))
| <script src="https://unpkg.com/three@0.149.0/build/three.min.js"></script> | ||
| <script src="https://unpkg.com/gsap@3.10.4/dist/gsap.min.js"></script> | ||
| <script src="../dist/camera-controls.js"></script> | ||
| <script src="dist/camera-controls.js"></script> |
There was a problem hiding this comment.
I just update with the dist symlink here and for the other examples/*.html files
| }, | ||
| "scripts": { | ||
| "dev": "rollup --config --watch", | ||
| "dev": "rollup --config --watch & serve -S -p 3000 examples/ && kill $!", |
There was a problem hiding this comment.
npm run dev now rollup --watch and serve the examples folder at the same time
| "husky": "^8.0.3", | ||
| "lint-staged": "^13.1.2", | ||
| "rollup": "^3.10.1", | ||
| "serve": "^14.2.0", |
There was a problem hiding this comment.
oh nice!
I didn't think this can be possible with only one additional dependency.
and I would like to add this regardless of this PR anyway since non-es-module three.js will be deprecated.
(Actually, I didn't use a local server and opened with file://, but es-module doesn't accept this anymore...)
|
🎉 This PR is included in version 2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |

This PR aims at enhancing the developer experience, by allowing anyone to have the project up-and-running in a Codespace in one click, right from his browser:
This PR add a
.devcontainerto the repository, that:npm cidist/folder and startserveing theexamples/folder to http://localhost:3000NB: It also works locally with Dev Containers extension
abernier:devcontainerbranch on Codespace: by clicking on