-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest + reducing work done per block when constructing them #2
Conversation
block.js
Outdated
return Block | ||
} | ||
|
||
// Generates a block map type => metadata => template block, so that block names don't |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't what ?
don't get recomputed every time a block is requested |
I really don't think we should have lock files (here package-lock.json) in libraries. any thought about that @roblabla ? |
I don't actually care one iota, it's a file that will always get recreated when running npm install on node8. If you don't want it, maybe we ought to explicitly add it to .gitignore. Same goes for yarn.lock. |
Yup, lockfiles are good for binaries (E.G. flying-sheep) but not libraries |
Ah, we should probably merge (part of) that |
reopen if you still think that would be useful |
* Added getHashValue * Added getHash to Block * simplify and add test * Fixed hashing * Added other collided blocks * prismarine-block to global * Update index.js * Update index.d.ts * added 4 byte mask * Added sorting * Added getHashValue * Added getHash to Block * simplify and add test * Fixed hashing * Added other collided blocks * prismarine-block to global * Update index.js * Update index.d.ts * added 4 byte mask * Added sorting * Add back EOL for lint * Description corrections * Updated docs * Updated docs #2 --------- Co-authored-by: extremeheat <[email protected]>
Changes: