Closed ox closed 5 years ago
Hi! Thank you for your pull request, I will have a look at it this weekend 👍
Thanks @ox, I'll make a few stylistic changes (add prettier) after the merge but in general it looks good 👍
Awesome! Thanks for taking a look.
I was reading thought the lib and found a bunch of opportunities to clean up the code. Most of these are around removing unnecessary promise chains and indenting, using the stdlib instead of string concat to make paths, and making texture conversion a bit less verbose. I tried to keep in the style of the existing code, and added linter rules to enforce it (I prefer spaces, but eslint will convert to tabs automatically on save).
This PR also fixes issues I was encountering with saving to relative paths.