0beqz / screen-space-reflections

Implements Screen Space Reflections in three.js
https://screen-space-reflections.vercel.app/
MIT License
550 stars 44 forks source link

rollup, vite, prettier, husky #6

Closed drcmda closed 2 years ago

drcmda commented 2 years ago

i left out typescript for now to keep it simple.

  1. to run the example:

    cd example npm install (once) npm run dev

  2. any change in ../src/* will hot reload.

  3. any staged file will run through prettier automatically with your original settings, i just set the print-width to 120chr. that's where the 62 changed files come from, it fixed format since some where tabs, some spaces, etc.

  4. build supports both esm and cjs, both should be declared properly in package.json

ps. the vercel deployment just needs to target /example now, it will be able to build and update it automatically on every change to the repo.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
screen-space-reflections ❌ Failed (Inspect) Jul 3, 2022 at 3:23PM (UTC)
0beqz commented 2 years ago

Thanks a lot!