You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File export statement is not using ES6 arrow function
modulifyFile and modulifyMipmap are handled asynchronously. I would suggest modulifyImage to be handled asynchronously as well, for consistency with these other functions. I'll leave to your discretion.
Consider inlining const x = loadFileAsDataURI( abspath ); with its usage in base64:${x}. Or at least consider renaming to fileDataURI.
modulifyMipmap uses an options object to pass in args for createMipmap()'. The args aren't noted as optional. Consider renaming to config`.
In expandDots consider renaming x to parentDirectory maybe?
Docs:
expandDots is missing js doc
convertSuffix' is missing @return` doc
getSuffix is missing @return doc
Typo in export statment docs? Should read * @param {string} repo - the name of a repo, such as 'joist'
grunt --help reads modulify will generate js files for images/strings/audio/etc while the top level documentation mentions "images or sounds". Should the files mentioned be consistent?
Miscellaneous:
TODO: Related to support for non-defaults exports. Has this been addressed?
TODO: Related to mipmap support. This file currently supports modifying mipmaps so can this be removed?
Assigning to @jonathanolson to respond to the above comments.
The text was updated successfully, but these errors were encountered:
From #872:
modulify.js
modulifyFile
andmodulifyMipmap
are handled asynchronously. I would suggestmodulifyImage
to be handled asynchronously as well, for consistency with these other functions. I'll leave to your discretion.const x = loadFileAsDataURI( abspath );
with its usage inbase64:${x}
. Or at least consider renaming tofileDataURI
.modulifyMipmap
uses anoptions
object to pass in args forcreateMipmap()'. The args aren't noted as optional. Consider renaming to
config`.expandDots
consider renamingx
toparentDirectory
maybe?Docs:
expandDots
is missing js docconvertSuffix' is missing
@return` docgetSuffix
is missing@return
doc* @param {string} repo - the name of a repo, such as 'joist'
grunt --help
readsmodulify
will generate js files forimages/strings/audio/etc
while the top level documentation mentions "images or sounds". Should the files mentioned be consistent?Miscellaneous:
Assigning to @jonathanolson to respond to the above comments.
The text was updated successfully, but these errors were encountered: