CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-nodeenv

Node.js virtual environment builder for creating isolated Node.js environments

80

1.25x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how effectively the engineer uses the nodeenv package to create and manage isolated Node.js virtual environments. The focus is on proper usage of nodeenv's programmatic API for environment creation and configuration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import nodeenv",
      "description": "Correctly imports the nodeenv module or specific functions from nodeenv (e.g., 'import nodeenv' or 'from nodeenv import create_environment')",
      "max_score": 10
    },
    {
      "name": "Use create_environment",
      "description": "Uses nodeenv.create_environment() function to create the Node.js virtual environment",
      "max_score": 25
    },
    {
      "name": "Configure arguments object",
      "description": "Creates and properly configures an arguments object (typically argparse.Namespace) as required by nodeenv.create_environment(), including at minimum the 'node' attribute for version specification",
      "max_score": 20
    },
    {
      "name": "Set node version",
      "description": "Sets the 'node' attribute in the arguments object to the specified node_version parameter value (e.g., 'latest', '16.20.0'), correctly mapping the function parameter to nodeenv's expected configuration",
      "max_score": 15
    },
    {
      "name": "Configure npm installation",
      "description": "Sets the 'with_npm' attribute in the arguments object based on the function parameter to control whether npm is installed in the environment",
      "max_score": 10
    },
    {
      "name": "Verify directory structure",
      "description": "Checks for the existence of the environment directory and the bin (Unix/Linux/macOS) or Scripts (Windows) subdirectory, and verifies the node executable exists within it",
      "max_score": 10
    },
    {
      "name": "Return values",
      "description": "Returns appropriate values from functions (absolute path from create_node_env, validation dictionary from verify_environment) as specified in the API",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-nodeenv

tile.json