CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sveltejs--adapter-auto

SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This evaluation criteria assesses the engineer's ability to properly use @sveltejs/adapter-auto in a SvelteKit project. It focuses on correct package import, adapter instantiation, and understanding of how the adapter integrates with SvelteKit's configuration system.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports adapter-auto",
      "description": "The generated svelte.config.js correctly imports @sveltejs/adapter-auto using the appropriate import statement (e.g., `import adapter from '@sveltejs/adapter-auto'`)",
      "max_score": 25
    },
    {
      "name": "Instantiates adapter",
      "description": "The adapter is properly instantiated by calling it as a function (e.g., `adapter()`) rather than passing the module directly",
      "max_score": 25
    },
    {
      "name": "Configures SvelteKit",
      "description": "The svelte.config.js exports a configuration object with the adapter correctly assigned to the `kit.adapter` property",
      "max_score": 20
    },
    {
      "name": "Package dependency",
      "description": "The generated package.json includes @sveltejs/adapter-auto as a dependency (either in dependencies or devDependencies)",
      "max_score": 15
    },
    {
      "name": "Handles adapter types",
      "description": "The solution correctly differentiates between adapter types and uses the appropriate package (@sveltejs/adapter-auto for auto mode, @sveltejs/adapter-static for static mode)",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sveltejs--adapter-auto

tile.json