@wtf/project-docs 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/api/.generated +134 -12
- package/api/@wtf/project-astro/README.md +53 -14
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +2 -2
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/README.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/README.md +20 -10
- package/api/@wtf/project-astro/preview/functions/files.md +5 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +4 -2
- package/api/@wtf/project-astro/preview/functions/notFound.md +3 -2
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +4 -3
- package/api/@wtf/project-astro/preview/functions/previewOf.md +25 -0
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +15 -3
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +16 -4
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +19 -0
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +36 -0
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/schema/README.md +23 -0
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +13 -0
- package/api/@wtf/project-config/README.md +94 -0
- package/api/@wtf/project-config/define/README.md +23 -0
- package/api/@wtf/project-config/define/functions/defineConfig.md +29 -0
- package/api/@wtf/project-config/env/README.md +33 -0
- package/api/@wtf/project-config/env/functions/envNameOf.md +22 -0
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +22 -0
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +23 -0
- package/api/@wtf/project-config/env/functions/variablesOf.md +23 -0
- package/api/@wtf/project-config/env/functions/withEnvironment.md +34 -0
- package/api/@wtf/project-config/env/type-aliases/Environment.md +11 -0
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +32 -0
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +31 -0
- package/api/@wtf/project-config/errors/README.md +31 -0
- package/api/@wtf/project-config/errors/classes/ConfigError.md +200 -0
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +175 -0
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +177 -0
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +174 -0
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +176 -0
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +179 -0
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +185 -0
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +178 -0
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +174 -0
- package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +177 -0
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +174 -0
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +175 -0
- package/api/@wtf/project-config/index/README.md +35 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +36 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +44 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +31 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +52 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +12 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +14 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +19 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +35 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +33 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +116 -0
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +22 -0
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +15 -0
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +45 -0
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +29 -0
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +109 -0
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +23 -0
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +19 -0
- package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +55 -0
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +24 -0
- package/api/@wtf/project-config/load/README.md +33 -0
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +22 -0
- package/api/@wtf/project-config/load/functions/importFileModule.md +24 -0
- package/api/@wtf/project-config/load/functions/loadConfig.md +30 -0
- package/api/@wtf/project-config/load/functions/loadConfigSync.md +25 -0
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +19 -0
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +17 -0
- package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +11 -0
- package/api/@wtf/project-config/locate/README.md +40 -0
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +23 -0
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +24 -0
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +22 -0
- package/api/@wtf/project-config/locate/functions/locateConfig.md +27 -0
- package/api/@wtf/project-config/locate/functions/locateConfigSync.md +23 -0
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +25 -0
- package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +23 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +18 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +17 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +17 -0
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +18 -0
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +11 -0
- package/api/@wtf/project-config/node/README.md +27 -0
- package/api/@wtf/project-config/node/functions/loadConfig.md +24 -0
- package/api/@wtf/project-config/node/functions/loadConfigSync.md +24 -0
- package/api/@wtf/project-config/node/functions/nodeConfigPlatform.md +16 -0
- package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +16 -0
- package/api/@wtf/project-config/path/README.md +13 -0
- package/api/@wtf/project-config/path/functions/configPathOf.md +23 -0
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +21 -0
- package/api/@wtf/project-config/path/functions/valueAt.md +23 -0
- package/api/@wtf/project-config/placeholder/README.md +24 -0
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +31 -0
- package/api/@wtf/project-config/placeholder/functions/expandString.md +31 -0
- package/api/@wtf/project-config/schema/README.md +29 -0
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +31 -0
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +23 -0
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +31 -0
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +11 -0
- package/api/@wtf/project-config/section/README.md +34 -0
- package/api/@wtf/project-config/section/functions/issuesOf.md +30 -0
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +34 -0
- package/api/@wtf/project-config/section/functions/mergeSection.md +28 -0
- package/api/@wtf/project-config/section/functions/sectionOf.md +43 -0
- package/api/@wtf/project-config/section/functions/sectionOfSync.md +35 -0
- package/api/@wtf/project-config/section/type-aliases/Checked.md +38 -0
- package/api/@wtf/project-config/write/README.md +30 -0
- package/api/@wtf/project-config/write/functions/setConfigValue.md +39 -0
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +31 -0
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +18 -0
- package/api/@wtf/project-oxfmt/README.md +32 -8
- package/api/@wtf/project-oxfmt/config/README.md +23 -0
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +30 -0
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +11 -0
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +21 -0
- package/api/@wtf/project-oxfmt/config/variables/default.md +11 -0
- package/api/@wtf/project-oxfmt/schema/README.md +25 -0
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +13 -0
- package/api/@wtf/project-oxlint/README.md +35 -8
- package/api/@wtf/project-oxlint/config/README.md +23 -0
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +30 -0
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +13 -0
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +32 -0
- package/api/@wtf/project-oxlint/config/variables/default.md +11 -0
- package/api/@wtf/project-oxlint/schema/README.md +27 -0
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +12 -0
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-typedoc/README.md +31 -4
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +3 -3
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +6 -6
- package/api/@wtf/project-typedoc/config/variables/nodeRun.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/Run.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/README.md +28 -0
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +13 -0
- package/api/@wtf/project-vite/README.md +17 -33
- package/api/@wtf/project-vite/config/README.md +46 -0
- package/api/@wtf/project-vite/{functions → config/functions}/baseConfig.md +5 -5
- package/api/@wtf/project-vite/{functions → config/functions}/buildsSite.md +2 -2
- package/api/@wtf/project-vite/{functions → config/functions}/compress.md +2 -2
- package/api/@wtf/project-vite/{functions → config/functions}/conditionsOf.md +2 -2
- package/api/@wtf/project-vite/{type-aliases → config/type-aliases}/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/{type-aliases → config/type-aliases}/CompressOptions.md +5 -5
- package/api/@wtf/project-vite/{variables → config/variables}/CLIENT_CONDITIONS.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/COMPRESSIBLE.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/FROM_DIST.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/THRESHOLD.md +2 -2
- package/api/@wtf/project-vite/schema/README.md +21 -0
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +12 -0
- package/api/@wtf/project-vitest/README.md +26 -0
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +3 -3
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +7 -7
- package/api/@wtf/project-vitest/config/variables/FROM_DIST.md +1 -1
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/README.md +22 -0
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +13 -0
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/README.md +44 -0
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/ClearTimeout.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Env.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Performance.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SetTimeout.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodePlatform.md +1 -1
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeExec.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/README.md +39 -0
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +27 -0
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +19 -0
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +13 -0
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/api/README.md +1 -0
- package/api/trains.json +3 -0
- package/guides/astro.md +37 -20
- package/guides/config.md +153 -0
- package/guides/presets.md +16 -0
- package/package.json +10 -9
- package/api/@wtf/project-oxfmt/variables/default.md +0 -19
- package/api/@wtf/project-oxlint/variables/default.md +0 -30
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type RevisionSources = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/config.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/config.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L62)
|
|
10
10
|
|
|
11
11
|
Where [gitRevisionOf](../functions/gitRevisionOf.md) reads the revision from.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Where [gitRevisionOf](../functions/gitRevisionOf.md) reads the revision from.
|
|
|
18
18
|
readonly argv: readonly string[];
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-typedoc/src/config.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-typedoc/src/config.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L64)
|
|
22
22
|
|
|
23
23
|
The arguments of the process, which may hold `--gitRevision <ref>`.
|
|
24
24
|
|
|
@@ -30,6 +30,6 @@ The arguments of the process, which may hold `--gitRevision <ref>`.
|
|
|
30
30
|
readonly run: Run;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-typedoc/src/config.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-typedoc/src/config.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L66)
|
|
34
34
|
|
|
35
35
|
What runs git, which names the revision of HEAD.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type TypedocConfig = TypeDocOptions & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/config.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/config.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L32)
|
|
10
10
|
|
|
11
11
|
A config of TypeDoc: its own options, and those its plugins declare, as
|
|
12
12
|
typedoc-plugin-markdown's and typedoc-plugin-llms-txt's, which TypeDoc's type does not know.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type TypedocOptions = TypedocConfig & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/config.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/config.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L35)
|
|
10
10
|
|
|
11
11
|
What a docs package gives [typedocConfig](../functions/typedocConfig.md), and any option of TypeDoc over the preset's.
|
|
12
12
|
|
|
@@ -14,8 +14,8 @@ What a docs package gives [typedocConfig](../functions/typedocConfig.md), and an
|
|
|
14
14
|
|
|
15
15
|
| Name | Type | Description | Defined in |
|
|
16
16
|
| ------ | ------ | ------ | ------ |
|
|
17
|
-
| `categories?` | readonly `string`[] | The folders of hand-written docs in the docs package, `['guides']` by default: a link of a README into one is rewritten to it from `api/`, and none of its files is copied into `api/`. | [packages/project-typedoc/src/config.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
18
|
-
| `docs` | `string` \| `URL` | The docs package: the URL of its typedoc.config.mjs, `import.meta.url`, or its folder. The repo's root is the folder two up from it, as the docs package is `packages/docs`. | [packages/project-typedoc/src/config.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
19
|
-
| `entryPoints` | `string`[] | The packages to document, each by its folder from the docs package: `['../core', '../cli']`. | [packages/project-typedoc/src/config.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
20
|
-
| `plugins?` | readonly ([`TypedocPlugin`](../../plugins/type-aliases/TypedocPlugin.md) \| `string`)[] | Plugins of TypeDoc of the caller's own, each a function of the application, as [TypedocPlugin](../../plugins/type-aliases/TypedocPlugin.md), or a module by its name: run after the preset's own plugins, and before typedoc-plugin-llms-txt and typedoc-plugin-markdown. None by default. | [packages/project-typedoc/src/config.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
-
| `repository` | `string` | The repository on GitLab, as its web page is, `https://gitlab.com/wetryfun/project/project`: each source links to its file there, at the revision of [gitRevisionOf](../functions/gitRevisionOf.md). | [packages/project-typedoc/src/config.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
17
|
+
| `categories?` | readonly `string`[] | The folders of hand-written docs in the docs package, `['guides']` by default: a link of a README into one is rewritten to it from `api/`, and none of its files is copied into `api/`. | [packages/project-typedoc/src/config.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L52) |
|
|
18
|
+
| `docs` | `string` \| `URL` | The docs package: the URL of its typedoc.config.mjs, `import.meta.url`, or its folder. The repo's root is the folder two up from it, as the docs package is `packages/docs`. | [packages/project-typedoc/src/config.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L40) |
|
|
19
|
+
| `entryPoints` | `string`[] | The packages to document, each by its folder from the docs package: `['../core', '../cli']`. | [packages/project-typedoc/src/config.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L47) |
|
|
20
|
+
| `plugins?` | readonly ([`TypedocPlugin`](../../plugins/type-aliases/TypedocPlugin.md) \| `string`)[] | Plugins of TypeDoc of the caller's own, each a function of the application, as [TypedocPlugin](../../plugins/type-aliases/TypedocPlugin.md), or a module by its name: run after the preset's own plugins, and before typedoc-plugin-llms-txt and typedoc-plugin-markdown. None by default. | [packages/project-typedoc/src/config.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L58) |
|
|
21
|
+
| `repository` | `string` | The repository on GitLab, as its web page is, `https://gitlab.com/wetryfun/project/project`: each source links to its file there, at the revision of [gitRevisionOf](../functions/gitRevisionOf.md). | [packages/project-typedoc/src/config.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L45) |
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const nodeRun: Run;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/config.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/config.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/config.ts#L77)
|
|
10
10
|
|
|
11
11
|
Runs a command by Node, to its end: what it wrote on stdout, or `undefined` where it failed.
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function cleanGeneratedMarkdown(__namedParameters): TypedocPlugin;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:45](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L45)
|
|
10
10
|
|
|
11
11
|
Each page of the reference, as typedoc-plugin-markdown writes it, cleaned: a link into a folder
|
|
12
12
|
of the hand-written docs made a link from the page, as a package's README writes one from the
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function linkTrackedSources(__namedParameters): TypedocPlugin;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:111](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:111](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L111)
|
|
10
10
|
|
|
11
11
|
A "Defined in:" linked to its source only where git tracks its file, as TypeDoc links one with
|
|
12
12
|
git on. TypeDoc finds a repository only by a `.git` folder, and in a git worktree `.git` is a
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function preventMediaFiles(__namedParameters): TypedocPlugin;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L72)
|
|
10
10
|
|
|
11
11
|
No file copied into `api/_media/`: TypeDoc copies each file a page links to, which is not a
|
|
12
12
|
reflection of its own, and the guides, the READMEs and the sources of the repo ship where they
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type CleanGeneratedMarkdownOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L31)
|
|
10
10
|
|
|
11
11
|
The options of [cleanGeneratedMarkdown](../functions/cleanGeneratedMarkdown.md).
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ The options of [cleanGeneratedMarkdown](../functions/cleanGeneratedMarkdown.md).
|
|
|
18
18
|
readonly optional categories?: readonly string[];
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L35)
|
|
22
22
|
|
|
23
23
|
The folders of hand-written docs a link is rewritten into: `['guides']` by default.
|
|
24
24
|
|
|
@@ -30,6 +30,6 @@ The folders of hand-written docs a link is rewritten into: `['guides']` by defau
|
|
|
30
30
|
readonly docs: string;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L33)
|
|
34
34
|
|
|
35
35
|
The docs package's folder, which holds `api/` and each of `categories`.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type LinkTrackedSourcesOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:89](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L89)
|
|
10
10
|
|
|
11
11
|
The options of [linkTrackedSources](../functions/linkTrackedSources.md).
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ The options of [linkTrackedSources](../functions/linkTrackedSources.md).
|
|
|
18
18
|
readonly root: string;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:91](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L91)
|
|
22
22
|
|
|
23
23
|
The repo's root, which each source's file name is a path from: the config's `displayBasePath`.
|
|
24
24
|
|
|
@@ -30,6 +30,6 @@ The repo's root, which each source's file name is a path from: the config's `dis
|
|
|
30
30
|
readonly run: Run;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:93](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:93](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L93)
|
|
34
34
|
|
|
35
35
|
What runs git, which lists the files it tracks: `nodeRun` of ./config.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type PreventMediaFilesOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L58)
|
|
10
10
|
|
|
11
11
|
The options of [preventMediaFiles](../functions/preventMediaFiles.md).
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ The options of [preventMediaFiles](../functions/preventMediaFiles.md).
|
|
|
18
18
|
readonly optional exclude?: readonly string[];
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:62](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L62)
|
|
22
22
|
|
|
23
23
|
The folders in it that are never copied, as `guides`, which ship as they are.
|
|
24
24
|
|
|
@@ -30,6 +30,6 @@ The folders in it that are never copied, as `guides`, which ship as they are.
|
|
|
30
30
|
readonly root: string;
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L60)
|
|
34
34
|
|
|
35
35
|
The docs package's folder: a file outside it is never copied.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type Run = (command, args, options) => string | undefined;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L24)
|
|
10
10
|
|
|
11
11
|
Runs a command to its end, in the folder `cwd`: what it wrote on stdout, or `undefined` where it
|
|
12
12
|
failed. In Node, `nodeRun` of ./config.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type TypedocPlugin = (app) => void;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-typedoc/src/plugins.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-typedoc/src/plugins.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/plugins.ts#L18)
|
|
10
10
|
|
|
11
11
|
A plugin of TypeDoc, as its `plugin` option takes one: called with the application, once.
|
|
12
12
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-typedoc](../README.md) / schema
|
|
2
|
+
|
|
3
|
+
# schema
|
|
4
|
+
|
|
5
|
+
The schema of the options of `typedocConfig()` of ./config: [typedocSchema](variables/typedocSchema.md), a Standard
|
|
6
|
+
Schema that checks them and gives their JSON Schema, so a repo can keep them in its
|
|
7
|
+
configuration, as the `typedoc` section of `wtf.config.json`, check them, and spread them into
|
|
8
|
+
`typedocConfig()`. TypeDoc imports a typedoc.config.mjs and awaits what it exports, so the config
|
|
9
|
+
can await the load, of a code config too.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
13
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
14
|
+
import { typedocConfig } from '@wtf/project-typedoc/config'
|
|
15
|
+
import { typedocSchema } from '@wtf/project-typedoc/schema'
|
|
16
|
+
|
|
17
|
+
const config = await loadConfig()
|
|
18
|
+
export default typedocConfig({
|
|
19
|
+
docs: import.meta.url,
|
|
20
|
+
repository: 'https://gitlab.com/group/project',
|
|
21
|
+
entryPoints: ['../core'],
|
|
22
|
+
...(await sectionOf(config, 'typedoc', typedocSchema))
|
|
23
|
+
})
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Variables
|
|
27
|
+
|
|
28
|
+
- [typedocSchema](variables/typedocSchema.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-typedoc](../../README.md) / [schema](../README.md) / typedocSchema
|
|
2
|
+
|
|
3
|
+
# Variable: typedocSchema
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const typedocSchema: StandardSchemaV1<Partial<TypedocOptions>> & StandardJSONSchemaV1<Partial<TypedocOptions>>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-typedoc/src/schema.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-typedoc/src/schema.ts#L58)
|
|
10
|
+
|
|
11
|
+
The schema of the options of `typedocConfig()` of ./config, each optional, as a section gives
|
|
12
|
+
some of them and the docs package the rest: `docs`, `repository`, `entryPoints`, `categories`,
|
|
13
|
+
`plugins`, and any option of TypeDoc over the preset's.
|
|
@@ -9,6 +9,7 @@ which starts from it by itself.
|
|
|
9
9
|
| Subpath | What you get |
|
|
10
10
|
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
11
|
| `./config` | `baseConfig`, the base config; `compress`, the plugin that writes brotli and gzip copies in a site's build; `conditionsOf`, `buildsSite`, `CLIENT_CONDITIONS`, `COMPRESSIBLE`, `THRESHOLD`, `FROM_DIST` |
|
|
12
|
+
| `./schema` | `viteSchema`: the Standard Schema of the options of `baseConfig()`, which gives their JSON Schema |
|
|
12
13
|
|
|
13
14
|
```ts
|
|
14
15
|
// vite.config.ts
|
|
@@ -35,45 +36,28 @@ the one library for the copies. The config imports only Vite's types. A repo nam
|
|
|
35
36
|
a manifest whose own code imports it, with the same range, and never names `rolldown`. The
|
|
36
37
|
[Vite guide](../../../guides/vite.md#which-vite-and-which-vitest) has the rest.
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
`mergeConfig`, an app's vite.config, a Storybook's `viteFinal`, and each config of
|
|
40
|
-
`@wtf/project-vitest`, so a dev server, a test and a build resolve as one.
|
|
39
|
+
## From the wtf configuration
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
condition, the TypeScript of the workspace, with no build first; or, with `TEST_FROM=dist`, as
|
|
46
|
-
a consumer resolves them, by their build ([conditionsOf](functions/conditionsOf.md)).
|
|
47
|
-
- **The site**, of `vite build` alone: a brotli and a gzip copy beside each file of text the
|
|
48
|
-
build writes, `<file>.br` and `<file>.gz`, by vite-plugin-compression2, which a static host,
|
|
49
|
-
as GitLab Pages, serves in its place to a browser that takes it ([compress](functions/compress.md)). Never of
|
|
50
|
-
a dev server or a test, which serve, nor of a library's build (`build.lib`) or a server's
|
|
51
|
-
(`build.ssr`), whose files a package publishes or a server runs, and no browser fetches.
|
|
41
|
+
The config reads no file of its own. Keep its options in the `vite` section of the repo's `wtf`
|
|
42
|
+
configuration, load it with [`@wtf/project-config`](../project-config/README.md), and spread the
|
|
43
|
+
section in, checked by `viteSchema`; what you write in code after it wins:
|
|
52
44
|
|
|
53
45
|
```ts
|
|
54
|
-
// vite.config.ts
|
|
55
|
-
import {
|
|
56
|
-
|
|
46
|
+
// vite.config.ts
|
|
47
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
48
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
57
49
|
import { baseConfig } from '@wtf/project-vite/config'
|
|
50
|
+
import { viteSchema } from '@wtf/project-vite/schema'
|
|
58
51
|
|
|
59
|
-
|
|
52
|
+
const config = await loadConfig()
|
|
53
|
+
export default baseConfig({ ...(await sectionOf(config, 'vite', viteSchema)) })
|
|
60
54
|
```
|
|
61
55
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- [CompressOptions](type-aliases/CompressOptions.md)
|
|
66
|
-
|
|
67
|
-
## Variables
|
|
68
|
-
|
|
69
|
-
- [CLIENT\_CONDITIONS](variables/CLIENT_CONDITIONS.md)
|
|
70
|
-
- [COMPRESSIBLE](variables/COMPRESSIBLE.md)
|
|
71
|
-
- [FROM\_DIST](variables/FROM_DIST.md)
|
|
72
|
-
- [THRESHOLD](variables/THRESHOLD.md)
|
|
56
|
+
```json
|
|
57
|
+
{ "vite": { "compress": { "threshold": 512, "encodings": ["br"] } } }
|
|
58
|
+
```
|
|
73
59
|
|
|
74
|
-
##
|
|
60
|
+
## Modules
|
|
75
61
|
|
|
76
|
-
- [
|
|
77
|
-
- [
|
|
78
|
-
- [compress](functions/compress.md)
|
|
79
|
-
- [conditionsOf](functions/conditionsOf.md)
|
|
62
|
+
- [config](config/README.md)
|
|
63
|
+
- [schema](schema/README.md)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-vite](../README.md) / config
|
|
2
|
+
|
|
3
|
+
# config
|
|
4
|
+
|
|
5
|
+
The base Vite config of a workspace: `baseConfig()`, which each Vite config starts from, by Vite's
|
|
6
|
+
`mergeConfig`, an app's vite.config, a Storybook's `viteFinal`, and each config of
|
|
7
|
+
`@wtf/project-vitest`, so a dev server, a test and a build resolve as one.
|
|
8
|
+
|
|
9
|
+
It holds two layers:
|
|
10
|
+
|
|
11
|
+
- **The base**, of every command: the workspace's packages resolved by their `@wtf/source`
|
|
12
|
+
condition, the TypeScript of the workspace, with no build first; or, with `TEST_FROM=dist`, as
|
|
13
|
+
a consumer resolves them, by their build ([conditionsOf](functions/conditionsOf.md)).
|
|
14
|
+
- **The site**, of `vite build` alone: a brotli and a gzip copy beside each file of text the
|
|
15
|
+
build writes, `<file>.br` and `<file>.gz`, by vite-plugin-compression2, which a static host,
|
|
16
|
+
as GitLab Pages, serves in its place to a browser that takes it ([compress](functions/compress.md)). Never of
|
|
17
|
+
a dev server or a test, which serve, nor of a library's build (`build.lib`) or a server's
|
|
18
|
+
(`build.ssr`), whose files a package publishes or a server runs, and no browser fetches.
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// vite.config.ts of an app
|
|
22
|
+
import { defineConfig, mergeConfig } from 'vite'
|
|
23
|
+
|
|
24
|
+
import { baseConfig } from '@wtf/project-vite/config'
|
|
25
|
+
|
|
26
|
+
export default defineConfig(mergeConfig(baseConfig(), { server: { port: 5173 } }))
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Type Aliases
|
|
30
|
+
|
|
31
|
+
- [BaseOptions](type-aliases/BaseOptions.md)
|
|
32
|
+
- [CompressOptions](type-aliases/CompressOptions.md)
|
|
33
|
+
|
|
34
|
+
## Variables
|
|
35
|
+
|
|
36
|
+
- [CLIENT\_CONDITIONS](variables/CLIENT_CONDITIONS.md)
|
|
37
|
+
- [COMPRESSIBLE](variables/COMPRESSIBLE.md)
|
|
38
|
+
- [FROM\_DIST](variables/FROM_DIST.md)
|
|
39
|
+
- [THRESHOLD](variables/THRESHOLD.md)
|
|
40
|
+
|
|
41
|
+
## Functions
|
|
42
|
+
|
|
43
|
+
- [baseConfig](functions/baseConfig.md)
|
|
44
|
+
- [buildsSite](functions/buildsSite.md)
|
|
45
|
+
- [compress](functions/compress.md)
|
|
46
|
+
- [conditionsOf](functions/conditionsOf.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / baseConfig
|
|
2
2
|
|
|
3
3
|
# Function: baseConfig()
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function baseConfig(__namedParameters?): object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:155](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:155](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L155)
|
|
10
10
|
|
|
11
11
|
The base config every Vite config of a workspace starts from, by
|
|
12
12
|
`mergeConfig(baseConfig(), yours)`: the workspace's packages by their `@wtf/source` condition, but from the build; and, of a site's
|
|
@@ -41,6 +41,6 @@ export default config
|
|
|
41
41
|
|
|
42
42
|
| Name | Type | Defined in |
|
|
43
43
|
| ------ | ------ | ------ |
|
|
44
|
-
| `plugins` | `Plugin`\<`any`\>[] | [packages/project-vite/src/config.ts:158](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
45
|
-
| `resolve` | `object` | [packages/project-vite/src/config.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
46
|
-
| `resolve.conditions` | `string`[] | [packages/project-vite/src/config.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
44
|
+
| `plugins` | `Plugin`\<`any`\>[] | [packages/project-vite/src/config.ts:158](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L158) |
|
|
45
|
+
| `resolve` | `object` | [packages/project-vite/src/config.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L157) |
|
|
46
|
+
| `resolve.conditions` | `string`[] | [packages/project-vite/src/config.ts:157](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L157) |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / buildsSite
|
|
2
2
|
|
|
3
3
|
# Function: buildsSite()
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function buildsSite(config, command): boolean;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:104](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:104](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L104)
|
|
10
10
|
|
|
11
11
|
Whether a run is a site's build: `vite build`, and of neither a library (`build.lib`) nor a
|
|
12
12
|
server (`build.ssr`).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / compress
|
|
2
2
|
|
|
3
3
|
# Function: compress()
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function compress(options?): Plugin;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:113](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L113)
|
|
10
10
|
|
|
11
11
|
The plugin that writes a brotli (at its quality 11) and a gzip (at its level 9) copy beside each
|
|
12
12
|
file of text a site's build writes, of `threshold` bytes or more, where the copy is smaller: by
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / conditionsOf
|
|
2
2
|
|
|
3
3
|
# Function: conditionsOf()
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function conditionsOf(defaults, fromDist?): string[];
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:95](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:95](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L95)
|
|
10
10
|
|
|
11
11
|
The conditions of a run, the `@wtf/source` condition first (`SOURCE_CONDITION` of
|
|
12
12
|
`@wtf/project-resolve/condition`), of a run from the source alone.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / BaseOptions
|
|
2
2
|
|
|
3
3
|
# Type Alias: BaseOptions
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type BaseOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:83](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:83](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L83)
|
|
10
10
|
|
|
11
11
|
What [baseConfig](../functions/baseConfig.md) takes.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ What [baseConfig](../functions/baseConfig.md) takes.
|
|
|
18
18
|
readonly optional compress?: CompressOptions | false;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-vite/src/config.ts:88](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-vite/src/config.ts:88](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L88)
|
|
22
22
|
|
|
23
23
|
How a site's `vite build` writes its compressed copies ([compress](../functions/compress.md)); `false`, to write
|
|
24
24
|
none, as of a site that no static host serves. Of every site by default.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / CompressOptions
|
|
2
2
|
|
|
3
3
|
# Type Alias: CompressOptions
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
type CompressOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:73](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L73)
|
|
10
10
|
|
|
11
11
|
How a site's build writes its copies, by [compress](../functions/compress.md).
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ How a site's build writes its copies, by [compress](../functions/compress.md).
|
|
|
18
18
|
readonly optional encodings?: readonly ("br" | "gz")[];
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-vite/src/config.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-vite/src/config.ts:79](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L79)
|
|
22
22
|
|
|
23
23
|
The copies it writes: `br` and `gz`, both, by default.
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ The copies it writes: `br` and `gz`, both, by default.
|
|
|
30
30
|
readonly optional extensions?: readonly string[];
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/project-vite/src/config.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
33
|
+
Defined in: [packages/project-vite/src/config.ts:77](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L77)
|
|
34
34
|
|
|
35
35
|
The extensions of the files it compresses: [COMPRESSIBLE](../variables/COMPRESSIBLE.md) by default.
|
|
36
36
|
|
|
@@ -42,6 +42,6 @@ The extensions of the files it compresses: [COMPRESSIBLE](../variables/COMPRESSI
|
|
|
42
42
|
readonly optional threshold?: number;
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/project-vite/src/config.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
45
|
+
Defined in: [packages/project-vite/src/config.ts:75](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L75)
|
|
46
46
|
|
|
47
47
|
The least a file is, in bytes, to be compressed: [THRESHOLD](../variables/THRESHOLD.md) by default.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / CLIENT\_CONDITIONS
|
|
2
2
|
|
|
3
3
|
# Variable: CLIENT\_CONDITIONS
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const CLIENT_CONDITIONS: readonly string[];
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:47](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L47)
|
|
10
10
|
|
|
11
11
|
The conditions a browser's modules resolve by, as Vite's own default, `defaultClientConditions`
|
|
12
12
|
of `vite`, has them: written here, as the config imports nothing of Vite when it runs, only its
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / COMPRESSIBLE
|
|
2
2
|
|
|
3
3
|
# Variable: COMPRESSIBLE
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const COMPRESSIBLE: readonly string[];
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:54](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:54](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L54)
|
|
10
10
|
|
|
11
11
|
The extensions of the files whose copies a site's build writes: text, as scripts, styles, pages,
|
|
12
12
|
data, maps and SVG are, and WebAssembly. Each other is compressed already, as an image, a font
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / FROM\_DIST
|
|
2
2
|
|
|
3
3
|
# Variable: FROM\_DIST
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
const FROM_DIST: boolean;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L40)
|
|
10
10
|
|
|
11
11
|
Whether the build is read in place of the source: `TEST_FROM=dist`, as `test:dist` runs.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[Documentation](
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [config](../README.md) / THRESHOLD
|
|
2
2
|
|
|
3
3
|
# Variable: THRESHOLD
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
const THRESHOLD: 1024 = 1024;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-vite/src/config.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-vite/src/config.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/config.ts#L70)
|
|
10
10
|
|
|
11
11
|
The least a file is, in bytes, to be compressed: below it, the headers cost more than it saves.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-vite](../README.md) / schema
|
|
2
|
+
|
|
3
|
+
# schema
|
|
4
|
+
|
|
5
|
+
The schema of the options of `baseConfig()` of ./config: [viteSchema](variables/viteSchema.md), a Standard Schema
|
|
6
|
+
that checks them and gives their JSON Schema, so a repo can keep them in its configuration, as
|
|
7
|
+
the `vite` section of `wtf.config.json`, check them, and spread them into `baseConfig()`.
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
11
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
12
|
+
import { baseConfig } from '@wtf/project-vite/config'
|
|
13
|
+
import { viteSchema } from '@wtf/project-vite/schema'
|
|
14
|
+
|
|
15
|
+
const config = await loadConfig()
|
|
16
|
+
export default baseConfig({ ...(await sectionOf(config, 'vite', viteSchema)) })
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Variables
|
|
20
|
+
|
|
21
|
+
- [viteSchema](variables/viteSchema.md)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-vite](../../README.md) / [schema](../README.md) / viteSchema
|
|
2
|
+
|
|
3
|
+
# Variable: viteSchema
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const viteSchema: StandardSchemaV1<BaseOptions> & StandardJSONSchemaV1<BaseOptions>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-vite/src/schema.ts:61](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-vite/src/schema.ts#L61)
|
|
10
|
+
|
|
11
|
+
The schema of the options of `baseConfig()` of ./config, `BaseOptions`: `compress`, `false` or
|
|
12
|
+
the `threshold`, `extensions` and `encodings` of a site's compressed copies.
|