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

{
  "context": "This evaluation assesses the engineer's understanding of Snowpack's routing configuration, specifically the ability to configure route patterns, proxying, URL rewriting, and fallback routing using the routes configuration option.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "API Proxy Configuration",
      "description": "Correctly configures a route with src matching '/api/*' pattern and dest pointing to 'https://jsonplaceholder.typicode.com' with appropriate path rewriting using Snowpack's proxy destination syntax",
      "max_score": 30
    },
    {
      "name": "SPA Fallback Route",
      "description": "Implements a catch-all route pattern using 'match: all' or similar catch-all src pattern that redirects to '/index.html' for client-side routing, placed after specific routes to avoid conflicts",
      "max_score": 25
    },
    {
      "name": "Static Asset Rewriting",
      "description": "Configures a route with src pattern matching '/assets/*' and dest rewriting to '/public/*' using Snowpack's path placeholder syntax (e.g., $1 or similar)",
      "max_score": 25
    },
    {
      "name": "Custom 404 Handler",
      "description": "Creates a route for '/docs/*' pattern that redirects missing pages to '/docs/index.html', demonstrating understanding of route precedence and fallback mechanisms",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snowpack

tile.json