
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@gimloader/build
Advanced tools
This is a package that provides a set of tools to help build more complex Gimloader plugins / libraries.
npm i -g @gimloader/build
To get started, make an empty folder and run the following command in the terminal:
gl init
From there you will be given some options to choose from. This command will generate the file GL.config.js
, which houses the configuration for the build tools. You can pick between esbuild and Rollup for bundlers.
input
: The input file that will be compiled.name
: The name of the plugin / library.description
: A brief description of the plugin / library.author
: The author of the plugin / library.version
: The version of the plugin / library.downloadUrl
: The download URL for the plugin / library, used by Gimloader for updates.bundler
: This decides which bundler is used. Set to esbuild to use esbuild, otherwise Rollup is used.plugins
: An array of Rollup plugins to use.rollupOptions
: Options to pass to Rollup.outputOptions
: Options to pass to Rollup's output.plugins
: An array of Esbuild plugins to useesbuildOptions
: Options to pass to esbuildreloadRequired
: Set to true if the plugin needs a reload to take effect, or set to "ingame" if it only needs a reload when in-game.libs
: A list of libraries to load. These strings should look like either "[library name]" or "[library name] | [download url]".optionalLibs
: The same as libs, but the plugin will still be run without these libraries.isLibrary
: Set to true if the plugin is a library.Running gl build
will compile the plugin / library and output it to build/[plugin name].js
.
Running gl serve
will start a local server to host the plugin / library. If the "Poll for plugins/libraries being served locally" setting is enabled on Gimloader, it will automatically detect changes to the plugin / library and reload it. By default, the plugin will be built whenever you save its files, but passing --manual will change it to only build when pressing enter in the terminal.
You can run gl servefile <file>
to serve a single javscript file, which will automatically reload when the file is changed. Similarly to gl serve
, passing --manual will change it to only update when pressing enter in the terminal.
FAQs
A package to help build complex plugins for Gimloader
The npm package @gimloader/build receives a total of 10 weekly downloads. As such, @gimloader/build popularity was classified as not popular.
We found that @gimloader/build demonstrated a healthy version release cadence and project activity because the last version was released less than 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.