A comprehensive web component compiler that transforms TypeScript and JSX code into standards-compliant web components with complete development toolchain.
75
Create a Stencil configuration that enables HTTPS for the development server with support for custom SSL certificates. The configuration should allow developers to provide their own certificate files or automatically use self-signed certificates.
Create a stencil.config.ts configuration file that:
CERT_PATH environment variable (when set)KEY_PATH environment variable (when set)www output directoryCreate a stencil.config.test.ts test file that validates:
Input: Configuration with HTTPS enabled
Expected Output: The devServer configuration should have https property set to true or to an object with certificate configuration
Input: Environment variables CERT_PATH=/path/to/cert.pem and KEY_PATH=/path/to/key.pem
Expected Output: The devServer configuration should include these paths in its HTTPS configuration
Input: No certificate environment variables set
Expected Output: The configuration should still be valid and enable HTTPS (for self-signed certificate generation)
Provides the web component compiler and development toolchain including the development server with HTTPS support.
Install with Tessl CLI
npx tessl i tessl/npm-stencil--coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10