A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.
82
{
"context": "This evaluation assesses how well the engineer uses Snowpack's build system API to create a build watcher tool with watch mode and graceful shutdown capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Build function usage",
"description": "Uses the `build()` function from Snowpack to execute the production build, passing appropriate command options",
"max_score": 20
},
{
"name": "Configuration creation",
"description": "Uses `loadConfiguration()` or `createConfiguration()` to set up build configuration with the required options (buildOptions.out, buildOptions.clean, buildOptions.watch, buildOptions.sourcemap, buildOptions.baseUrl)",
"max_score": 25
},
{
"name": "Build result handling",
"description": "Correctly captures and uses the `SnowpackBuildResult` returned by the `build()` function to access watch mode capabilities",
"max_score": 10
},
{
"name": "Watch mode callback",
"description": "Implements the `onFileChange()` callback from the build result to handle file change events and log the changed file path",
"max_score": 20
},
{
"name": "Graceful shutdown",
"description": "Uses the `shutdown()` method from the build result to cleanly terminate the build process when handling SIGINT signal",
"max_score": 20
},
{
"name": "Signal handling",
"description": "Properly sets up SIGINT signal handler using `process.on('SIGINT', ...)` to enable graceful shutdown",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-snowpackevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10