@wtf/project-docs 2.3.1 → 3.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/api/.generated +15 -13
- package/api/@wtf/project-astro/README.md +42 -25
- package/api/@wtf/project-astro/config/README.md +9 -1
- package/api/@wtf/project-astro/config/functions/baseConfig.md +10 -6
- package/api/@wtf/project-astro/config/functions/baseOf.md +5 -5
- package/api/@wtf/project-astro/config/functions/siteOf.md +5 -5
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +21 -19
- package/api/@wtf/project-astro/config/type-aliases/Env.md +3 -3
- 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/README.md +3 -1
- package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +15 -0
- 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/README.md +4 -0
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +15 -6
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +23 -0
- package/api/@wtf/project-astro/links/variables/LINKS.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 +9 -6
- package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
- package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/README.md +7 -4
- package/api/@wtf/project-astro/preview/functions/files.md +1 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
- package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
- package/api/@wtf/project-astro/preview/functions/previewOf.md +6 -5
- 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 +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +8 -7
- 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 +7 -3
- package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +3 -3
- package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +11 -0
- package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
- package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroProperties.md +4 -3
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +5 -5
- package/api/@wtf/project-config/README.md +40 -26
- package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
- package/api/@wtf/project-config/env/README.md +2 -2
- package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
- package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
- package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
- package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
- package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
- package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +5 -5
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
- package/api/@wtf/project-config/load/README.md +12 -5
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
- package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
- package/api/@wtf/project-config/load/functions/loadConfig.md +10 -11
- package/api/@wtf/project-config/load/functions/loadConfigSync.md +4 -4
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +5 -5
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +4 -3
- package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +15 -0
- package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +8 -2
- package/api/@wtf/project-config/load/type-aliases/LoadSyncPlatform.md +19 -0
- package/api/@wtf/project-config/locate/README.md +5 -2
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
- package/api/@wtf/project-config/locate/functions/locateConfigSync.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +1 -1
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
- package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
- package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
- package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
- package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
- package/api/@wtf/project-config/node/README.md +13 -16
- package/api/@wtf/project-config/node/functions/nodeLoadModule.md +7 -7
- package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +12 -5
- package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
- package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
- package/api/@wtf/project-config/section/README.md +7 -3
- package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
- package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
- package/api/@wtf/project-config/section/functions/sectionOf.md +6 -6
- package/api/@wtf/project-config/section/functions/sectionOfSync.md +1 -1
- package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
- package/api/@wtf/project-config/write/README.md +5 -4
- package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
- package/api/@wtf/project-oxfmt/README.md +5 -2
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
- package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
- package/api/@wtf/project-oxlint/README.md +5 -2
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
- package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
- 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 +17 -3
- package/api/@wtf/project-typedoc/config/README.md +20 -4
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +6 -6
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +5 -5
- package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +7 -7
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +8 -6
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +18 -0
- package/api/@wtf/project-typedoc/plugins/README.md +0 -1
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +2 -2
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +15 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +9 -9
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +23 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/README.md +11 -2
- package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +19 -0
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +6 -5
- package/api/@wtf/project-vite/README.md +20 -11
- package/api/@wtf/project-vite/config/README.md +11 -4
- package/api/@wtf/project-vite/config/functions/baseConfig.md +14 -9
- package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
- package/api/@wtf/project-vite/config/functions/compress.md +1 -1
- package/api/@wtf/project-vite/config/functions/conditionsOf.md +8 -7
- package/api/@wtf/project-vite/config/functions/fromDist.md +22 -0
- package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +15 -2
- package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
- package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
- package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
- package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
- package/api/@wtf/project-vite/schema/README.md +10 -3
- package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +11 -0
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +5 -4
- package/api/@wtf/project-vitest/README.md +34 -16
- package/api/@wtf/project-vitest/browser/README.md +2 -1
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +6 -6
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +2 -2
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +8 -6
- package/api/@wtf/project-vitest/config/README.md +17 -1
- package/api/@wtf/project-vitest/config/functions/fromDist.md +22 -0
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +2 -2
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +17 -10
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +5 -2
- package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +18 -0
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +32 -7
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +26 -0
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +10 -10
- package/api/@wtf/project-vitest/process/README.md +3 -3
- package/api/@wtf/project-vitest/process/functions/childEnv.md +6 -6
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/README.md +14 -3
- package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +12 -0
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +6 -5
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +6 -4
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +3 -3
- package/api/@wtf/project-wpt/README.md +27 -19
- 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/README.md +3 -2
- 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/execOf.md +28 -0
- 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 +12 -12
- 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 +6 -4
- 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/README.md +2 -5
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +3 -3
- 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/Realm.md +3 -3
- 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 +10 -60
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +8 -8
- 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/README.md +16 -8
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +9 -3
- package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +12 -0
- 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 +10 -9
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +3 -3
- 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 +6 -3
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
- package/api/@wtf/project-wpt/suite/README.md +6 -2
- 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/llms.txt +8 -3
- package/guides/astro.md +48 -23
- package/guides/config.md +38 -13
- package/guides/getting-started.md +8 -2
- package/guides/presets.md +11 -2
- package/guides/vite.md +20 -10
- package/guides/vitest.md +54 -27
- package/package.json +7 -7
- package/api/@wtf/project-config/node/functions/loadConfig.md +0 -24
- package/api/@wtf/project-config/node/functions/loadConfigSync.md +0 -24
- package/api/@wtf/project-config/node/functions/nodeConfigPlatform.md +0 -16
- package/api/@wtf/project-typedoc/config/variables/nodeRun.md +0 -33
- package/api/@wtf/project-typedoc/plugins/type-aliases/Run.md +0 -25
- package/api/@wtf/project-vite/config/variables/FROM_DIST.md +0 -11
- package/api/@wtf/project-vitest/config/variables/FROM_DIST.md +0 -11
- package/api/@wtf/project-wpt/index/type-aliases/ClearTimeout.md +0 -21
- package/api/@wtf/project-wpt/index/type-aliases/Env.md +0 -11
- package/api/@wtf/project-wpt/index/type-aliases/Performance.md +0 -35
- package/api/@wtf/project-wpt/index/type-aliases/SetTimeout.md +0 -22
- package/api/@wtf/project-wpt/node/functions/nodePlatform.md +0 -18
- package/api/@wtf/project-wpt/node/variables/nodeExec.md +0 -11
package/api/.generated
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@wtf/project-astro/errors/classes/RedirectedLinksError.md
|
|
13
13
|
@wtf/project-astro/errors/classes/SiteError.md
|
|
14
14
|
@wtf/project-astro/index/README.md
|
|
15
|
+
@wtf/project-astro/index/type-aliases/AstroPlatform.md
|
|
15
16
|
@wtf/project-astro/index/type-aliases/BrokenLink.md
|
|
16
17
|
@wtf/project-astro/index/type-aliases/IgnoredLine.md
|
|
17
18
|
@wtf/project-astro/index/type-aliases/RedirectInput.md
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
@wtf/project-astro/links/functions/brokenLinksIn.md
|
|
25
26
|
@wtf/project-astro/links/functions/links.md
|
|
26
27
|
@wtf/project-astro/links/functions/redirectedLinksIn.md
|
|
28
|
+
@wtf/project-astro/links/type-aliases/LinksOptions.md
|
|
27
29
|
@wtf/project-astro/links/variables/LINKS.md
|
|
28
30
|
@wtf/project-astro/pages/README.md
|
|
29
31
|
@wtf/project-astro/pages/functions/fixSearchUrlsIn.md
|
|
@@ -57,6 +59,7 @@
|
|
|
57
59
|
@wtf/project-astro/redirects/variables/MAX_SIZE.md
|
|
58
60
|
@wtf/project-astro/schema/README.md
|
|
59
61
|
@wtf/project-astro/schema/functions/astroSchemaWith.md
|
|
62
|
+
@wtf/project-astro/schema/type-aliases/AstroSection.md
|
|
60
63
|
@wtf/project-astro/schema/type-aliases/JsonSchema.md
|
|
61
64
|
@wtf/project-astro/schema/type-aliases/OptionsSchema.md
|
|
62
65
|
@wtf/project-astro/schema/variables/astroProperties.md
|
|
@@ -116,7 +119,9 @@
|
|
|
116
119
|
@wtf/project-config/load/functions/loadConfigSync.md
|
|
117
120
|
@wtf/project-config/load/type-aliases/LoadLayers.md
|
|
118
121
|
@wtf/project-config/load/type-aliases/LoadOptions.md
|
|
122
|
+
@wtf/project-config/load/type-aliases/LoadPlatform.md
|
|
119
123
|
@wtf/project-config/load/type-aliases/LoadSyncOptions.md
|
|
124
|
+
@wtf/project-config/load/type-aliases/LoadSyncPlatform.md
|
|
120
125
|
@wtf/project-config/locate/README.md
|
|
121
126
|
@wtf/project-config/locate/functions/configFilesOf.md
|
|
122
127
|
@wtf/project-config/locate/functions/configNamesOf.md
|
|
@@ -152,9 +157,6 @@
|
|
|
152
157
|
@wtf/project-config/named/type-aliases/NamedSets.md
|
|
153
158
|
@wtf/project-config/named/type-aliases/NamedUse.md
|
|
154
159
|
@wtf/project-config/node/README.md
|
|
155
|
-
@wtf/project-config/node/functions/loadConfig.md
|
|
156
|
-
@wtf/project-config/node/functions/loadConfigSync.md
|
|
157
|
-
@wtf/project-config/node/functions/nodeConfigPlatform.md
|
|
158
160
|
@wtf/project-config/node/functions/nodeLoadModule.md
|
|
159
161
|
@wtf/project-config/node/functions/nodeSyncPlatform.md
|
|
160
162
|
@wtf/project-config/path/README.md
|
|
@@ -244,7 +246,7 @@
|
|
|
244
246
|
@wtf/project-typedoc/config/type-aliases/RevisionSources.md
|
|
245
247
|
@wtf/project-typedoc/config/type-aliases/TypedocConfig.md
|
|
246
248
|
@wtf/project-typedoc/config/type-aliases/TypedocOptions.md
|
|
247
|
-
@wtf/project-typedoc/config/
|
|
249
|
+
@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md
|
|
248
250
|
@wtf/project-typedoc/plugins/README.md
|
|
249
251
|
@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md
|
|
250
252
|
@wtf/project-typedoc/plugins/functions/linkTrackedSources.md
|
|
@@ -252,9 +254,9 @@
|
|
|
252
254
|
@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md
|
|
253
255
|
@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md
|
|
254
256
|
@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md
|
|
255
|
-
@wtf/project-typedoc/plugins/type-aliases/Run.md
|
|
256
257
|
@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md
|
|
257
258
|
@wtf/project-typedoc/schema/README.md
|
|
259
|
+
@wtf/project-typedoc/schema/type-aliases/TypedocSection.md
|
|
258
260
|
@wtf/project-typedoc/schema/variables/typedocSchema.md
|
|
259
261
|
@wtf/project-vite/README.md
|
|
260
262
|
@wtf/project-vite/config/README.md
|
|
@@ -262,13 +264,14 @@
|
|
|
262
264
|
@wtf/project-vite/config/functions/buildsSite.md
|
|
263
265
|
@wtf/project-vite/config/functions/compress.md
|
|
264
266
|
@wtf/project-vite/config/functions/conditionsOf.md
|
|
267
|
+
@wtf/project-vite/config/functions/fromDist.md
|
|
265
268
|
@wtf/project-vite/config/type-aliases/BaseOptions.md
|
|
266
269
|
@wtf/project-vite/config/type-aliases/CompressOptions.md
|
|
267
270
|
@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md
|
|
268
271
|
@wtf/project-vite/config/variables/COMPRESSIBLE.md
|
|
269
|
-
@wtf/project-vite/config/variables/FROM_DIST.md
|
|
270
272
|
@wtf/project-vite/config/variables/THRESHOLD.md
|
|
271
273
|
@wtf/project-vite/schema/README.md
|
|
274
|
+
@wtf/project-vite/schema/type-aliases/ViteSection.md
|
|
272
275
|
@wtf/project-vite/schema/variables/viteSchema.md
|
|
273
276
|
@wtf/project-vitest/README.md
|
|
274
277
|
@wtf/project-vitest/browser/README.md
|
|
@@ -276,18 +279,21 @@
|
|
|
276
279
|
@wtf/project-vitest/browser/functions/browserRootConfig.md
|
|
277
280
|
@wtf/project-vitest/browser/type-aliases/BrowserOptions.md
|
|
278
281
|
@wtf/project-vitest/config/README.md
|
|
282
|
+
@wtf/project-vitest/config/functions/fromDist.md
|
|
279
283
|
@wtf/project-vitest/config/functions/integrationConfig.md
|
|
280
284
|
@wtf/project-vitest/config/functions/packageConfig.md
|
|
281
285
|
@wtf/project-vitest/config/functions/rootConfig.md
|
|
286
|
+
@wtf/project-vitest/config/type-aliases/PackageOptions.md
|
|
282
287
|
@wtf/project-vitest/config/type-aliases/RootConfigOptions.md
|
|
283
288
|
@wtf/project-vitest/config/type-aliases/RootOptions.md
|
|
284
|
-
@wtf/project-vitest/config/
|
|
289
|
+
@wtf/project-vitest/config/type-aliases/VitestPlatform.md
|
|
285
290
|
@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md
|
|
286
291
|
@wtf/project-vitest/config/variables/integration.md
|
|
287
292
|
@wtf/project-vitest/process/README.md
|
|
288
293
|
@wtf/project-vitest/process/functions/childEnv.md
|
|
289
294
|
@wtf/project-vitest/process/type-aliases/Env.md
|
|
290
295
|
@wtf/project-vitest/schema/README.md
|
|
296
|
+
@wtf/project-vitest/schema/type-aliases/VitestSection.md
|
|
291
297
|
@wtf/project-vitest/schema/variables/vitestSchema.md
|
|
292
298
|
@wtf/project-vitest/storybook/README.md
|
|
293
299
|
@wtf/project-vitest/storybook/functions/storybookConfig.md
|
|
@@ -300,6 +306,7 @@
|
|
|
300
306
|
@wtf/project-wpt/checkout/functions/checkoutFolderOf.md
|
|
301
307
|
@wtf/project-wpt/checkout/functions/checkoutTests.md
|
|
302
308
|
@wtf/project-wpt/checkout/functions/checkoutWpt.md
|
|
309
|
+
@wtf/project-wpt/checkout/functions/execOf.md
|
|
303
310
|
@wtf/project-wpt/checkout/functions/fileOf.md
|
|
304
311
|
@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md
|
|
305
312
|
@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md
|
|
@@ -327,9 +334,7 @@
|
|
|
327
334
|
@wtf/project-wpt/expectations/functions/staleOf.md
|
|
328
335
|
@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md
|
|
329
336
|
@wtf/project-wpt/index/README.md
|
|
330
|
-
@wtf/project-wpt/index/type-aliases/ClearTimeout.md
|
|
331
337
|
@wtf/project-wpt/index/type-aliases/CreateRealm.md
|
|
332
|
-
@wtf/project-wpt/index/type-aliases/Env.md
|
|
333
338
|
@wtf/project-wpt/index/type-aliases/Exec.md
|
|
334
339
|
@wtf/project-wpt/index/type-aliases/Expectations.md
|
|
335
340
|
@wtf/project-wpt/index/type-aliases/FileExpectation.md
|
|
@@ -338,9 +343,7 @@
|
|
|
338
343
|
@wtf/project-wpt/index/type-aliases/HarnessResult.md
|
|
339
344
|
@wtf/project-wpt/index/type-aliases/HarnessStatus.md
|
|
340
345
|
@wtf/project-wpt/index/type-aliases/HoldRejections.md
|
|
341
|
-
@wtf/project-wpt/index/type-aliases/Performance.md
|
|
342
346
|
@wtf/project-wpt/index/type-aliases/Realm.md
|
|
343
|
-
@wtf/project-wpt/index/type-aliases/SetTimeout.md
|
|
344
347
|
@wtf/project-wpt/index/type-aliases/SubtestResult.md
|
|
345
348
|
@wtf/project-wpt/index/type-aliases/SubtestStatus.md
|
|
346
349
|
@wtf/project-wpt/index/type-aliases/WptFile.md
|
|
@@ -357,9 +360,8 @@
|
|
|
357
360
|
@wtf/project-wpt/meta/functions/testsOf.md
|
|
358
361
|
@wtf/project-wpt/meta/type-aliases/Meta.md
|
|
359
362
|
@wtf/project-wpt/node/README.md
|
|
360
|
-
@wtf/project-wpt/node/functions/nodePlatform.md
|
|
361
363
|
@wtf/project-wpt/node/functions/nodeSystem.md
|
|
362
|
-
@wtf/project-wpt/node/
|
|
364
|
+
@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md
|
|
363
365
|
@wtf/project-wpt/node/variables/nodeFiles.md
|
|
364
366
|
@wtf/project-wpt/node/variables/nodeRealm.md
|
|
365
367
|
@wtf/project-wpt/node/variables/nodeRejections.md
|
|
@@ -8,36 +8,46 @@ finds it and gives each link the URL its page is served at. It fails the build o
|
|
|
8
8
|
to no page, or only through a redirect. `./preview` serves the build the way GitLab Pages does,
|
|
9
9
|
`_redirects` included, from a script of your own. Astro is a peer dependency.
|
|
10
10
|
|
|
11
|
-
| Subpath | What you get
|
|
12
|
-
| ------------- |
|
|
13
|
-
| `.` | The types: `RedirectRule`, `RedirectInput`, `IgnoredLine`, `Redirects`, `RedirectMatch`, `BrokenLink`, `RedirectedLink` |
|
|
14
|
-
| `./config` | `baseConfig(options)`: the base of an `astro.config.mjs`; `siteOf(env)` and `baseOf(env)`, of the URL of GitLab Pages |
|
|
15
|
-
| `./pages` | `pages(options)`: the integration that makes the build serve on GitLab Pages; its passes, `moveConflictingPages`, `slashFolderLinksIn`, `fixSearchUrlsIn`, `redirectBaseToLocaleIn`; `prefixedLocaleOf(i18n)` |
|
|
16
|
-
| `./links` | `links()`: the integration that fails the build on a link of no page, or of a redirect; `brokenLinksIn`, `redirectedLinksIn`
|
|
17
|
-
| `./redirects` | `parseRedirects(text)`, `formatRedirects(rules)` and `matchRedirect(rules, path)`: a `_redirects` file read, written, matched
|
|
18
|
-
| `./preview` | `previewOf(folder, { base })`: a built folder to serve as GitLab Pages does, and its warnings; `listen`, on Node's server until its signal; `pagesOf`, `files`, `notFound`
|
|
19
|
-
| `./schema` | `astroSchema`: the Standard Schema of the options of `baseConfig()`, which gives their JSON Schema; `astroProperties` and `astroSchemaWith`, to add options of your own to the section
|
|
20
|
-
| `./errors` | `SiteError`, `BrokenLinksError`, `RedirectedLinksError` and `InvalidRedirectError`, each with a stable `code`
|
|
11
|
+
| Subpath | What you get |
|
|
12
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
13
|
+
| `.` | The types: `AstroPlatform`, `RedirectRule`, `RedirectInput`, `IgnoredLine`, `Redirects`, `RedirectMatch`, `BrokenLink`, `RedirectedLink` |
|
|
14
|
+
| `./config` | `baseConfig({ platform, ...options })`: the base of an `astro.config.mjs`; `siteOf(env)` and `baseOf(env)`, of the URL of GitLab Pages |
|
|
15
|
+
| `./pages` | `pages({ platform, ...options })`: the integration that makes the build serve on GitLab Pages; its passes, `moveConflictingPages`, `slashFolderLinksIn`, `fixSearchUrlsIn`, `redirectBaseToLocaleIn`; `prefixedLocaleOf(i18n)` |
|
|
16
|
+
| `./links` | `links({ platform })`: the integration that fails the build on a link of no page, or of a redirect; `brokenLinksIn`, `redirectedLinksIn` |
|
|
17
|
+
| `./redirects` | `parseRedirects(text)`, `formatRedirects(rules)` and `matchRedirect(rules, path)`: a `_redirects` file read, written, matched |
|
|
18
|
+
| `./preview` | `previewOf(folder, { platform, base })`: a built folder to serve as GitLab Pages does, and its warnings; `listen`, on Node's server until its signal; `pagesOf`, `files`, `notFound` |
|
|
19
|
+
| `./schema` | `astroSchema`: the Standard Schema of the options of `baseConfig()`, which gives their JSON Schema; `astroProperties` and `astroSchemaWith`, to add options of your own to the section |
|
|
20
|
+
| `./errors` | `SiteError`, `BrokenLinksError`, `RedirectedLinksError` and `InvalidRedirectError`, each with a stable `code` |
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
// astro.config.mjs
|
|
24
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
25
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
24
26
|
import { defineConfig, mergeConfig } from 'astro/config'
|
|
25
27
|
|
|
26
28
|
import { baseConfig } from '@wtf/project-astro/config'
|
|
27
29
|
|
|
30
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
28
31
|
export default defineConfig(
|
|
29
|
-
mergeConfig(baseConfig(), { site: 'https://example.com/', outDir: 'public' })
|
|
32
|
+
mergeConfig(baseConfig({ platform }), { site: 'https://example.com/', outDir: 'public' })
|
|
30
33
|
)
|
|
31
34
|
```
|
|
32
35
|
|
|
36
|
+
The config file is the entry point: it builds Node's platform, whose environment the site and its
|
|
37
|
+
base are read of, and whose disk `pages()` and `links()` read the build by, and gives it. Nothing
|
|
38
|
+
in the package reads the process itself.
|
|
39
|
+
|
|
33
40
|
A script of ten lines serves the build as GitLab Pages does, under the base of `ASTRO_BASE` or
|
|
34
41
|
`CI_PAGES_URL`, until `Ctrl+C`, and warns of each line of `_redirects` GitLab Pages ignores:
|
|
35
42
|
|
|
36
43
|
```ts
|
|
37
44
|
// scripts/preview.ts
|
|
45
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
46
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
38
47
|
import { listen, previewOf } from '@wtf/project-astro/preview'
|
|
39
48
|
|
|
40
|
-
const
|
|
49
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
50
|
+
const site = await previewOf('dist', { platform })
|
|
41
51
|
for (const warning of site.warnings) console.warn(warning)
|
|
42
52
|
const stop = new AbortController()
|
|
43
53
|
for (const signal of ['SIGINT', 'SIGTERM'] as const) process.once(signal, () => stop.abort())
|
|
@@ -47,11 +57,12 @@ await server.closed
|
|
|
47
57
|
```
|
|
48
58
|
|
|
49
59
|
Run it as `node scripts/preview.ts`, from a `preview` script of your package.json. Pass
|
|
50
|
-
`previewOf(folder, { base })` and `listen(handler, { host, port })` the flags of your
|
|
60
|
+
`previewOf(folder, { platform, base })` and `listen(handler, { host, port })` the flags of your
|
|
61
|
+
own.
|
|
51
62
|
|
|
52
63
|
## What it sets
|
|
53
64
|
|
|
54
|
-
`baseConfig()` gives your site:
|
|
65
|
+
`baseConfig({ platform })` gives your site:
|
|
55
66
|
|
|
56
67
|
- `trailingSlash: 'never'` and `build.format: 'preserve'`: a page is `X.html`, served at `X`, and
|
|
57
68
|
a page with pages below it is `X/index.html`, served at `X/`.
|
|
@@ -59,17 +70,17 @@ Run it as `node scripts/preview.ts`, from a `preview` script of your package.jso
|
|
|
59
70
|
your own, or else `CI_PAGES_URL`, which a pipeline sets. The base is that URL's path, such as
|
|
60
71
|
`/project/`.
|
|
61
72
|
- The markdown processor of remark and rehype, `unified()` of `@astrojs/markdown-remark`, with the
|
|
62
|
-
plugins you pass as `baseConfig({ markdown: { remarkPlugins, rehypePlugins } })`.
|
|
73
|
+
plugins you pass as `baseConfig({ platform, markdown: { remarkPlugins, rehypePlugins } })`.
|
|
63
74
|
- Vite from `baseConfig()` of [`@wtf/project-vite`](../project-vite), which resolves the
|
|
64
75
|
workspace's packages from source and writes compressed copies of the site's scripts and styles.
|
|
65
|
-
Pass its options as `baseConfig({ vite: { compress: false } })`.
|
|
66
|
-
- The integrations `pages()` and `links()
|
|
67
|
-
`baseConfig({ pages: false, links: false })`.
|
|
76
|
+
Pass its options as `baseConfig({ platform, vite: { compress: false } })`.
|
|
77
|
+
- The integrations `pages()` and `links()`, of the platform. Switch either off with
|
|
78
|
+
`baseConfig({ platform, pages: false, links: false })`.
|
|
68
79
|
- A site whose URLs all start with their locale, as `/en/` and `/sv/`, gets a rule of `_redirects`
|
|
69
80
|
that sends `/`, or the base, to the default locale's `/en/`, as nothing else answers it on GitLab
|
|
70
81
|
Pages. `pages()` reads the locales of Astro's `i18n`, or of Starlight's `locales`, which Starlight
|
|
71
82
|
hands to Astro: declare them once, in either. A site whose default locale has no prefix gets
|
|
72
|
-
none. Switch it off with `baseConfig({ pages: { localeRedirect: false } })`.
|
|
83
|
+
none. Switch it off with `baseConfig({ platform, pages: { localeRedirect: false } })`.
|
|
73
84
|
|
|
74
85
|
Each integration runs after every integration of your site, so it sees the build whole, as
|
|
75
86
|
Starlight's search indexed it. Each reads the folder of the build through a handle of the
|
|
@@ -85,13 +96,16 @@ The config reads no file of its own. Keep the options of `baseConfig()` that JSO
|
|
|
85
96
|
|
|
86
97
|
```ts
|
|
87
98
|
// astro.config.mjs
|
|
88
|
-
import {
|
|
99
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
100
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
101
|
+
import { loadConfig } from '@wtf/project-config/load'
|
|
89
102
|
import { sectionOf } from '@wtf/project-config/section'
|
|
90
103
|
import { baseConfig } from '@wtf/project-astro/config'
|
|
91
104
|
import { astroSchema } from '@wtf/project-astro/schema'
|
|
92
105
|
|
|
93
|
-
const
|
|
94
|
-
|
|
106
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
107
|
+
const config = await loadConfig({ platform })
|
|
108
|
+
export default baseConfig({ platform, ...(await sectionOf(config, 'astro', astroSchema)) })
|
|
95
109
|
```
|
|
96
110
|
|
|
97
111
|
```json
|
|
@@ -111,7 +125,9 @@ the rest into `baseConfig()`:
|
|
|
111
125
|
|
|
112
126
|
```ts
|
|
113
127
|
// astro.config.mjs
|
|
114
|
-
import {
|
|
128
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
129
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
130
|
+
import { loadConfig } from '@wtf/project-config/load'
|
|
115
131
|
import { sectionOf } from '@wtf/project-config/section'
|
|
116
132
|
import { baseConfig } from '@wtf/project-astro/config'
|
|
117
133
|
import { astroSchemaWith } from '@wtf/project-astro/schema'
|
|
@@ -121,9 +137,10 @@ const siteSchema = astroSchemaWith<Analytics>('my-site', {
|
|
|
121
137
|
analytics: { description: 'The ID of the site in its analytics.', type: 'string' }
|
|
122
138
|
})
|
|
123
139
|
|
|
124
|
-
const
|
|
140
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
141
|
+
const config = await loadConfig({ platform })
|
|
125
142
|
const { analytics, ...options } = (await sectionOf(config, 'astro', siteSchema)) ?? {}
|
|
126
|
-
export default baseConfig(options)
|
|
143
|
+
export default baseConfig({ ...options, platform })
|
|
127
144
|
```
|
|
128
145
|
|
|
129
146
|
```json
|
|
@@ -17,13 +17,21 @@ site built to serve on GitLab Pages:
|
|
|
17
17
|
- the integrations `pages()` of `./pages` and `links()` of `./links`, each of which can be
|
|
18
18
|
switched off; `pages()` sends the base of a site whose default locale has its prefix there.
|
|
19
19
|
|
|
20
|
+
It reads nothing of the process: the config file, its entry point, builds the platform and gives
|
|
21
|
+
it, its environment and its file system.
|
|
22
|
+
|
|
20
23
|
```ts
|
|
21
24
|
// astro.config.mjs
|
|
25
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
26
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
22
27
|
import { defineConfig, mergeConfig } from 'astro/config'
|
|
23
28
|
|
|
24
29
|
import { baseConfig } from '@wtf/project-astro/config'
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
32
|
+
export default defineConfig(
|
|
33
|
+
mergeConfig(baseConfig({ platform }), { outDir: 'public', publicDir: 'static' })
|
|
34
|
+
)
|
|
27
35
|
```
|
|
28
36
|
|
|
29
37
|
## Type Aliases
|
|
@@ -3,30 +3,34 @@
|
|
|
3
3
|
# Function: baseConfig()
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
function baseConfig(options
|
|
6
|
+
function baseConfig(options): AstroUserConfig;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
9
|
+
Defined in: [packages/project-astro/src/config.ts:103](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L103)
|
|
10
10
|
|
|
11
11
|
The base config a site's `astro.config.mjs` starts from, by
|
|
12
12
|
`mergeConfig(baseConfig(), yours)` of `astro/config`, which appends the site's integrations to
|
|
13
13
|
its own, and replaces the markdown processor of a site that gives one. It sets:
|
|
14
14
|
|
|
15
|
-
- `site` and `base`, of the environment ([siteOf](siteOf.md), [baseOf](baseOf.md)), unless
|
|
15
|
+
- `site` and `base`, of the environment of the platform ([siteOf](siteOf.md), [baseOf](baseOf.md)), unless
|
|
16
|
+
it names none;
|
|
16
17
|
- `trailingSlash: 'never'` and `build.format: 'preserve'`;
|
|
17
18
|
- `markdown.processor`: `unified(options.markdown)` of `@astrojs/markdown-remark`;
|
|
18
|
-
- `vite`: `baseConfig(options.vite)` of `@wtf/project-vite/config`;
|
|
19
|
+
- `vite`: `baseConfig({ platform, ...options.vite })` of `@wtf/project-vite/config`;
|
|
19
20
|
- `integrations`: `pages()` of `./pages`, of the options `pages` gives, then `links()` of
|
|
20
|
-
`./links`, unless `pages` or `links` is `false`. Each runs after every
|
|
21
|
+
`./links`, each of the platform, unless `pages` or `links` is `false`. Each runs after every
|
|
22
|
+
integration of the site.
|
|
21
23
|
|
|
22
24
|
```ts
|
|
25
|
+
import type { AstroPlatform } from '@wtf/project-astro'
|
|
23
26
|
import type { RemarkPlugins } from 'astro'
|
|
24
27
|
import { defineConfig, mergeConfig } from 'astro/config'
|
|
25
28
|
|
|
29
|
+
declare const platform: AstroPlatform
|
|
26
30
|
declare const remarkPlugins: RemarkPlugins
|
|
27
31
|
|
|
28
32
|
export default defineConfig(
|
|
29
|
-
mergeConfig(baseConfig({ markdown: { remarkPlugins }, links: false }), {
|
|
33
|
+
mergeConfig(baseConfig({ platform, markdown: { remarkPlugins }, links: false }), {
|
|
30
34
|
site: 'https://example.com/'
|
|
31
35
|
})
|
|
32
36
|
)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
# Function: baseOf()
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
function baseOf(env
|
|
6
|
+
function baseOf(env): string | undefined;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/env.ts:
|
|
9
|
+
Defined in: [packages/project-astro/src/env.ts:37](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L37)
|
|
10
10
|
|
|
11
11
|
The base of the site, of `ASTRO_BASE` or else `CI_PAGES_URL` of `env`: the path of the URL,
|
|
12
12
|
with a slash at each end, such as `/project/` of `https://group.gitlab.io/project`. None, of
|
|
@@ -14,9 +14,9 @@ neither, or of a site at the root of its domain.
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
| Parameter | Type |
|
|
18
|
-
| ------ | ------ |
|
|
19
|
-
| `env` | [`Env`](../type-aliases/Env.md) |
|
|
17
|
+
| Parameter | Type |
|
|
18
|
+
| ------ | ------ |
|
|
19
|
+
| `env` | [`Env`](../type-aliases/Env.md) |
|
|
20
20
|
|
|
21
21
|
## Returns
|
|
22
22
|
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
# Function: siteOf()
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
function siteOf(env
|
|
6
|
+
function siteOf(env): string | undefined;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/env.ts:
|
|
9
|
+
Defined in: [packages/project-astro/src/env.ts:27](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L27)
|
|
10
10
|
|
|
11
11
|
The site's URL, of `ASTRO_BASE` or else `CI_PAGES_URL` of `env`: its origin, with a final
|
|
12
12
|
slash, as Astro's `site` takes it, such as `https://group.gitlab.io/`. None, of neither.
|
|
13
13
|
|
|
14
14
|
## Parameters
|
|
15
15
|
|
|
16
|
-
| Parameter | Type |
|
|
17
|
-
| ------ | ------ |
|
|
18
|
-
| `env` | [`Env`](../type-aliases/Env.md) |
|
|
16
|
+
| Parameter | Type |
|
|
17
|
+
| ------ | ------ |
|
|
18
|
+
| `env` | [`Env`](../type-aliases/Env.md) |
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
@@ -6,31 +6,19 @@
|
|
|
6
6
|
type BaseOptions = object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
9
|
+
Defined in: [packages/project-astro/src/config.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L48)
|
|
10
10
|
|
|
11
11
|
What [baseConfig](../functions/baseConfig.md) takes.
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
15
|
-
### env?
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
readonly optional env?: Env;
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Defined in: [packages/project-astro/src/config.ts:56](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L56)
|
|
22
|
-
|
|
23
|
-
The environment the site and its base are read of: the process's own by default.
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
15
|
### links?
|
|
28
16
|
|
|
29
17
|
```ts
|
|
30
18
|
readonly optional links?: boolean;
|
|
31
19
|
```
|
|
32
20
|
|
|
33
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
21
|
+
Defined in: [packages/project-astro/src/config.ts:71](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L71)
|
|
34
22
|
|
|
35
23
|
Whether the build fails on a link of no page, or of a redirect, by `links()` of `./links`: by
|
|
36
24
|
default.
|
|
@@ -43,7 +31,7 @@ default.
|
|
|
43
31
|
readonly optional markdown?: UnifiedProcessorOptions;
|
|
44
32
|
```
|
|
45
33
|
|
|
46
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
34
|
+
Defined in: [packages/project-astro/src/config.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L58)
|
|
47
35
|
|
|
48
36
|
The options of the markdown processor, `unified()` of `@astrojs/markdown-remark`: its remark
|
|
49
37
|
and rehype plugins, among the rest. None by default.
|
|
@@ -56,19 +44,33 @@ and rehype plugins, among the rest. None by default.
|
|
|
56
44
|
readonly optional pages?: boolean | PagesOptions;
|
|
57
45
|
```
|
|
58
46
|
|
|
59
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
47
|
+
Defined in: [packages/project-astro/src/config.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L68)
|
|
60
48
|
|
|
61
49
|
Whether the build is made to serve on GitLab Pages, by `pages()` of `./pages`: by default. Its
|
|
62
50
|
options, as `{ localeRedirect: false }`, run it of them.
|
|
63
51
|
|
|
64
52
|
***
|
|
65
53
|
|
|
54
|
+
### platform
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
readonly platform: AstroPlatform;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Defined in: [packages/project-astro/src/config.ts:53](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L53)
|
|
61
|
+
|
|
62
|
+
The platform the site is built on: its environment, which the site and its base are read of,
|
|
63
|
+
and its file system, which `pages()` and `links()` read the build by.
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
66
67
|
### vite?
|
|
67
68
|
|
|
68
69
|
```ts
|
|
69
|
-
readonly optional vite?: BaseOptions
|
|
70
|
+
readonly optional vite?: Omit<BaseOptions, "platform">;
|
|
70
71
|
```
|
|
71
72
|
|
|
72
|
-
Defined in: [packages/project-astro/src/config.ts:
|
|
73
|
+
Defined in: [packages/project-astro/src/config.ts:63](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L63)
|
|
73
74
|
|
|
74
|
-
The options of `baseConfig()` of `@wtf/project-vite/config`, as `{ compress: false }
|
|
75
|
+
The options of `baseConfig()` of `@wtf/project-vite/config`, as `{ compress: false }`: each
|
|
76
|
+
but its platform, which is this one's.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
# Type Alias: Env
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
type Env =
|
|
6
|
+
type Env = Platform["env"];
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-astro/src/env.ts:
|
|
9
|
+
Defined in: [packages/project-astro/src/env.ts:12](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L12)
|
|
10
10
|
|
|
11
|
-
An environment, as
|
|
11
|
+
An environment, as a platform's `env` is.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: BrokenLinksError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-astro/src/errors.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-astro/src/errors.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L29)
|
|
6
6
|
|
|
7
7
|
Each internal link of a build that leads to no page, as GitLab Pages serves the build.
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Each internal link of a build that leads to no page, as GitLab Pages serves the
|
|
|
18
18
|
new BrokenLinksError(links): BrokenLinksError;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L33)
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
@@ -39,9 +39,9 @@ Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfu
|
|
|
39
39
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
40
40
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
41
41
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
|
|
42
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
43
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
44
|
-
| <a id="property-links"></a> `links` | `readonly` | readonly [`BrokenLink`](../../index/type-aliases/BrokenLink.md)[] | `undefined` | The links, each with its page. | - | [packages/project-astro/src/errors.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
42
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
|
|
43
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
|
|
44
|
+
| <a id="property-links"></a> `links` | `readonly` | readonly [`BrokenLink`](../../index/type-aliases/BrokenLink.md)[] | `undefined` | The links, each with its page. | - | [packages/project-astro/src/errors.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L31) |
|
|
45
45
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
|
|
46
46
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
|
|
47
47
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: InvalidRedirectError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-astro/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-astro/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L64)
|
|
6
6
|
|
|
7
7
|
A rule of `_redirects` that GitLab Pages would ignore, and why, as it is written.
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ A rule of `_redirects` that GitLab Pages would ignore, and why, as it is written
|
|
|
18
18
|
new InvalidRedirectError(rule, reason): InvalidRedirectError;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
21
|
+
Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L70)
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
@@ -40,12 +40,12 @@ Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfu
|
|
|
40
40
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
41
41
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
42
42
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
|
|
43
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
44
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
43
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
|
|
44
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
|
|
45
45
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
|
|
46
46
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
|
|
47
|
-
| <a id="property-reason"></a> `reason` | `readonly` | `string` | `undefined` | Why GitLab Pages would ignore it. | - | [packages/project-astro/src/errors.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
48
|
-
| <a id="property-rule"></a> `rule` | `readonly` | `string` | `undefined` | The rule, as a line of the file, or what is too much of the file. | - | [packages/project-astro/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
47
|
+
| <a id="property-reason"></a> `reason` | `readonly` | `string` | `undefined` | Why GitLab Pages would ignore it. | - | [packages/project-astro/src/errors.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L68) |
|
|
48
|
+
| <a id="property-rule"></a> `rule` | `readonly` | `string` | `undefined` | The rule, as a line of the file, or what is too much of the file. | - | [packages/project-astro/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L66) |
|
|
49
49
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |
|
|
50
50
|
| <a id="property-stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | `undefined` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | [`SiteError`](SiteError.md).[`stackTraceLimit`](SiteError.md#property-stacktracelimit) | - |
|
|
51
51
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: RedirectedLinksError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-astro/src/errors.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-astro/src/errors.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L48)
|
|
6
6
|
|
|
7
7
|
Each internal link of a build that leads to its page only through a redirect, which costs each
|
|
8
8
|
reader a round trip: link to where it leads instead.
|
|
@@ -19,7 +19,7 @@ reader a round trip: link to where it leads instead.
|
|
|
19
19
|
new RedirectedLinksError(links): RedirectedLinksError;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
22
|
+
Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L52)
|
|
23
23
|
|
|
24
24
|
#### Parameters
|
|
25
25
|
|
|
@@ -40,9 +40,9 @@ Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfu
|
|
|
40
40
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
41
41
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
42
42
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
|
|
43
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
44
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
45
|
-
| <a id="property-links"></a> `links` | `readonly` | readonly [`RedirectedLink`](../../index/type-aliases/RedirectedLink.md)[] | `undefined` | The links, each with its page and where it leads. | - | [packages/project-astro/src/errors.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
43
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
|
|
44
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
|
|
45
|
+
| <a id="property-links"></a> `links` | `readonly` | readonly [`RedirectedLink`](../../index/type-aliases/RedirectedLink.md)[] | `undefined` | The links, each with its page and where it leads. | - | [packages/project-astro/src/errors.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L50) |
|
|
46
46
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
|
|
47
47
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
|
|
48
48
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |
|