
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
game-bucket
Advanced tools
Common game utilities + rollup config, suitable for a small game competition. Like [JS13k](http://js13kgames.com/)!
Common game utilities + rollup config, suitable for a small game competition. Like JS13k!
Includes:
npm run zip
Rollup bundles JS using ES2015 modules, but does not leave any of the import/export syntax in the resulting bundle. It pulls everything into the same lexical scope, uniquely named. This makes it excellent for a size-based competition, because by its very nature it emits the smallest representation of code! Combined with UglifyJS this gets us very close to a nice base size.
Fork this repo, then add / change code in index.js as you see fit! There are two dependencies included, but you can remove those. Rollup ensures that only code you import
is included!
The default branch for this repo is gh-pages
, so it's easy to share your game as well! For example, index.html is available at [gh-username].github.io/game-bucket/index.html!
npm run zip
How close are you to the limit? Compiles in production mode, and creates a zip suitable for JS13K!
npm run build
Build the bundle.js
. Use NODE_ENV=production npm run build
to remove debug / runtime checks (similar to how React does it).
npm run watch
Rebuild quickly for development mode!
npm run uglify-view
See what the compiled JS will look like, to make sure rollup is treeshaking / hoisting as expected and that dead code is being eliminated. Requires bundle.js
to exist.
MIT
FAQs
Common game utilities + rollup config, suitable for a small game competition. Like [JS13k](http://js13kgames.com/)!
The npm package game-bucket receives a total of 2 weekly downloads. As such, game-bucket popularity was classified as not popular.
We found that game-bucket demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.