SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter
Overall
score
96%
{
"context": "This evaluation assesses how well the engineer uses @sveltejs/adapter-auto's build configuration concepts to create a custom SvelteKit adapter. The focus is on proper usage of the Adapter interface, the builder object methods, and feature support mechanisms that are core to SvelteKit's build system integration.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Adapter export",
"description": "The adapter is exported as a default function from adapter.js that returns an Adapter object",
"max_score": 10
},
{
"name": "Name property",
"description": "The adapter object includes a 'name' property with a string value identifying the adapter",
"max_score": 10
},
{
"name": "Adapt method signature",
"description": "The adapter object includes an 'adapt' method that is async (returns a Promise) and accepts a builder parameter",
"max_score": 15
},
{
"name": "Environment detection",
"description": "The adapt method checks for process.env.SIMPLE_HOST to detect the target environment",
"max_score": 15
},
{
"name": "Builder logging",
"description": "Uses builder.log (or builder.log.minor/builder.log.info) to log messages during the build process",
"max_score": 10
},
{
"name": "Generate fallback",
"description": "Calls builder.generateFallback() or builder.generateEntriesManifest() with the appropriate destination path to create a fallback page",
"max_score": 10
},
{
"name": "Write server files",
"description": "Calls builder.writeServer() or builder.writePrerendered() with a destination path to output server-side code",
"max_score": 10
},
{
"name": "Write static files",
"description": "Calls builder.writeClient() or builder.writeStatic() with a destination path to copy static assets",
"max_score": 10
},
{
"name": "Supports property",
"description": "The adapter object includes a 'supports' property that is an object containing feature support checks",
"max_score": 10
},
{
"name": "Feature error handling",
"description": "The supports.customFeature (or similar) property throws an Error with an appropriate message when accessed",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-sveltejs--adapter-autodocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10