CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-grunt-env

tessl install tessl/npm-grunt-env@1.0.0

Grunt plugin for specifying environment variable configurations in task chains

Agent Success

Agent success rate when using this tile

81%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.99x

Baseline

Agent success rate without this tile

82%

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates whether grunt-env is configured to merge global and target-level options into environment variables for the dev and prod tasks. Focuses on loading the env multi-task, applying shared options after target data, honoring override precedence, and keeping non-environment flags out of process.env.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Load plugin",
      "description": "Uses `grunt.loadNpmTasks('grunt-env')` (or equivalent) to register the `env` multi-task before running targets.",
      "max_score": 15
    },
    {
      "name": "Shared options applied",
      "description": "Defines shared environment variables under `env.options` (such as `COMMON_TOKEN` and default `APP_MODE`) so grunt-env's `this.options()` merges them after target data and they appear in process.env when `env:dev` runs.",
      "max_score": 25
    },
    {
      "name": "Target options override",
      "description": "Adds a target-level `env.prod.options` block that overrides a shared value like `APP_MODE` while inheriting other shared options, relying on grunt-env's merged options precedence.",
      "max_score": 20
    },
    {
      "name": "Target data preserved",
      "description": "Configures per-target data (e.g., `API_URL` for dev, `LOG_LEVEL` for prod) so grunt-env applies those values before merged options and leaves them intact alongside shared variables.",
      "max_score": 20
    },
    {
      "name": "Control flags stripped",
      "description": "Sets an `options.envdir` (or similar control flag) on a target and confirms grunt-env strips it from merged environment values so no control flag name appears in process.env.",
      "max_score": 20
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/grunt-env@1.0.x
tile.json