tessl install tessl/npm-grunt-env@1.0.0Grunt 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%
{
"context": "Evaluates how the solution uses grunt-env to merge environment variables with conditional add/replace directives and file-sourced values for the defaults and production targets. Confirms the implementation relies on the plugin's directives instead of manual process.env mutation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Env targets",
"description": "Uses grunt-env's `env` multi-task with `defaults` and `production` targets rather than manual env mutation.",
"max_score": 20
},
{
"name": "Add defaults",
"description": "Configures `options.add` to supply API_BASE and other defaults so existing `process.env` values remain untouched when present.",
"max_score": 25
},
{
"name": "Replace existing",
"description": "Configures `options.replace` to update `NODE_ENV` (and similar keys) only when they already exist, avoiding creation of missing keys.",
"max_score": 25
},
{
"name": "File merge",
"description": "Uses grunt-env `src` loading of `config/env.json` so file-provided values become part of process.env before directives run, keeping PORT from the file intact while applying directives to overlapping keys.",
"max_score": 20
},
{
"name": "Grunt execution",
"description": "Runs targets through grunt (e.g., `grunt.task.run('env:defaults')` / `env:production`) so grunt-env performs the merges instead of manually assigning process.env.",
"max_score": 10
}
]
}