CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-snowpack

A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.

82

1.22x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates the engineer's ability to use Snowpack's build API to execute production builds and capture performance metrics. The focus is on correct usage of Snowpack's build function and extracting relevant timing and file information.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import build function",
      "description": "Imports the build function from the snowpack module (e.g., const { build } = require('snowpack') or import { build } from 'snowpack')",
      "max_score": 15
    },
    {
      "name": "Call build function",
      "description": "Correctly invokes the build() function with appropriate configuration options passed as parameters",
      "max_score": 25
    },
    {
      "name": "Handle async build",
      "description": "Properly handles the asynchronous nature of the build operation using async/await or promises",
      "max_score": 15
    },
    {
      "name": "Capture timing metrics",
      "description": "Records timestamps before and after the build operation to calculate total build duration",
      "max_score": 20
    },
    {
      "name": "Extract file information",
      "description": "Accesses and processes the build result to identify files that were processed during the build",
      "max_score": 15
    },
    {
      "name": "Return metrics object",
      "description": "Returns a properly structured metrics object containing totalTime, fileCount, and files array as specified in the API",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snowpack

tile.json