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-3/

{
  "context": "This criteria evaluates how effectively the engineer uses Snowpack's Development Server API to implement a static asset server with file serving, watching, and server lifecycle management capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "startServer usage",
      "description": "Uses Snowpack's `startServer()` function correctly with appropriate commandOptions (port, hostname, config) and options parameters to initialize the development server.",
      "max_score": 30
    },
    {
      "name": "Server configuration",
      "description": "Properly configures the server with mount points and other development options through the config parameter, following Snowpack's configuration structure for directory mappings.",
      "max_score": 15
    },
    {
      "name": "Server instance methods",
      "description": "Utilizes the returned server instance's methods for handling HTTP requests, loading files, and generating URLs (e.g., methods for request handling, file loading).",
      "max_score": 20
    },
    {
      "name": "File watching integration",
      "description": "Leverages Snowpack's built-in file watching capabilities to detect changes in mounted directories and trigger appropriate rebuilds or reloads.",
      "max_score": 15
    },
    {
      "name": "Content type handling",
      "description": "Properly serves files with correct content types (text/html for HTML, appropriate MIME type for JavaScript modules) using Snowpack's file serving capabilities.",
      "max_score": 10
    },
    {
      "name": "Server lifecycle management",
      "description": "Implements proper server shutdown by calling appropriate cleanup methods on the server instance to gracefully stop the server and release resources.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snowpack

tile.json