polen 0.9.1-next.2 → 0.10.0-next.11
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 +49 -364
- package/build/api/api.d.ts +1 -0
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +1 -0
- package/build/api/api.js.map +1 -1
- package/build/api/config/configurator.d.ts +9 -1
- package/build/api/config/configurator.d.ts.map +1 -1
- package/build/api/config/configurator.js +18 -6
- package/build/api/config/configurator.js.map +1 -1
- package/build/api/config/load.js +5 -5
- package/build/api/config/load.js.map +1 -1
- package/build/api/config-resolver/resolve.js +2 -2
- package/build/api/config-resolver/resolve.js.map +1 -1
- package/build/api/content/$$.d.ts +7 -0
- package/build/api/content/$$.d.ts.map +1 -0
- package/build/api/content/$$.js +7 -0
- package/build/api/content/$$.js.map +1 -0
- package/build/api/content/$.d.ts +2 -0
- package/build/api/content/$.d.ts.map +1 -0
- package/build/api/content/$.js +2 -0
- package/build/api/content/$.js.map +1 -0
- package/build/api/content/metadata.d.ts +10 -0
- package/build/api/content/metadata.d.ts.map +1 -0
- package/build/api/content/metadata.js +9 -0
- package/build/api/content/metadata.js.map +1 -0
- package/build/api/content/navbar.d.ts +10 -0
- package/build/api/content/navbar.d.ts.map +1 -0
- package/build/api/content/navbar.js +45 -0
- package/build/api/content/navbar.js.map +1 -0
- package/build/api/content/page.d.ts +11 -0
- package/build/api/content/page.d.ts.map +1 -0
- package/build/api/content/page.js +2 -0
- package/build/api/content/page.js.map +1 -0
- package/build/api/content/scan.d.ts +19 -0
- package/build/api/content/scan.d.ts.map +1 -0
- package/build/api/content/scan.js +90 -0
- package/build/api/content/scan.js.map +1 -0
- package/build/api/content/sidebar.d.ts +104 -0
- package/build/api/content/sidebar.d.ts.map +1 -0
- package/build/api/content/sidebar.js +166 -0
- package/build/api/content/sidebar.js.map +1 -0
- package/build/api/content/utils.d.ts +5 -0
- package/build/api/content/utils.d.ts.map +1 -0
- package/build/api/content/utils.js +8 -0
- package/build/api/content/utils.js.map +1 -0
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/static/index.d.ts +2 -0
- package/build/api/static/index.d.ts.map +1 -0
- package/build/api/static/index.js +2 -0
- package/build/api/static/index.js.map +1 -0
- package/build/api/static/manifest.d.ts +18 -0
- package/build/api/static/manifest.d.ts.map +1 -0
- package/build/api/static/manifest.js +13 -0
- package/build/api/static/manifest.js.map +1 -0
- package/build/api/static/rebase.d.ts +14 -0
- package/build/api/static/rebase.d.ts.map +1 -0
- package/build/api/static/rebase.js +110 -0
- package/build/api/static/rebase.js.map +1 -0
- package/build/api/static/static.d.ts +3 -0
- package/build/api/static/static.d.ts.map +1 -0
- package/build/api/static/static.js +3 -0
- package/build/api/static/static.js.map +1 -0
- package/build/api/vite/plugins/branding/index.d.ts +4 -0
- package/build/api/vite/plugins/branding/index.d.ts.map +1 -0
- package/build/api/vite/plugins/branding/index.js +80 -0
- package/build/api/vite/plugins/branding/index.js.map +1 -0
- package/build/api/vite/plugins/build.d.ts.map +1 -1
- package/build/api/vite/plugins/build.js +22 -1
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +2 -2
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +4 -5
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/main.d.ts.map +1 -1
- package/build/api/vite/plugins/main.js +2 -1
- package/build/api/vite/plugins/main.js.map +1 -1
- package/build/api/vite/plugins/pages.d.ts +8 -14
- package/build/api/vite/plugins/pages.d.ts.map +1 -1
- package/build/api/vite/plugins/pages.js +110 -183
- package/build/api/vite/plugins/pages.js.map +1 -1
- package/build/api/vite/plugins/serve.js +5 -5
- package/build/api/vite/plugins/serve.js.map +1 -1
- package/build/cli/_/self-contained-mode.js +5 -5
- package/build/cli/_/self-contained-mode.js.map +1 -1
- package/build/cli/commands/static/$default.d.ts +3 -0
- package/build/cli/commands/static/$default.d.ts.map +1 -0
- package/build/cli/commands/static/$default.js +38 -0
- package/build/cli/commands/static/$default.js.map +1 -0
- package/build/cli/commands/static/rebase.d.ts +2 -0
- package/build/cli/commands/static/rebase.d.ts.map +1 -0
- package/build/cli/commands/static/rebase.js +26 -0
- package/build/cli/commands/static/rebase.js.map +1 -0
- package/build/cli/commands/static.d.ts +3 -0
- package/build/cli/commands/static.d.ts.map +1 -0
- package/build/cli/commands/static.js +5 -0
- package/build/cli/commands/static.js.map +1 -0
- package/build/exports/components.d.ts +2 -0
- package/build/exports/components.d.ts.map +1 -0
- package/build/exports/components.js +2 -0
- package/build/exports/components.js.map +1 -0
- package/build/lib/demos/builder.d.ts +83 -0
- package/build/lib/demos/builder.d.ts.map +1 -0
- package/build/lib/demos/builder.js +237 -0
- package/build/lib/demos/builder.js.map +1 -0
- package/build/lib/demos/config-schema.d.ts +243 -0
- package/build/lib/demos/config-schema.d.ts.map +1 -0
- package/build/lib/demos/config-schema.js +52 -0
- package/build/lib/demos/config-schema.js.map +1 -0
- package/build/lib/demos/config.d.ts +40 -0
- package/build/lib/demos/config.d.ts.map +1 -0
- package/build/lib/demos/config.js +180 -0
- package/build/lib/demos/config.js.map +1 -0
- package/build/lib/demos/index.d.ts +9 -0
- package/build/lib/demos/index.d.ts.map +1 -0
- package/build/lib/demos/index.js +8 -0
- package/build/lib/demos/index.js.map +1 -0
- package/build/lib/demos/ui/components.d.ts +33 -0
- package/build/lib/demos/ui/components.d.ts.map +1 -0
- package/build/lib/demos/ui/components.js +699 -0
- package/build/lib/demos/ui/components.js.map +1 -0
- package/build/lib/demos/ui/data-collector.d.ts +88 -0
- package/build/lib/demos/ui/data-collector.d.ts.map +1 -0
- package/build/lib/demos/ui/data-collector.js +174 -0
- package/build/lib/demos/ui/data-collector.js.map +1 -0
- package/build/lib/demos/ui/landing-page-cli.d.ts +3 -0
- package/build/lib/demos/ui/landing-page-cli.d.ts.map +1 -0
- package/build/lib/demos/ui/landing-page-cli.js +21 -0
- package/build/lib/demos/ui/landing-page-cli.js.map +1 -0
- package/build/lib/demos/ui/landing-page.d.ts +32 -0
- package/build/lib/demos/ui/landing-page.d.ts.map +1 -0
- package/build/lib/demos/ui/landing-page.js +83 -0
- package/build/lib/demos/ui/landing-page.js.map +1 -0
- package/build/lib/demos/ui/page-renderer.d.ts +26 -0
- package/build/lib/demos/ui/page-renderer.d.ts.map +1 -0
- package/build/lib/demos/ui/page-renderer.js +104 -0
- package/build/lib/demos/ui/page-renderer.js.map +1 -0
- package/build/lib/demos/utils.d.ts +14 -0
- package/build/lib/demos/utils.d.ts.map +1 -0
- package/build/lib/demos/utils.js +37 -0
- package/build/lib/demos/utils.js.map +1 -0
- package/build/lib/deployment/$$.d.ts +3 -0
- package/build/lib/deployment/$$.d.ts.map +1 -0
- package/build/lib/deployment/$$.js +3 -0
- package/build/lib/deployment/$$.js.map +1 -0
- package/build/lib/deployment/$.d.ts +2 -0
- package/build/lib/deployment/$.d.ts.map +1 -0
- package/build/lib/deployment/$.js +2 -0
- package/build/lib/deployment/$.js.map +1 -0
- package/build/lib/deployment/metadata.d.ts +32 -0
- package/build/lib/deployment/metadata.d.ts.map +1 -0
- package/build/lib/deployment/metadata.js +37 -0
- package/build/lib/deployment/metadata.js.map +1 -0
- package/build/lib/deployment/path-manager.d.ts +41 -0
- package/build/lib/deployment/path-manager.d.ts.map +1 -0
- package/build/lib/deployment/path-manager.js +157 -0
- package/build/lib/deployment/path-manager.js.map +1 -0
- package/build/lib/file-router/file-router.d.ts +0 -2
- package/build/lib/file-router/file-router.d.ts.map +1 -1
- package/build/lib/file-router/file-router.js +0 -2
- package/build/lib/file-router/file-router.js.map +1 -1
- package/build/lib/file-router/route.d.ts +2 -0
- package/build/lib/file-router/route.d.ts.map +1 -1
- package/build/lib/file-router/route.js.map +1 -1
- package/build/lib/file-router/scan.d.ts.map +1 -1
- package/build/lib/file-router/scan.js +22 -13
- package/build/lib/file-router/scan.js.map +1 -1
- package/build/lib/github-actions/git-controller.d.ts +50 -0
- package/build/lib/github-actions/git-controller.d.ts.map +1 -0
- package/build/lib/github-actions/git-controller.js +90 -0
- package/build/lib/github-actions/git-controller.js.map +1 -0
- package/build/lib/github-actions/github-actions.d.ts +7 -0
- package/build/lib/github-actions/github-actions.d.ts.map +1 -0
- package/build/lib/github-actions/github-actions.js +7 -0
- package/build/lib/github-actions/github-actions.js.map +1 -0
- package/build/lib/github-actions/index.d.ts +2 -0
- package/build/lib/github-actions/index.d.ts.map +1 -0
- package/build/lib/github-actions/index.js +2 -0
- package/build/lib/github-actions/index.js.map +1 -0
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts +12 -0
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts.map +1 -0
- package/build/lib/github-actions/lib/get-pr-deployments.js +51 -0
- package/build/lib/github-actions/lib/get-pr-deployments.js.map +1 -0
- package/build/lib/github-actions/pr-controller.d.ts +39 -0
- package/build/lib/github-actions/pr-controller.d.ts.map +1 -0
- package/build/lib/github-actions/pr-controller.js +122 -0
- package/build/lib/github-actions/pr-controller.js.map +1 -0
- package/build/lib/github-actions/run-step-cli.d.ts +9 -0
- package/build/lib/github-actions/run-step-cli.d.ts.map +1 -0
- package/build/lib/github-actions/run-step-cli.js +71 -0
- package/build/lib/github-actions/run-step-cli.js.map +1 -0
- package/build/lib/github-actions/runner.d.ts +17 -0
- package/build/lib/github-actions/runner.d.ts.map +1 -0
- package/build/lib/github-actions/runner.js +195 -0
- package/build/lib/github-actions/runner.js.map +1 -0
- package/build/lib/github-actions/schemas/context.d.ts +933 -0
- package/build/lib/github-actions/schemas/context.d.ts.map +1 -0
- package/build/lib/github-actions/schemas/context.js +407 -0
- package/build/lib/github-actions/schemas/context.js.map +1 -0
- package/build/lib/github-actions/schemas/index.d.ts +5 -0
- package/build/lib/github-actions/schemas/index.d.ts.map +1 -0
- package/build/lib/github-actions/schemas/index.js +5 -0
- package/build/lib/github-actions/schemas/index.js.map +1 -0
- package/build/lib/github-actions/search-module.d.ts +38 -0
- package/build/lib/github-actions/search-module.d.ts.map +1 -0
- package/build/lib/github-actions/search-module.js +40 -0
- package/build/lib/github-actions/search-module.js.map +1 -0
- package/build/lib/github-actions/step.d.ts +163 -0
- package/build/lib/github-actions/step.d.ts.map +1 -0
- package/build/lib/github-actions/step.js +121 -0
- package/build/lib/github-actions/step.js.map +1 -0
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +5 -3
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/kit-temp.d.ts +54 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/kit-temp.js +82 -14
- package/build/lib/kit-temp.js.map +1 -1
- package/build/lib/kit-temp.test-d.d.ts +2 -0
- package/build/lib/kit-temp.test-d.d.ts.map +1 -0
- package/build/lib/kit-temp.test-d.js +75 -0
- package/build/lib/kit-temp.test-d.js.map +1 -0
- package/build/lib/mask/$$.d.ts +3 -0
- package/build/lib/mask/$$.d.ts.map +1 -0
- package/build/lib/mask/$$.js +3 -0
- package/build/lib/mask/$$.js.map +1 -0
- package/build/lib/mask/$.d.ts +2 -0
- package/build/lib/mask/$.d.ts.map +1 -0
- package/build/lib/mask/$.js +2 -0
- package/build/lib/mask/$.js.map +1 -0
- package/build/lib/mask/apply.d.ts +86 -0
- package/build/lib/mask/apply.d.ts.map +1 -0
- package/build/lib/mask/apply.js +86 -0
- package/build/lib/mask/apply.js.map +1 -0
- package/build/lib/mask/mask.d.ts +124 -0
- package/build/lib/mask/mask.d.ts.map +1 -0
- package/build/lib/mask/mask.js +137 -0
- package/build/lib/mask/mask.js.map +1 -0
- package/build/lib/mask/mask.test-d.d.ts +2 -0
- package/build/lib/mask/mask.test-d.d.ts.map +1 -0
- package/build/lib/mask/mask.test-d.js +102 -0
- package/build/lib/mask/mask.test-d.js.map +1 -0
- package/build/lib/mutation-type.d.ts +18 -0
- package/build/lib/mutation-type.d.ts.map +1 -0
- package/build/lib/mutation-type.js +16 -0
- package/build/lib/mutation-type.js.map +1 -0
- package/build/lib/task/$$.d.ts +3 -0
- package/build/lib/task/$$.d.ts.map +1 -0
- package/build/lib/task/$$.js +3 -0
- package/build/lib/task/$$.js.map +1 -0
- package/build/lib/task/$.d.ts +2 -0
- package/build/lib/task/$.d.ts.map +1 -0
- package/build/lib/task/$.js +2 -0
- package/build/lib/task/$.js.map +1 -0
- package/build/lib/task/report.d.ts +28 -0
- package/build/lib/task/report.d.ts.map +1 -0
- package/build/lib/task/report.js +33 -0
- package/build/lib/task/report.js.map +1 -0
- package/build/lib/task/task.d.ts +44 -0
- package/build/lib/task/task.d.ts.map +1 -0
- package/build/lib/task/task.js +63 -0
- package/build/lib/task/task.js.map +1 -0
- package/build/lib/version-history/index.d.ts +3 -0
- package/build/lib/version-history/index.d.ts.map +1 -0
- package/build/lib/version-history/index.js +2 -0
- package/build/lib/version-history/index.js.map +1 -0
- package/build/lib/version-history/types.d.ts +64 -0
- package/build/lib/version-history/types.d.ts.map +1 -0
- package/build/lib/version-history/types.js +5 -0
- package/build/lib/version-history/types.js.map +1 -0
- package/build/lib/version-history/version-history.d.ts +85 -0
- package/build/lib/version-history/version-history.d.ts.map +1 -0
- package/build/lib/version-history/version-history.js +248 -0
- package/build/lib/version-history/version-history.js.map +1 -0
- package/build/project-data.d.ts +0 -1
- package/build/project-data.d.ts.map +1 -1
- package/build/sandbox.d.ts +2 -0
- package/build/sandbox.d.ts.map +1 -0
- package/build/sandbox.js +18 -0
- package/build/sandbox.js.map +1 -0
- package/build/singletons/debug.d.ts +1 -1
- package/build/singletons/debug.d.ts.map +1 -1
- package/build/singletons/debug.js +1 -1
- package/build/singletons/debug.js.map +1 -1
- package/build/template/components/CodeBlockEnhancer.d.ts +2 -0
- package/build/template/components/CodeBlockEnhancer.d.ts.map +1 -0
- package/build/template/components/CodeBlockEnhancer.jsx +175 -0
- package/build/template/components/CodeBlockEnhancer.jsx.map +1 -0
- package/build/template/components/HamburgerMenu.d.ts +9 -0
- package/build/template/components/HamburgerMenu.d.ts.map +1 -0
- package/build/template/components/HamburgerMenu.jsx +53 -0
- package/build/template/components/HamburgerMenu.jsx.map +1 -0
- package/build/template/components/Link.jsx +1 -1
- package/build/template/components/Logo.d.ts +9 -0
- package/build/template/components/Logo.d.ts.map +1 -0
- package/build/template/components/Logo.jsx +29 -0
- package/build/template/components/Logo.jsx.map +1 -0
- package/build/template/components/NotFound.d.ts +2 -0
- package/build/template/components/NotFound.d.ts.map +1 -0
- package/build/template/components/NotFound.jsx +26 -0
- package/build/template/components/NotFound.jsx.map +1 -0
- package/build/template/components/ThemeToggle.d.ts +3 -0
- package/build/template/components/ThemeToggle.d.ts.map +1 -0
- package/build/template/components/ThemeToggle.jsx +10 -0
- package/build/template/components/ThemeToggle.jsx.map +1 -0
- package/build/template/components/content/$$.d.ts +2 -0
- package/build/template/components/content/$$.d.ts.map +1 -0
- package/build/template/components/content/$$.js +2 -0
- package/build/template/components/content/$$.js.map +1 -0
- package/build/template/components/sidebar/Sidebar.d.ts +2 -2
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts +3 -3
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.jsx +3 -3
- package/build/template/components/sidebar/SidebarItem.jsx.map +1 -1
- package/build/template/contexts/ThemeContext.d.ts +12 -0
- package/build/template/contexts/ThemeContext.d.ts.map +1 -0
- package/build/template/contexts/ThemeContext.jsx +41 -0
- package/build/template/contexts/ThemeContext.jsx.map +1 -0
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.jsx +4 -8
- package/build/template/routes/reference.jsx.map +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.jsx +192 -55
- package/build/template/routes/root.jsx.map +1 -1
- package/build/template/server/app.d.ts.map +1 -1
- package/build/template/server/app.js +2 -21
- package/build/template/server/app.js.map +1 -1
- package/package.json +27 -13
- package/src/api/api.ts +1 -0
- package/src/api/config/configurator.ts +28 -6
- package/src/api/config/load.ts +5 -5
- package/src/api/config-resolver/resolve.ts +2 -2
- package/src/api/content/$$.ts +6 -0
- package/src/api/content/$.test.ts +72 -0
- package/src/api/content/$.ts +1 -0
- package/src/api/content/metadata.ts +11 -0
- package/src/api/content/navbar.test.ts +55 -0
- package/src/api/content/navbar.ts +61 -0
- package/src/api/content/page.ts +12 -0
- package/src/api/content/scan.ts +117 -0
- package/src/api/content/sidebar.test.ts +297 -0
- package/src/api/content/sidebar.ts +283 -0
- package/src/api/content/utils.ts +7 -0
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +1 -1
- package/src/api/singletons/markdown/markdown.test.ts +1 -1
- package/src/api/static/index.ts +1 -0
- package/src/api/static/manifest.test.ts +106 -0
- package/src/api/static/manifest.ts +16 -0
- package/src/api/static/rebase.test.ts +229 -0
- package/src/api/static/rebase.ts +140 -0
- package/src/api/static/static.ts +2 -0
- package/src/api/utils/asset-url/asset-url.test.ts +4 -4
- package/src/api/vite/plugins/branding/index.ts +108 -0
- package/src/api/vite/plugins/build.ts +25 -1
- package/src/api/vite/plugins/core.ts +6 -7
- package/src/api/vite/plugins/main.ts +2 -0
- package/src/api/vite/plugins/pages.ts +131 -207
- package/src/api/vite/plugins/serve.ts +5 -5
- package/src/cli/_/self-contained-mode.ts +5 -5
- package/src/cli/commands/static/$default.ts +43 -0
- package/src/cli/commands/static/rebase.ts +37 -0
- package/src/cli/commands/static.ts +6 -0
- package/src/exports/components.ts +1 -0
- package/src/lib/demos/builder.ts +298 -0
- package/src/lib/demos/config-schema.ts +56 -0
- package/src/lib/demos/config.test.ts +193 -0
- package/src/lib/demos/config.ts +205 -0
- package/src/lib/demos/index.ts +9 -0
- package/src/lib/demos/ui/components.ts +739 -0
- package/src/lib/demos/ui/data-collector.ts +246 -0
- package/src/lib/demos/ui/landing-page-cli.ts +23 -0
- package/src/lib/demos/ui/landing-page.ts +126 -0
- package/src/lib/demos/ui/page-renderer.ts +124 -0
- package/src/lib/demos/utils.ts +43 -0
- package/src/lib/deployment/$$.ts +2 -0
- package/src/lib/deployment/$.test.ts +53 -0
- package/src/lib/deployment/$.ts +1 -0
- package/src/lib/deployment/metadata.ts +40 -0
- package/src/lib/deployment/path-manager.ts +186 -0
- package/src/lib/file-router/file-router.ts +0 -2
- package/src/lib/file-router/linter.test.ts +2 -0
- package/src/lib/file-router/route.ts +2 -0
- package/src/lib/file-router/scan.ts +26 -14
- package/src/lib/github-actions/git-controller.ts +151 -0
- package/src/lib/github-actions/github-actions.ts +6 -0
- package/src/lib/github-actions/index.ts +1 -0
- package/src/lib/github-actions/lib/get-pr-deployments.ts +76 -0
- package/src/lib/github-actions/pr-controller.test.ts +172 -0
- package/src/lib/github-actions/pr-controller.ts +183 -0
- package/src/lib/github-actions/run-step-cli.ts +84 -0
- package/src/lib/github-actions/runner.test.ts +192 -0
- package/src/lib/github-actions/runner.ts +226 -0
- package/src/lib/github-actions/schemas/context.ts +424 -0
- package/src/lib/github-actions/schemas/index.ts +5 -0
- package/src/lib/github-actions/search-module.test.ts +110 -0
- package/src/lib/github-actions/search-module.ts +76 -0
- package/src/lib/github-actions/step.test.ts +149 -0
- package/src/lib/github-actions/step.ts +232 -0
- package/src/lib/helpers.ts +4 -3
- package/src/lib/kit-temp.test-d.ts +115 -0
- package/src/lib/kit-temp.test.ts +127 -0
- package/src/lib/kit-temp.ts +128 -14
- package/src/lib/mask/$$.ts +2 -0
- package/src/lib/mask/$.test.ts +248 -0
- package/src/lib/mask/$.ts +1 -0
- package/src/lib/mask/apply.ts +134 -0
- package/src/lib/mask/mask.test-d.ts +144 -0
- package/src/lib/mask/mask.ts +244 -0
- package/src/lib/mutation-type.ts +20 -0
- package/src/lib/shiki/shiki.test.ts +1 -1
- package/src/lib/task/$$.ts +2 -0
- package/src/lib/task/$.test.ts +209 -0
- package/src/lib/task/$.ts +1 -0
- package/src/lib/task/report.ts +72 -0
- package/src/lib/task/task.ts +112 -0
- package/src/lib/version-history/index.test.ts +196 -0
- package/src/lib/version-history/index.ts +4 -0
- package/src/lib/version-history/types.ts +68 -0
- package/src/lib/version-history/version-history.ts +293 -0
- package/src/project-data.ts +0 -1
- package/src/sandbox.ts +20 -0
- package/src/singletons/debug.ts +1 -1
- package/src/template/components/CodeBlockEnhancer.tsx +192 -0
- package/src/template/components/HamburgerMenu.tsx +96 -0
- package/src/template/components/Link.tsx +1 -1
- package/src/template/components/Logo.tsx +46 -0
- package/src/template/components/NotFound.tsx +28 -0
- package/src/template/components/ThemeToggle.tsx +21 -0
- package/src/template/components/content/$$.ts +1 -0
- package/src/template/components/sidebar/Sidebar.tsx +2 -2
- package/src/template/components/sidebar/SidebarItem.tsx +12 -12
- package/src/template/contexts/ThemeContext.tsx +60 -0
- package/src/template/routes/reference.tsx +4 -8
- package/src/template/routes/root.tsx +216 -76
- package/src/template/server/app.ts +2 -27
- package/build/lib/file-router/scan-tree.d.ts +0 -20
- package/build/lib/file-router/scan-tree.d.ts.map +0 -1
- package/build/lib/file-router/scan-tree.js +0 -158
- package/build/lib/file-router/scan-tree.js.map +0 -1
- package/build/lib/file-router/sidebar/index.d.ts +0 -3
- package/build/lib/file-router/sidebar/index.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/index.js +0 -4
- package/build/lib/file-router/sidebar/index.js.map +0 -1
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts +0 -9
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/sidebar-tree.js +0 -85
- package/build/lib/file-router/sidebar/sidebar-tree.js.map +0 -1
- package/build/lib/file-router/sidebar/types.d.ts +0 -17
- package/build/lib/file-router/sidebar/types.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/types.js +0 -2
- package/build/lib/file-router/sidebar/types.js.map +0 -1
- package/build/lib/tree/index.d.ts +0 -3
- package/build/lib/tree/index.d.ts.map +0 -1
- package/build/lib/tree/index.js +0 -2
- package/build/lib/tree/index.js.map +0 -1
- package/build/lib/tree/tree.d.ts +0 -62
- package/build/lib/tree/tree.d.ts.map +0 -1
- package/build/lib/tree/tree.js +0 -134
- package/build/lib/tree/tree.js.map +0 -1
- package/src/lib/file-router/scan-tree.test.ts +0 -189
- package/src/lib/file-router/scan-tree.ts +0 -205
- package/src/lib/file-router/sidebar/index.ts +0 -3
- package/src/lib/file-router/sidebar/sidebar-tree.test.ts +0 -123
- package/src/lib/file-router/sidebar/sidebar-tree.ts +0 -110
- package/src/lib/file-router/sidebar/types.ts +0 -19
- package/src/lib/tree/index.ts +0 -2
- package/src/lib/tree/tree.test.ts +0 -117
- package/src/lib/tree/tree.ts +0 -183
package/README.md
CHANGED
@@ -2,34 +2,33 @@
|
|
2
2
|
|
3
3
|
A framework for delightful GraphQL developer portals
|
4
4
|
|
5
|
-
##
|
5
|
+
## What is Polen?
|
6
6
|
|
7
|
-
|
8
|
-
npm add polen
|
9
|
-
```
|
7
|
+
Polen transforms your GraphQL schema into a beautiful, interactive developer portal with zero configuration. It automatically generates:
|
10
8
|
|
11
|
-
|
9
|
+
- 📖 **Schema Reference** - Interactive documentation for all types, fields, and operations
|
10
|
+
- 📝 **Changelog** - Track schema evolution over time
|
11
|
+
- 📄 **Custom Pages** - Add guides, tutorials, and API documentation with Markdown/MDX
|
12
|
+
- 🎨 **Beautiful UI** - Modern, responsive design out of the box
|
13
|
+
- 🚀 **Instant Deploy** - Static site generation for easy hosting anywhere
|
12
14
|
|
13
|
-
|
15
|
+
## Quick Start
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
```
|
17
|
+
```sh
|
18
|
+
# Install Polen
|
19
|
+
npm add polen
|
20
20
|
|
21
|
-
|
21
|
+
# Create a GraphQL schema file
|
22
|
+
echo "type Query { hello: String }" > schema.graphql
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
```
|
24
|
+
# Build your developer portal
|
25
|
+
npx polen build
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
# Preview locally
|
28
|
+
node build/app.js
|
29
|
+
```
|
29
30
|
|
30
|
-
|
31
|
-
node build/app.js
|
32
|
-
```
|
31
|
+
Visit http://localhost:3001 to see your developer portal!
|
33
32
|
|
34
33
|
## Live Demos
|
35
34
|
|
@@ -42,363 +41,49 @@ Featured examples:
|
|
42
41
|
- **[Pokemon GraphQL API](https://the-guild-org.github.io/polen/latest/pokemon/)** - Explore a fun GraphQL API with rich schema documentation
|
43
42
|
- **GitHub GraphQL API** (Coming soon) - Browse GitHub's extensive GraphQL API documentation
|
44
43
|
|
45
|
-
|
46
|
-
|
47
|
-
Our demos are available at different stability levels, matching npm's dist tags:
|
48
|
-
|
49
|
-
- **Stable Release** (`latest`): [/polen/latest/pokemon](https://the-guild-org.github.io/polen/latest/pokemon/)
|
50
|
-
- The most recent stable version (e.g., `1.0.0`)
|
51
|
-
- Same as `npm install polen`
|
44
|
+
## Documentation
|
52
45
|
|
53
|
-
- **
|
54
|
-
|
55
|
-
|
46
|
+
- **[Getting Started](./docs/getting-started.md)** - Installation and quick start guide
|
47
|
+
- **[Schema Configuration](./docs/guide/schema.md)** - Configure your GraphQL schema
|
48
|
+
- **[Custom Pages](./docs/guide/pages.md)** - Add documentation with Markdown and MDX
|
49
|
+
- **[Build & Deploy](./docs/guide/build.md)** - Build configuration and deployment options
|
50
|
+
- **[CLI Reference](./docs/cli/index.md)** - All available commands
|
51
|
+
- **[Package API](./docs/api/package.md)** - Programmatic usage
|
56
52
|
|
57
|
-
|
58
|
-
- e.g., [/polen/1.0.0/pokemon](https://the-guild-org.github.io/polen/1.0.0/pokemon/)
|
59
|
-
- Same as `npm install polen@1.0.0`
|
53
|
+
### Features
|
60
54
|
|
61
|
-
|
62
|
-
|
55
|
+
- **[Static Rebase](./docs/features/static-rebase.md)** - Update base paths without rebuilding
|
56
|
+
- **[Syntax Highlighting](./docs/features/syntax-highlighting.md)** - Beautiful code blocks with language support
|
63
57
|
|
64
58
|
## Examples
|
65
59
|
|
66
|
-
Find
|
67
|
-
|
68
|
-
## Guide
|
69
|
-
|
70
|
-
### Schema Reference
|
71
|
-
|
72
|
-
If you [provide Polen with a schema](#providing-a-schema), Polen will
|
73
|
-
automatically render reference documentation for it.
|
74
|
-
|
75
|
-
If you provide multiple versions of your schema then the reference is based on
|
76
|
-
the schema with the latest date.
|
77
|
-
|
78
|
-
### Schema Changelog
|
79
|
-
|
80
|
-
Polen can render a changelog for your schema.
|
81
|
-
|
82
|
-
This feature is automatically enabled when you provide multiple versions of your
|
83
|
-
schema. Refer to [Provide a Schema](#providing-a-schema) for details on how to
|
84
|
-
do that.
|
85
|
-
|
86
|
-
### Schema Augmentations
|
87
|
-
|
88
|
-
#### Descriptions
|
89
|
-
|
90
|
-
You can append/prepend/replace descriptions of types and fields in your schema.
|
91
|
-
|
92
|
-
Any Markdown syntax in your content will be automatically rendered.
|
93
|
-
|
94
|
-
```ts
|
95
|
-
import { Polen } from 'polen'
|
96
|
-
|
97
|
-
export default Polen.defineConfig({
|
98
|
-
templateVariables: {
|
99
|
-
title: `Pokemon Developer Portal`,
|
100
|
-
},
|
101
|
-
schemaAugmentations: [
|
102
|
-
{
|
103
|
-
type: `description`,
|
104
|
-
on: {
|
105
|
-
type: `TargetType`,
|
106
|
-
name: `Query`,
|
107
|
-
},
|
108
|
-
placement: `over`,
|
109
|
-
content:
|
110
|
-
`**Content from [Polen](https://github.com/the-guild-org/polen)**.`,
|
111
|
-
},
|
112
|
-
],
|
113
|
-
})
|
114
|
-
```
|
115
|
-
|
116
|
-
### Providing a Schema
|
117
|
-
|
118
|
-
You can provide a GraphQL schema to Polen in various ways.
|
119
|
-
|
120
|
-
#### File
|
121
|
-
|
122
|
-
Have a single `schema.graphql` SDL file in your project directory. Example:
|
123
|
-
|
124
|
-
```
|
125
|
-
schema.graphql
|
126
|
-
```
|
127
|
-
|
128
|
-
#### Directory
|
129
|
-
|
130
|
-
Have a `schema` directory in your project directory with multiple versions of
|
131
|
-
your schema as SDL files named using format: `YYYY-MM-DD.graphql`. Example:
|
132
|
-
|
133
|
-
```
|
134
|
-
schema/
|
135
|
-
2023-01-13.graphql
|
136
|
-
2020-09-26.graphql
|
137
|
-
```
|
138
|
-
|
139
|
-
This approach allows Polen to render a changelog for your schema. Refer to
|
140
|
-
[Changelog](#changelog).
|
141
|
-
|
142
|
-
#### Memory
|
143
|
-
|
144
|
-
You can provide a schema to Polen in memory via configuration.
|
145
|
-
|
146
|
-
You have control to provide one or multiple schemas, with or without dates.
|
147
|
-
|
148
|
-
If no dates are given then the current time is assumed.
|
149
|
-
|
150
|
-
If you provide multiple versions then Polen can render a changelog for you.
|
151
|
-
Refer to [Changelog](#changelog).
|
152
|
-
|
153
|
-
Basic example:
|
154
|
-
|
155
|
-
```ts
|
156
|
-
// polen.config.ts
|
157
|
-
import { Polen } from 'polen'
|
158
|
-
|
159
|
-
export default Polen.defineConfig({
|
160
|
-
schema: {
|
161
|
-
useDataSources: `memory`,
|
162
|
-
dataSources: {
|
163
|
-
memory: {
|
164
|
-
versions: [
|
165
|
-
{
|
166
|
-
date: new Date('2023-01-13'),
|
167
|
-
value: `type Query { hello: String }`,
|
168
|
-
},
|
169
|
-
],
|
170
|
-
},
|
171
|
-
},
|
172
|
-
},
|
173
|
-
})
|
174
|
-
```
|
175
|
-
|
176
|
-
### Pages
|
177
|
-
|
178
|
-
You can add pages to your developer portal by adding markdown (`.md`) or MDX (`.mdx`) files to a
|
179
|
-
`pages` directory.
|
180
|
-
|
181
|
-
#### Routing
|
182
|
-
|
183
|
-
- A file becomes a page.
|
184
|
-
- The relative (to `pages` directory) file path becomes the web path.
|
185
|
-
- _Navigation Bar_
|
186
|
-
- Top level pages are listed in the navigation bar.
|
187
|
-
- _Index Pages_
|
188
|
-
- A file named `index` is an index page.
|
189
|
-
- The file name is elided in the route. For example `foo/index.md` becomes
|
190
|
-
route `/foo` .
|
191
|
-
- Details:
|
192
|
-
- If both `foo/index.md` and `foo.md` exist, then the former is used, latter
|
193
|
-
ignored, and a warning is raised.
|
194
|
-
|
195
|
-
Example:
|
196
|
-
|
197
|
-
| File | Route | Navigation Bar Title |
|
198
|
-
| --------------------- | ---------- | -------------------- |
|
199
|
-
| `pages/foo.md` | `/foo` | `Foo` |
|
200
|
-
| `pages/foo.mdx` | `/foo` | `Foo` |
|
201
|
-
| `pages/foo/index.md` | `/foo` | `Foo` |
|
202
|
-
| `pages/foo/index.mdx` | `/foo` | `Foo` |
|
203
|
-
| `pages/foo/bar.md` | `/foo/bar` | `Foo` |
|
204
|
-
| `pages/foo/bar.mdx` | `/foo/bar` | `Foo` |
|
205
|
-
|
206
|
-
#### Page Ordering
|
207
|
-
|
208
|
-
You can control the order of pages in the sidebar by prefixing file names with numbers followed by `_` or `-`. The numeric prefix affects only the sidebar ordering - it does not appear in the page URL or title.
|
209
|
-
|
210
|
-
- _Syntax_
|
211
|
-
- Format: `<number>_<name>.md` or `<number>-<name>.md`
|
212
|
-
- Examples: `01_intro.md`, `10_getting-started.md`, `20-configuration.md`
|
213
|
-
- _Ordering_
|
214
|
-
- Pages with numeric prefixes appear before pages without prefixes
|
215
|
-
- Pages are sorted by their numeric value (not alphabetically)
|
216
|
-
- Pages without prefixes are sorted alphabetically after numbered pages
|
217
|
-
- _Collisions_
|
218
|
-
- If multiple files have the same name after removing the prefix (e.g., `10_about.md` and `20_about.md`), the file with the higher number is used
|
219
|
-
- A warning is shown for collision conflicts
|
220
|
-
|
221
|
-
Example:
|
222
|
-
|
223
|
-
| File | Route | Sidebar Title | Order |
|
224
|
-
| ----------------------------- | ------------------ | ----------------- | ----- |
|
225
|
-
| `pages/10_getting-started.md` | `/getting-started` | `Getting Started` | 1st |
|
226
|
-
| `pages/20_configuration.md` | `/configuration` | `Configuration` | 2nd |
|
227
|
-
| `pages/30_advanced.md` | `/advanced` | `Advanced` | 3rd |
|
228
|
-
| `pages/api-reference.md` | `/api-reference` | `Api Reference` | 4th |
|
229
|
-
| `pages/troubleshooting.md` | `/troubleshooting` | `Troubleshooting` | 5th |
|
230
|
-
|
231
|
-
#### Markdown
|
232
|
-
|
233
|
-
Markdown files (`.md`) are supported using [remark](https://remark.js.org/). This is the same underlying engine as [MDX](https://mdxjs.com/) thus you can rely on consistent behavior between your `.md` and `.mdx` files.
|
60
|
+
Find complete example projects in the [examples](./examples) directory:
|
234
61
|
|
235
|
-
|
62
|
+
- `pokemon` - Fun Pokemon API documentation
|
63
|
+
- `github` - GitHub GraphQL API (coming soon)
|
64
|
+
- `minimal` - Minimal setup example
|
236
65
|
|
237
|
-
|
238
|
-
- [GitHub Flavored Markdown](https://github.github.com/gfm/).
|
66
|
+
## Why Polen?
|
239
67
|
|
240
|
-
|
68
|
+
- **Zero Configuration** - Works out of the box with just a GraphQL schema
|
69
|
+
- **Developer Focused** - Built specifically for GraphQL API documentation
|
70
|
+
- **Modern Stack** - React, TypeScript, and Vite for fast builds
|
71
|
+
- **Flexible** - Customize everything from branding to page structure
|
72
|
+
- **Static or Server** - Deploy as static files or run as a Node.js server
|
241
73
|
|
242
|
-
|
74
|
+
## Contributing
|
243
75
|
|
244
|
-
|
245
|
-
- **[Markdown Guide](https://www.markdownguide.org/)** - Comprehensive reference and cheat sheets
|
246
|
-
- **[GitHub's Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)** - Practical guide with examples
|
247
|
-
|
248
|
-
Syntax features available to you include:
|
249
|
-
|
250
|
-
**Via CommonMark:**
|
251
|
-
|
252
|
-
- Headers, paragraphs, and line breaks
|
253
|
-
- Bold, italic, and code formatting
|
254
|
-
- Lists (ordered and unordered)
|
255
|
-
- Links and images
|
256
|
-
- Code blocks with syntax highlighting
|
257
|
-
- Blockquotes
|
258
|
-
- Horizontal rules
|
259
|
-
|
260
|
-
**Via GitHub Flavored Markdown:**
|
261
|
-
|
262
|
-
- Tables
|
263
|
-
- Task lists
|
264
|
-
- Strikethrough text
|
265
|
-
- Autolinks
|
266
|
-
|
267
|
-
#### MDX
|
268
|
-
|
269
|
-
MDX begins where [Markdown](#markdown) ends. So everything stated there such as regarding supported Markdown flavours applies here too.
|
270
|
-
|
271
|
-
MDX files (`.mdx`) allow you to use JSX/React components within your markdown content. This enables
|
272
|
-
interactive documentation with live examples, custom components, and more.
|
273
|
-
|
274
|
-
Example MDX page:
|
275
|
-
|
276
|
-
```mdx
|
277
|
-
# Interactive Documentation
|
278
|
-
|
279
|
-
import { Button } from "@radix-ui/themes";
|
280
|
-
|
281
|
-
This page demonstrates MDX features.
|
282
|
-
|
283
|
-
<Button onClick={() => alert("Hello from MDX!")}>Click me!</Button>
|
284
|
-
|
285
|
-
## Code Examples
|
286
|
-
|
287
|
-
You can mix markdown with React components for powerful documentation:
|
288
|
-
|
289
|
-
export const CodeExample = ({ language, code }) => (
|
290
|
-
<pre>
|
291
|
-
<code className={`language-${language}`}>{code}</code>
|
292
|
-
</pre>
|
293
|
-
);
|
294
|
-
|
295
|
-
<CodeExample
|
296
|
-
language="graphql"
|
297
|
-
code={`
|
298
|
-
query GetUser($id: ID!) {
|
299
|
-
user(id: $id) {
|
300
|
-
name
|
301
|
-
email
|
302
|
-
}
|
303
|
-
}
|
304
|
-
`}
|
305
|
-
/>
|
306
|
-
```
|
307
|
-
|
308
|
-
### Build
|
309
|
-
|
310
|
-
When you build you may choose between SSG and SSR. The default is SSG.
|
311
|
-
|
312
|
-
#### SSG
|
313
|
-
|
314
|
-
```sh
|
315
|
-
npx polen build --type ssg
|
316
|
-
```
|
317
|
-
|
318
|
-
Deploy the contents of the `./build` directory on your favourite static site provider.
|
319
|
-
|
320
|
-
#### SSR
|
321
|
-
|
322
|
-
In the future Polen will have features that motivate using a server, but for now there is no particular benefit. Use `SSG` instead.
|
323
|
-
|
324
|
-
#### Base Path Configuration
|
325
|
-
|
326
|
-
Polen supports deploying to subdirectories through the `build.base` configuration option. This is useful for:
|
327
|
-
|
328
|
-
- GitHub Pages project sites (e.g., `/my-project/`)
|
329
|
-
- PR preview deployments (e.g., `/pr-123/`)
|
330
|
-
- Hosting multiple Polen sites on one domain
|
331
|
-
|
332
|
-
```ts
|
333
|
-
// polen.config.ts
|
334
|
-
import { Polen } from 'polen'
|
335
|
-
|
336
|
-
export default Polen.defineConfig({
|
337
|
-
build: {
|
338
|
-
base: '/my-project/', // Must start and end with /
|
339
|
-
},
|
340
|
-
})
|
341
|
-
```
|
342
|
-
|
343
|
-
When configured, Polen will output differently:
|
344
|
-
|
345
|
-
- For SSG architecture:
|
346
|
-
- Generate static files that work in the subdirectory
|
347
|
-
- For SSR architecture:
|
348
|
-
- A server that serves static assets from the correct path
|
349
|
-
|
350
|
-
You can also set the base path via CLI:
|
351
|
-
|
352
|
-
```bash
|
353
|
-
npx polen build --base /my-project/
|
354
|
-
npx polen dev --base /my-project/
|
355
|
-
```
|
356
|
-
|
357
|
-
The CLI flag takes precedence over the config file setting.
|
358
|
-
|
359
|
-
### Package
|
360
|
-
|
361
|
-
#### ESM
|
362
|
-
|
363
|
-
Polen is an ESM only package. If you are using CJS, then you need
|
364
|
-
[NodeJS version `>=22.0.0` to `require` it](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require).
|
365
|
-
|
366
|
-
#### Exports
|
367
|
-
|
368
|
-
You can import a `Polen` namespace from `polen`. You can import its bare exports
|
369
|
-
from `polen/polen`.
|
370
|
-
|
371
|
-
```ts
|
372
|
-
import { Polen } from 'polen'
|
373
|
-
import { defineConfig } from 'polen/polen'
|
374
|
-
|
375
|
-
console.log(Polen.defineConfig === defineConfig) // true
|
376
|
-
```
|
377
|
-
|
378
|
-
### Instant Schema Explorer
|
379
|
-
|
380
|
-
Polen comes with a light-weight command to instantly view any GraphQL schema.
|
381
|
-
|
382
|
-
Example:
|
383
|
-
|
384
|
-
```sh
|
385
|
-
npx polen open --name github
|
386
|
-
```
|
387
|
-
|
388
|
-
See docs for more details
|
389
|
-
|
390
|
-
```sh
|
391
|
-
npx polen open --help
|
392
|
-
```
|
76
|
+
We welcome contributions! See [DEVELOPMENT.md](./DEVELOPMENT.md) for:
|
393
77
|
|
394
|
-
|
78
|
+
- Development setup
|
79
|
+
- Architecture overview
|
80
|
+
- Testing guidelines
|
81
|
+
- Contribution process
|
395
82
|
|
396
|
-
|
83
|
+
## Changelog
|
397
84
|
|
398
|
-
|
399
|
-
[releases on this repo](https://github.com/the-guild-org/polen/releases).
|
85
|
+
See [releases](https://github.com/the-guild-org/polen/releases) for a detailed changelog.
|
400
86
|
|
401
|
-
|
87
|
+
## License
|
402
88
|
|
403
|
-
|
404
|
-
[DEVELOPMENT.md](./DEVELOPMENT.md) for details about workflow, testing, etc.
|
89
|
+
MIT © [The Guild](https://the-guild.dev)
|
package/build/api/api.d.ts
CHANGED
package/build/api/api.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA"}
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
package/build/api/api.js
CHANGED
package/build/api/api.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA"}
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Vite } from '#dep/vite/index';
|
2
|
+
import { type PackagePaths } from '#package-paths';
|
2
3
|
import { z } from 'zod';
|
3
4
|
import type { SchemaAugmentation } from '../../api/schema-augmentation/index.ts';
|
4
|
-
import { type PackagePaths } from '../../package-paths.ts';
|
5
5
|
import type { Schema } from '../schema/index.ts';
|
6
6
|
export declare const BuildArchitectureEnum: {
|
7
7
|
readonly ssg: "ssg";
|
@@ -144,6 +144,10 @@ export interface Config {
|
|
144
144
|
};
|
145
145
|
};
|
146
146
|
pages: string;
|
147
|
+
public: {
|
148
|
+
root: string;
|
149
|
+
logo: string;
|
150
|
+
};
|
147
151
|
};
|
148
152
|
absolute: {
|
149
153
|
build: {
|
@@ -152,6 +156,10 @@ export interface Config {
|
|
152
156
|
serverEntrypoint: string;
|
153
157
|
};
|
154
158
|
pages: string;
|
159
|
+
public: {
|
160
|
+
root: string;
|
161
|
+
logo: string;
|
162
|
+
};
|
155
163
|
};
|
156
164
|
};
|
157
165
|
framework: PackagePaths;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,gBAAgB,CAAA;AAEhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAA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
import { assertPathAbsolute } from '#lib/kit-temp';
|
2
|
+
import { packagePaths } from '#package-paths';
|
2
3
|
import { Path } from '@wollybeard/kit';
|
3
4
|
import { z } from 'zod';
|
4
|
-
import { packagePaths } from "../../package-paths.js";
|
5
5
|
export const BuildArchitectureEnum = {
|
6
6
|
ssg: `ssg`,
|
7
7
|
spa: `spa`,
|
@@ -11,7 +11,11 @@ export const BuildArchitecture = z.nativeEnum(BuildArchitectureEnum);
|
|
11
11
|
const buildPaths = (rootDir) => {
|
12
12
|
if (!Path.isAbsolute(rootDir))
|
13
13
|
throw new Error(`Root dir path must be absolute: ${rootDir}`);
|
14
|
-
const
|
14
|
+
const rootAbsolute = Path.ensureAbsoluteWith(rootDir);
|
15
|
+
const buildAbsolutePath = rootAbsolute(`build`);
|
16
|
+
const buildAbsolute = Path.ensureAbsoluteWith(buildAbsolutePath);
|
17
|
+
const publicAbsolutePath = rootAbsolute(`public`);
|
18
|
+
const publicAbsolute = Path.ensureAbsoluteWith(publicAbsolutePath);
|
15
19
|
return {
|
16
20
|
project: {
|
17
21
|
rootDir,
|
@@ -24,14 +28,22 @@ const buildPaths = (rootDir) => {
|
|
24
28
|
},
|
25
29
|
},
|
26
30
|
pages: `pages`,
|
31
|
+
public: {
|
32
|
+
root: 'public',
|
33
|
+
logo: 'logo.svg',
|
34
|
+
},
|
27
35
|
},
|
28
36
|
absolute: {
|
37
|
+
pages: rootAbsolute(`pages`),
|
29
38
|
build: {
|
30
|
-
root:
|
31
|
-
serverEntrypoint:
|
32
|
-
assets:
|
39
|
+
root: buildAbsolute('.'),
|
40
|
+
serverEntrypoint: buildAbsolute(`app.js`),
|
41
|
+
assets: buildAbsolute(`assets`),
|
42
|
+
},
|
43
|
+
public: {
|
44
|
+
root: publicAbsolute('.'),
|
45
|
+
logo: publicAbsolute('logo.svg'),
|
33
46
|
},
|
34
|
-
pages: ensureAbsolute(`pages`),
|
35
47
|
},
|
36
48
|
},
|
37
49
|
framework: packagePaths,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,
|
1
|
+
{"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAqB,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAA;AAEV,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAA;AA8GpE,MAAM,UAAU,GAAG,CAAC,OAAe,EAAmB,EAAE;IACtD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,OAAO,EAAE,CAAC,CAAA;IAC5F,MAAM,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAErD,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAC/C,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IAEhE,MAAM,kBAAkB,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACjD,MAAM,cAAc,GAAG,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IAClE,OAAO;QACL,OAAO,EAAE;YACP,OAAO;YACP,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb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/config/load.js
CHANGED
@@ -8,7 +8,7 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
8
8
|
};
|
9
9
|
import { assertOptionalPathAbsolute, pickFirstPathExisting } from '#lib/kit-temp';
|
10
10
|
import { packagePaths } from '#package-paths';
|
11
|
-
import {
|
11
|
+
import { debugPolen } from '#singletons/debug';
|
12
12
|
import { Path } from '@wollybeard/kit';
|
13
13
|
import * as Module from 'node:module';
|
14
14
|
export const fileNameBases = [`polen.config`, `.polen.config`];
|
@@ -18,7 +18,7 @@ export const fileNameExtensions = [...fileNameExtensionsTypeScript, ...fileNameE
|
|
18
18
|
export const fileNames = fileNameBases.flatMap(base => fileNameExtensions.map(ext => `${base}${ext}`));
|
19
19
|
let isSelfContainedModeRegistered = false;
|
20
20
|
export const load = async (options) => {
|
21
|
-
const
|
21
|
+
const debug = debugPolen.sub(`load`);
|
22
22
|
assertOptionalPathAbsolute(options.dir);
|
23
23
|
//
|
24
24
|
// ━━ Enable Self-Contained Mode
|
@@ -31,7 +31,7 @@ export const load = async (options) => {
|
|
31
31
|
const initializeData = {
|
32
32
|
projectDirPathExp: options.dir,
|
33
33
|
};
|
34
|
-
|
34
|
+
debug(`register node module hooks`, { data: initializeData });
|
35
35
|
// TODO: would be simpler to use sync hooks
|
36
36
|
// https://nodejs.org/api/module.html#synchronous-hooks-accepted-by-moduleregisterhooks
|
37
37
|
// Requires NodeJS 22.15+ -- which is not working with PW until its next release.
|
@@ -61,7 +61,7 @@ export const load = async (options) => {
|
|
61
61
|
// eslint-disable-next-line
|
62
62
|
module = await import(__rewriteRelativeImportExtension(filePath, true));
|
63
63
|
}
|
64
|
-
|
64
|
+
debug(`imported config module`);
|
65
65
|
// // Use dynamic import with file URL to support Windows
|
66
66
|
// const configUrl = pathToFileURL(configPath).href
|
67
67
|
// todo: report errors nicely if this fails
|
@@ -82,7 +82,7 @@ export const load = async (options) => {
|
|
82
82
|
configInput.advanced ??= {};
|
83
83
|
configInput.advanced.isSelfContainedMode = true;
|
84
84
|
}
|
85
|
-
|
85
|
+
debug(`loaded config input`, configInput);
|
86
86
|
return configInput;
|
87
87
|
};
|
88
88
|
//# sourceMappingURL=load.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../src/api/config/load.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../src/api/config/load.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;AAC9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAC1E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAG,4BAA4B,EAAE,GAAG,4BAA4B,CAAC,CAAA;AACpG,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC,CAAA;AAMtG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I,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACjE,8CAA8C;YAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;YAChD,2BAA2B;YAC3B,MAAM,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACpD,CAAC;aAAM,CAAC;YACN,2BAA2B;YAC3B,MAAM,GAAG,MAAM,MAAM,kCAAC,QAAQ,QAAC,CAAA;QACjC,CAAC;QACD,KAAK,CAAC,wBAAwB,CAAC,CAAA;QAE/B,+DAA+D;QAC/D,yDAAyD;QAEzD,2CAA2C;QAC3C,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;QAEnE,oCAAoC;QAEpC,6BAA6B;QAC7B,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,6BAA6B,QAAQ,qFAAqF,CAC3H,CAAA;QACH,CAAC;QACD,WAAW,GAAG,mBAAmB,CAAA;IACnC,CAAC;IAED,EAAE;IACF,8CAA8C;IAC9C,EAAE;IACF,8EAA8E;IAC9E,oEAAoE;IAEpE,IAAI,0BAA0B,EAAE,CAAC;QAC/B,WAAW,CAAC,QAAQ,KAAK,EAAE,CAAA;QAC3B,WAAW,CAAC,QAAQ,CAAC,mBAAmB,GAAG,IAAI,CAAA;IACjD,CAAC;IAED,KAAK,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAA;IAEzC,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { debugPolen } from '#singletons/debug';
|
2
2
|
import { normalizeInput } from "../config/configurator.js";
|
3
3
|
import { load } from "../config/load.js";
|
4
4
|
import { mergeInputs } from "../config/merge.js";
|
@@ -7,7 +7,7 @@ export const fromFile = async (options) => {
|
|
7
7
|
const configInput = await load(options);
|
8
8
|
const configInputMerged = mergeInputs(configInput, options.overrides);
|
9
9
|
const config = await fromMemory(configInputMerged, options.dir);
|
10
|
-
|
10
|
+
debugPolen(`resolved config`, config);
|
11
11
|
return config;
|
12
12
|
};
|
13
13
|
export const fromMemory = async (input,
|