Registry / gcp / minee
library0.0.9jsnpmunverified

Minee is a command-line interface (CLI) tool specifically designed to bundle modules for Google Earth Engine. It addresses the challenge of managing multiple script dependencies within Earth Engine by consolidating them into a single, compact JavaScript file. This process significantly reduces import times and file sizes, improving performance when working with complex Earth Engine projects. The current stable version is `0.0.9`, with a release cadence that has seen several minor updates in quick succession, indicating active development and responsiveness to bug fixes. A key differentiator is its specialized focus on the Earth Engine ecosystem, handling its specific module resolution requirements. It offers options for minification, custom output paths, and configuration via a `.minee.json` file, allowing developers to streamline their Earth Engine development workflow. It primarily functions as a CLI tool, without an exposed programmatic API for direct JavaScript integration.

npm install minee
INSTALL
IMPORT
SIG · MINEE
M
minee
gcpjavascriptv0.0.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

minee CLI
npm install -g minee
import minee from 'minee'
Minee is primarily a Command Line Interface (CLI) tool. It is installed globally and invoked via the 'minee' command in the terminal. There is no documented programmatic JavaScript API for direct import or require calls.

Demonstrates global installation, the critical authentication step for Earth Engine, and basic CLI usage with options, including an example of configuration file usage.

# First, install minee globally: npm install -g minee # Ensure you have authenticated with Earth Engine Git repositories if you haven't already: # Go to https://earthengine.googlesource.com/new-password and follow instructions to set up ~/.gitcookies. # Example: Bundle an Earth Engine module and save it to a 'bundled' directory, # keeping original variable names for easier debugging. minee --entry=users/aazuspan/geeSharp:geeSharp --dest=./bundled/geeSharp.min.js --keep-names # Alternatively, use a configuration file (.minee.json): # Create a file named .minee.json in your project root: # { # "entry": "users/aazuspan/geeSharp:geeSharp", # "dest": "./bundled/geeSharp.min.js", # "keepNames": true # } # Then run minee without arguments: minee
minee --version
Debug
Known issues
gotchaBefore using minee to bundle modules from Earth Engine Git repositories, you must authenticate your machine with Earth Engine's Git service. This involves generating a password and storing credentials in `~/.gitcookies` via https://earthengine.googlesource.com/new-password.
fix
Follow the authentication steps at https://earthengine.googlesource.com/new-password to ensure `~/.gitcookies` is correctly configured.
affects: >=0.0.1
breakingIn version 0.0.6, the `--entry` argument for specifying the module entry path was changed from a required positional argument to an optional named argument. Earlier versions would expect it without a flag.
fix
For versions >=0.0.6, always use `--entry` to specify the entry path (e.g., `minee --entry=...`). If using an older version, provide the entry path directly after the command without the flag.
affects: <0.0.6
gotchaOlder versions (pre-0.0.8) had a bug where the `--dest` path could be incorrectly handled, leading to bundled files not being written to the expected location or having incorrect names.
fix
Update to `minee` version 0.0.8 or newer to resolve issues with the `--dest` path. Always verify the output file location and name after bundling.
affects: <0.0.8
Errors
Common errors & fixes
error: git-credential-gcloud.sh: exit status 128
Improper or missing authentication with Earth Engine Git repositories. The `~/.gitcookies` file may be missing, corrupted, or contain incorrect credentials.
fix
Re-authenticate by visiting https://earthengine.googlesource.com/new-password and following the instructions to set up your `.gitcookies` file correctly.
Error: Cannot read properties of undefined (reading 'dest')
This error or similar `TypeError` related to `dest` might occur in versions prior to 0.0.8 due to a bug in default destination path handling.
fix
Ensure `minee` is updated to version 0.0.8 or newer. Explicitly specify the `--dest` option, or ensure your `.minee.json` file has a valid `dest` property.
Bundled module appears empty or is missing submodules.
A module caching bug in versions prior to 0.0.7 could lead to incomplete bundles, where submodules were not correctly included.
fix
Update `minee` to version 0.0.7 or newer to fix the module caching issue. Clear any local caches if the problem persists (though `minee` handles its own caching internally for repositories).
Upgrade
Version history
0.0.9latest on npm
Audit
Dependencies
json5requiredUsed for parsing JSON with comments, specifically for configuration files, updated in v0.0.7 to 1.0.2 for security/fixes.
@babel/parserrequiredUsed for parsing JavaScript code during the bundling process, added in v0.0.6 to replace @babel/core.
Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources
minee — npm install minee · libregistry