@magidoc/plugin-starter-variables
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -8,2 +8,3 @@ export declare type Page = { | ||
APP_TITLE: import("./variable").Variable<string>; | ||
APP_FAVICON: import("./variable").Variable<string>; | ||
SITE_ROOT: import("./variable").Variable<string>; | ||
@@ -10,0 +11,0 @@ SITE_META: import("./variable").Variable<Record<string, string | undefined>>; |
@@ -9,2 +9,3 @@ import { stringConverter } from './converters/string.js'; | ||
APP_TITLE: createVariable('APP_TITLE', stringConverter()), | ||
APP_FAVICON: createVariable('APP_FAVICON', stringConverter()), | ||
SITE_ROOT: createVariable('SITE_ROOT', stringConverter()), | ||
@@ -11,0 +12,0 @@ SITE_META: createVariable('SITE_META', recordConverter((zod) => zod.string())), |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -13,2 +13,3 @@ import type { ZodType } from 'zod' | ||
APP_TITLE: createVariable<string>('APP_TITLE', stringConverter()), | ||
APP_FAVICON: createVariable<string>('APP_FAVICON', stringConverter()), | ||
SITE_ROOT: createVariable<string>('SITE_ROOT', stringConverter()), | ||
@@ -15,0 +16,0 @@ SITE_META: createVariable<Record<string, string | undefined>>( |
@@ -17,2 +17,3 @@ import type { ZodType } from 'zod' | ||
'APP_TITLE', | ||
'APP_FAVICON', | ||
'SITE_ROOT', | ||
@@ -41,2 +42,10 @@ 'SITE_META', | ||
test('app favicon', () => { | ||
testStringVariable( | ||
variables.templates.APP_FAVICON, | ||
'VITE_APP_FAVICON', | ||
z.string().optional(), | ||
) | ||
}) | ||
test('site root', () => { | ||
@@ -43,0 +52,0 @@ testStringVariable( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29882
698