Minee: Earth Engine Module Bundler

0.0.9 · active · verified Wed Apr 22

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.

Common errors

Warnings

Install

Imports

Quickstart

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

view raw JSON →