reroute-js 1.0.0-alpha.3 → 1.0.0-alpha.30
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 +8 -3
- package/cli/bin.d.ts +1 -1
- package/cli/bin.js +2701 -1078
- package/cli/bin.js.map +54 -43
- package/cli/index.d.ts +1 -1
- package/cli/index.js +661 -45
- package/cli/index.js.map +56 -7
- package/cli/src/cli.d.ts +1 -1
- package/cli/src/commands/analyze.d.ts +1 -1
- package/cli/src/commands/analyze.d.ts.map +1 -1
- package/cli/src/commands/build.d.ts +6 -3
- package/cli/src/commands/build.d.ts.map +1 -1
- package/cli/src/commands/dev.d.ts +6 -6
- package/cli/src/commands/dev.d.ts.map +1 -1
- package/cli/src/commands/gen.d.ts +4 -1
- package/cli/src/commands/gen.d.ts.map +1 -1
- package/cli/src/commands/index.d.ts +1 -1
- package/cli/src/commands/init.d.ts +1 -1
- package/cli/src/commands/lib/assets.d.ts +1 -1
- package/cli/src/commands/lib/bundler.d.ts +7 -1
- package/cli/src/commands/lib/bundler.d.ts.map +1 -1
- package/cli/src/commands/lib/command.d.ts +1 -1
- package/cli/src/commands/lib/env.d.ts +4 -3
- package/cli/src/commands/lib/env.d.ts.map +1 -1
- package/cli/src/commands/lib/images.d.ts +12 -0
- package/cli/src/commands/lib/images.d.ts.map +1 -0
- package/cli/src/commands/lib/index.d.ts +1 -1
- package/cli/src/commands/lib/log.d.ts +1 -1
- package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
- package/cli/src/commands/lib/markdown/index.d.ts +1 -1
- package/cli/src/commands/lib/markdown/processor.d.ts +11 -1
- package/cli/src/commands/lib/markdown/processor.d.ts.map +1 -1
- package/cli/src/commands/lib/prerender.d.ts +40 -0
- package/cli/src/commands/lib/prerender.d.ts.map +1 -0
- package/cli/src/commands/lib/production.d.ts +3 -3
- package/cli/src/commands/lib/production.d.ts.map +1 -1
- package/cli/src/commands/lib/server.d.ts +2 -1
- package/cli/src/commands/lib/server.d.ts.map +1 -1
- package/cli/src/commands/lib/static.d.ts +86 -0
- package/cli/src/commands/lib/static.d.ts.map +1 -0
- package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
- package/cli/src/commands/lib/streaming/suspense.d.ts +2 -2
- package/cli/src/commands/lib/streaming/suspense.d.ts.map +1 -1
- package/cli/src/commands/lib/supervise.d.ts +23 -0
- package/cli/src/commands/lib/supervise.d.ts.map +1 -0
- package/cli/src/commands/lib/terminal-ui.d.ts +2 -2
- package/cli/src/commands/lib/terminal-ui.d.ts.map +1 -1
- package/cli/src/commands/lib/theme.d.ts +9 -4
- package/cli/src/commands/lib/theme.d.ts.map +1 -1
- package/cli/src/commands/lib/version.d.ts +1 -1
- package/cli/src/commands/lib/watch.d.ts +37 -0
- package/cli/src/commands/lib/watch.d.ts.map +1 -0
- package/cli/src/commands/og.d.ts +1 -1
- package/cli/src/commands/og.d.ts.map +1 -1
- package/cli/src/commands/start.d.ts +2 -2
- package/cli/src/commands/start.d.ts.map +1 -1
- package/cli/src/commands/static-render.d.ts +18 -0
- package/cli/src/commands/static-render.d.ts.map +1 -0
- package/cli/src/index.d.ts +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +798 -295
- package/core/index.js.map +30 -27
- package/core/src/app-paths.d.ts +32 -0
- package/core/src/app-paths.d.ts.map +1 -0
- package/core/src/bundler/hash.d.ts +1 -1
- package/core/src/bundler/index.d.ts +1 -1
- package/core/src/config.d.ts +98 -7
- package/core/src/config.d.ts.map +1 -1
- package/core/src/content/discovery.d.ts +1 -1
- package/core/src/content/index.d.ts +1 -1
- package/core/src/content/metadata.d.ts +1 -1
- package/core/src/i18n/catalog.d.ts +1 -1
- package/core/src/i18n/discover.d.ts +1 -1
- package/core/src/i18n/index.d.ts +1 -1
- package/core/src/i18n/messages.d.ts +1 -1
- package/core/src/i18n/negotiate.d.ts +1 -1
- package/core/src/i18n/pathname.d.ts +1 -1
- package/core/src/i18n/pathname.d.ts.map +1 -1
- package/core/src/i18n/resolve.d.ts +4 -3
- package/core/src/i18n/resolve.d.ts.map +1 -1
- package/core/src/i18n/types.d.ts +5 -1
- package/core/src/i18n/types.d.ts.map +1 -1
- package/core/src/image.d.ts +29 -0
- package/core/src/image.d.ts.map +1 -0
- package/core/src/index.d.ts +3 -1
- package/core/src/index.d.ts.map +1 -1
- package/core/src/llms/discovery.d.ts +35 -0
- package/core/src/llms/discovery.d.ts.map +1 -0
- package/core/src/llms/extractor.d.ts +6 -1
- package/core/src/llms/extractor.d.ts.map +1 -1
- package/core/src/llms/formatter.d.ts +1 -1
- package/core/src/llms/formatter.d.ts.map +1 -1
- package/core/src/llms/full-generator.d.ts +3 -1
- package/core/src/llms/full-generator.d.ts.map +1 -1
- package/core/src/llms/index-generator.d.ts +6 -3
- package/core/src/llms/index-generator.d.ts.map +1 -1
- package/core/src/llms/index.d.ts +5 -2
- package/core/src/llms/index.d.ts.map +1 -1
- package/core/src/og/discovery.d.ts +8 -1
- package/core/src/og/discovery.d.ts.map +1 -1
- package/core/src/og/index.d.ts +1 -1
- package/core/src/og/meta.d.ts +1 -1
- package/core/src/og/render.d.ts +1 -1
- package/core/src/og/types.d.ts +1 -1
- package/core/src/robots/discovery.d.ts +1 -1
- package/core/src/robots/generator.d.ts +1 -1
- package/core/src/robots/generator.d.ts.map +1 -1
- package/core/src/robots/index.d.ts +1 -1
- package/core/src/robots/policies.d.ts +1 -1
- package/core/src/rss/discovery.d.ts +2 -2
- package/core/src/rss/discovery.d.ts.map +1 -1
- package/core/src/rss/generator.d.ts +1 -1
- package/core/src/rss/index.d.ts +1 -1
- package/core/src/sitemap/discovery.d.ts +7 -2
- package/core/src/sitemap/discovery.d.ts.map +1 -1
- package/core/src/sitemap/generator.d.ts +1 -1
- package/core/src/sitemap/index.d.ts +1 -1
- package/core/src/ssr/index.d.ts +1 -1
- package/core/src/ssr/lib/cache.d.ts +1 -1
- package/core/src/ssr/lib/cleanup.d.ts +1 -1
- package/core/src/ssr/lib/collections.d.ts +17 -1
- package/core/src/ssr/lib/collections.d.ts.map +1 -1
- package/core/src/ssr/lib/compression.d.ts +1 -1
- package/core/src/ssr/lib/compute/content.d.ts +1 -1
- package/core/src/ssr/lib/compute/index.d.ts +1 -1
- package/core/src/ssr/lib/compute/layouts.d.ts +1 -1
- package/core/src/ssr/lib/compute/routes.d.ts +1 -1
- package/core/src/ssr/lib/content-path.d.ts +1 -1
- package/core/src/ssr/lib/content-path.d.ts.map +1 -1
- package/core/src/ssr/lib/data.d.ts +1 -1
- package/core/src/ssr/lib/html.d.ts +1 -1
- package/core/src/ssr/lib/imports.d.ts +8 -3
- package/core/src/ssr/lib/imports.d.ts.map +1 -1
- package/core/src/ssr/lib/index.d.ts +1 -1
- package/core/src/ssr/lib/layouts.d.ts +6 -1
- package/core/src/ssr/lib/layouts.d.ts.map +1 -1
- package/core/src/ssr/lib/metadata.d.ts +1 -1
- package/core/src/ssr/lib/mime.d.ts +1 -1
- package/core/src/ssr/lib/modules.d.ts +1 -1
- package/core/src/ssr/lib/path.d.ts +1 -1
- package/core/src/ssr/lib/preload.d.ts +1 -1
- package/core/src/ssr/lib/route-match.d.ts +1 -1
- package/core/src/ssr/lib/scripts/collections.d.ts +2 -2
- package/core/src/ssr/lib/scripts/collections.d.ts.map +1 -1
- package/core/src/ssr/lib/scripts/data.d.ts +1 -1
- package/core/src/ssr/lib/scripts/data.d.ts.map +1 -1
- package/core/src/ssr/lib/scripts/escape.d.ts +1 -1
- package/core/src/ssr/lib/scripts/feeds.d.ts +1 -1
- package/core/src/ssr/lib/scripts/index.d.ts +1 -1
- package/core/src/ssr/lib/seed.d.ts +6 -1
- package/core/src/ssr/lib/seed.d.ts.map +1 -1
- package/core/src/ssr/lib/serialize.d.ts +1 -1
- package/core/src/ssr/lib/setup.d.ts +2 -2
- package/core/src/ssr/lib/setup.d.ts.map +1 -1
- package/core/src/ssr/lib/styles.d.ts +5 -4
- package/core/src/ssr/lib/styles.d.ts.map +1 -1
- package/core/src/ssr/lib/template.d.ts +1 -1
- package/core/src/ssr/lib/types.d.ts +15 -1
- package/core/src/ssr/lib/types.d.ts.map +1 -1
- package/core/src/ssr/render.d.ts +1 -1
- package/core/src/ssr/render.d.ts.map +1 -1
- package/core/src/ssr/stream.d.ts +1 -1
- package/core/src/ssr/stream.d.ts.map +1 -1
- package/elysia/index.d.ts +1 -1
- package/elysia/index.js +1331 -537
- package/elysia/index.js.map +45 -38
- package/elysia/src/index.d.ts +2 -1
- package/elysia/src/index.d.ts.map +1 -1
- package/elysia/src/libs/assets.d.ts +1 -1
- package/elysia/src/libs/cache.d.ts +6 -1
- package/elysia/src/libs/cache.d.ts.map +1 -1
- package/elysia/src/libs/caching.d.ts +1 -1
- package/elysia/src/libs/devReload.d.ts +53 -0
- package/elysia/src/libs/devReload.d.ts.map +1 -0
- package/elysia/src/libs/http.d.ts +1 -1
- package/elysia/src/libs/i18n.d.ts +2 -2
- package/elysia/src/libs/i18n.d.ts.map +1 -1
- package/elysia/src/libs/image.d.ts +30 -1
- package/elysia/src/libs/image.d.ts.map +1 -1
- package/elysia/src/libs/index.d.ts +2 -2
- package/elysia/src/libs/index.d.ts.map +1 -1
- package/elysia/src/libs/llms.d.ts +1 -1
- package/elysia/src/libs/response.d.ts +1 -1
- package/elysia/src/libs/serving.d.ts +1 -1
- package/elysia/src/plugin.d.ts +1 -1
- package/elysia/src/plugin.d.ts.map +1 -1
- package/elysia/src/routes/artifacts.d.ts +1 -1
- package/elysia/src/routes/artifacts.d.ts.map +1 -1
- package/elysia/src/routes/content.d.ts +2 -2
- package/elysia/src/routes/content.d.ts.map +1 -1
- package/elysia/src/routes/image.d.ts +1 -1
- package/elysia/src/routes/index.d.ts +1 -1
- package/elysia/src/routes/internal.d.ts +7 -1
- package/elysia/src/routes/internal.d.ts.map +1 -1
- package/elysia/src/routes/liveReloadClient.d.ts +16 -0
- package/elysia/src/routes/liveReloadClient.d.ts.map +1 -0
- package/elysia/src/routes/llms.d.ts +1 -1
- package/elysia/src/routes/llms.d.ts.map +1 -1
- package/elysia/src/routes/og.d.ts +1 -1
- package/elysia/src/routes/redirects.d.ts +1 -1
- package/elysia/src/routes/robots.d.ts +3 -1
- package/elysia/src/routes/robots.d.ts.map +1 -1
- package/elysia/src/routes/rss.d.ts +1 -1
- package/elysia/src/routes/search.d.ts +1 -1
- package/elysia/src/routes/sitemap.d.ts +3 -1
- package/elysia/src/routes/sitemap.d.ts.map +1 -1
- package/elysia/src/routes/ssr.d.ts +4 -2
- package/elysia/src/routes/ssr.d.ts.map +1 -1
- package/elysia/src/routes/static.d.ts +1 -1
- package/elysia/src/routes/themeCssRefresh.d.ts +17 -0
- package/elysia/src/routes/themeCssRefresh.d.ts.map +1 -0
- package/elysia/src/types.d.ts +1 -1
- package/package.json +1 -1
- package/react/index.d.ts +1 -1
- package/react/index.js +407 -189
- package/react/index.js.map +18 -15
- package/react/src/components/ClientOnly.d.ts +1 -1
- package/react/src/components/ContentRoute.d.ts +1 -1
- package/react/src/components/Image.d.ts +5 -1
- package/react/src/components/Image.d.ts.map +1 -1
- package/react/src/components/LazyRoute.d.ts +1 -1
- package/react/src/components/Link.d.ts +16 -4
- package/react/src/components/Link.d.ts.map +1 -1
- package/react/src/components/Markdown.d.ts +1 -1
- package/react/src/components/Markdown.d.ts.map +1 -1
- package/react/src/components/Outlet.d.ts +1 -1
- package/react/src/components/index.d.ts +1 -1
- package/react/src/hooks/index.d.ts +1 -1
- package/react/src/hooks/useContent.d.ts +1 -1
- package/react/src/hooks/useContent.d.ts.map +1 -1
- package/react/src/hooks/useData.d.ts +1 -1
- package/react/src/hooks/useData.d.ts.map +1 -1
- package/react/src/hooks/useFeed.d.ts +1 -1
- package/react/src/hooks/useLayoutData.d.ts +11 -1
- package/react/src/hooks/useLayoutData.d.ts.map +1 -1
- package/react/src/hooks/useLlms.d.ts +1 -1
- package/react/src/hooks/useNavigate.d.ts +1 -1
- package/react/src/hooks/useParams.d.ts +1 -1
- package/react/src/hooks/useRouter.d.ts +1 -1
- package/react/src/hooks/useSearch.d.ts +1 -1
- package/react/src/hooks/useSearchParams.d.ts +1 -1
- package/react/src/hooks/useToc.d.ts +1 -1
- package/react/src/i18n/LocaleProvider.d.ts +1 -1
- package/react/src/i18n/LocaleProvider.d.ts.map +1 -1
- package/react/src/i18n/helpers.d.ts +1 -1
- package/react/src/i18n/helpers.d.ts.map +1 -1
- package/react/src/i18n/index.d.ts +1 -1
- package/react/src/index.d.ts +1 -1
- package/react/src/lib/bundle.d.ts +27 -0
- package/react/src/lib/bundle.d.ts.map +1 -0
- package/react/src/lib/collection.d.ts +1 -1
- package/react/src/lib/content.d.ts +1 -1
- package/react/src/lib/head.d.ts +1 -1
- package/react/src/lib/index.d.ts +3 -1
- package/react/src/lib/index.d.ts.map +1 -1
- package/react/src/lib/layouts.d.ts +16 -0
- package/react/src/lib/layouts.d.ts.map +1 -0
- package/react/src/lib/lazy-route.d.ts +10 -19
- package/react/src/lib/lazy-route.d.ts.map +1 -1
- package/react/src/lib/route-loader.d.ts +1 -1
- package/react/src/lib/static-data.d.ts +25 -0
- package/react/src/lib/static-data.d.ts.map +1 -0
- package/react/src/providers/ContentProvider.d.ts +1 -1
- package/react/src/providers/RerouteProvider.d.ts +2 -2
- package/react/src/providers/RerouteProvider.d.ts.map +1 -1
- package/react/src/providers/RouterProvider.d.ts +28 -2
- package/react/src/providers/RouterProvider.d.ts.map +1 -1
- package/react/src/providers/index.d.ts +1 -1
- package/react/src/types/any.d.ts +1 -1
- package/react/src/types/index.d.ts +1 -1
- package/react/src/types/router.d.ts +9 -1
- package/react/src/types/router.d.ts.map +1 -1
- package/telemetry/react.d.ts +1 -1
- package/telemetry/react.js +16 -16
- package/telemetry/react.js.map +2 -2
- package/telemetry/server.d.ts +1 -1
- package/telemetry/server.js +68 -229
- package/telemetry/server.js.map +22 -17
- package/telemetry/src/react/api.d.ts +1 -1
- package/telemetry/src/react/context.d.ts +1 -1
- package/telemetry/src/react/index.d.ts +1 -1
- package/telemetry/src/react/telemetry.d.ts +1 -1
- package/telemetry/src/server/context.d.ts +1 -1
- package/telemetry/src/server/headers/extractor.d.ts +1 -1
- package/telemetry/src/server/headers/index.d.ts +1 -1
- package/telemetry/src/server/headers/presets.d.ts +1 -1
- package/telemetry/src/server/index.d.ts +1 -1
- package/telemetry/src/server/instrumentation.d.ts +1 -1
- package/telemetry/src/server/plugin.d.ts +1 -1
- package/telemetry/src/server/sourcemap.d.ts +1 -1
package/cli/src/cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/analyze.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/analyze.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAk7EH,wBAA8B,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+SnE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
* Build command - Build production binary
|
|
11
|
+
* Build command - Build production binary or static site
|
|
12
12
|
*
|
|
13
13
|
* This command runs:
|
|
14
14
|
* 1. `reroute gen --prod` (waits for completion, no watch)
|
|
15
15
|
* 2. Copy consumer assets to .reroute/assets for production serving
|
|
16
|
-
* 3. `bun build
|
|
16
|
+
* 3. `bun build .reroute/entry.ts --target bun --compile --outfile ./dist/{name}`
|
|
17
|
+
*
|
|
18
|
+
* With `--static`, step 3 prerenders every page into ./dist instead, so the
|
|
19
|
+
* app can be served by any static host without a Reroute server.
|
|
17
20
|
*/
|
|
18
21
|
export default function build(args: string[]): Promise<void>;
|
|
19
22
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/build.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAkWH,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,iBAsCjD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
* Dev command
|
|
11
|
+
* Dev command — one bun process.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Default: generate + watch in-process, then import the configured server
|
|
14
|
+
* entry (`app.server`, default `src/index.ts`) in the same process.
|
|
15
|
+
* Live reload is `REROUTE_DEV=1` (not a second `bun --watch`).
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
* Use `-t` or `--tui` to enable the side-by-side terminal UI.
|
|
17
|
+
* `--tui` still splits gen/server into child processes for the two-column UI.
|
|
18
18
|
*/
|
|
19
19
|
export default function dev(args: string[]): Promise<void>;
|
|
20
20
|
//# sourceMappingURL=dev.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgKH,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBAuC/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -7,5 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
|
+
export declare function startGenWatch(cwd: string, args: string[]): Promise<{
|
|
11
|
+
close: () => void;
|
|
12
|
+
}>;
|
|
10
13
|
export default function gen(args: string[]): Promise<void>;
|
|
11
14
|
//# sourceMappingURL=gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gen.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/gen.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"gen.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/gen.ts"],"names":[],"mappings":";AAizEA,wBAAsB,aAAa,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,GACZ,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CA0iBhC;AAED,wBAA8B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,iBA0B/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -37,4 +37,10 @@ export declare function getNamingConfig(options?: {
|
|
|
37
37
|
chunk: string;
|
|
38
38
|
asset: string;
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Client files whose contents are inlined into the entrypoint bundle.
|
|
42
|
+
* Markdown imported as text (`with { type: 'text' }`) must rebuild the
|
|
43
|
+
* bundle — watching alone only reloads the stale JS.
|
|
44
|
+
*/
|
|
45
|
+
export declare function shouldRebuildClientBundle(filename: string): boolean;
|
|
40
46
|
//# sourceMappingURL=bundler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/bundler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/bundler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAU5D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;;;;EAMA;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOnE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Get public environment variables that should be exposed to the browser
|
|
12
|
-
* Only includes variables prefixed with REROUTE_
|
|
12
|
+
* Only includes variables prefixed with REROUTE_: from the .env files, then
|
|
13
|
+
* the process environment (a CI variable or Docker build arg), which wins.
|
|
13
14
|
*/
|
|
14
|
-
export declare function getPublicEnvVars(cwd: string, mode?: 'development' | 'production'): Record<string, string>;
|
|
15
|
+
export declare function getPublicEnvVars(cwd: string, mode?: 'development' | 'production', processEnv?: Record<string, string | undefined>): Record<string, string>;
|
|
15
16
|
/**
|
|
16
17
|
* Convert environment variables to Bun.build define object
|
|
17
18
|
* Wraps values in JSON.stringify for proper substitution
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/env.ts"],"names":[],"mappings":"AA2EA
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/env.ts"],"names":[],"mappings":"AA2EA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,aAAa,GAAG,YAA4B,EAClD,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAC1D,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
import { type RerouteConfig } from 'reroute-js/core';
|
|
11
|
+
export declare function runImagePreprocess(cwd: string, config: RerouteConfig): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/images.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,aAAa,EAGlB,MAAM,iBAAiB,CAAC;AAczB,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,GACnB,OAAO,CAAC,IAAI,CAAC,CAyBf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -37,6 +37,16 @@ export interface HeadingNode {
|
|
|
37
37
|
* Process a markdown/MDX file and return structured data
|
|
38
38
|
*/
|
|
39
39
|
export declare function processMarkdownFile(filePath: string): ProcessedMarkdown;
|
|
40
|
+
export type ShikiRehypeOptions = {
|
|
41
|
+
theme: string;
|
|
42
|
+
} | {
|
|
43
|
+
themes: {
|
|
44
|
+
light: string;
|
|
45
|
+
dark: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/** Pair GitHub themes so fenced code can follow prefers-color-scheme. */
|
|
49
|
+
export declare function shikiRehypeOptions(theme: string): ShikiRehypeOptions;
|
|
40
50
|
/**
|
|
41
51
|
* Generate a React component wrapper for markdown content
|
|
42
52
|
* This creates a TypeScript module that can be imported as a route
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/markdown/processor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,KAAK,GAAG,GAAG,GAAG,CAAC;AAkEf,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAWvE;
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/markdown/processor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,KAAK,GAAG,GAAG,GAAG,CAAC;AAkEf,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAoCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAWvE;AAoFD,MAAM,MAAM,kBAAkB,GAC3B;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IAAE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE/C,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAKpE;AAqID;;;GAGG;AACH,wBAAsB,sBAAsB,CAC3C,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACR,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACnB,GACJ,OAAO,CAAC,MAAM,CAAC,CAoJjB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,iBAAiB,GAC1B,MAAM,CAgDR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACpD,WAAW,EAAE,CA6Bf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAsCrD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Static site generation for `reroute build --static`
|
|
12
|
+
*
|
|
13
|
+
* Runs after `reroute gen --prod`. Loads the app through the same
|
|
14
|
+
* `reroute()` Elysia plugin production servers use, renders every reachable
|
|
15
|
+
* page in-process with `app.handle()`, and writes an output directory that any
|
|
16
|
+
* static host can serve:
|
|
17
|
+
*
|
|
18
|
+
* - `<route>.html` per page (`index.html` for `/`) and `404.html`
|
|
19
|
+
* - `__reroute_data/<route>/index.json` so client navigation needs no server
|
|
20
|
+
* - `bundles/` (hashed JS/CSS) and `assets/` copied from `.reroute`
|
|
21
|
+
* - server-generated files the pages link to (`robots.txt`, `sitemap.xml`,
|
|
22
|
+
* feeds, OG images, `llms.txt`)
|
|
23
|
+
* - `_headers` and `_redirects` for Cloudflare Workers / Pages and Netlify
|
|
24
|
+
*
|
|
25
|
+
* Pages are found from the route manifest, the sitemap and by following
|
|
26
|
+
* same-origin links in every rendered page, so dynamic routes are included
|
|
27
|
+
* when something links to them or `ssr.sitemap()` lists them.
|
|
28
|
+
*/
|
|
29
|
+
export interface StaticBuildResult {
|
|
30
|
+
outDir: string;
|
|
31
|
+
pages: string[];
|
|
32
|
+
files: number;
|
|
33
|
+
warnings: string[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Render the generated app into `outDir` as a static site.
|
|
37
|
+
* Expects `reroute gen --prod` and the asset copy to have run in `cwd`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildStaticSite(cwd: string, outDir: string): Promise<StaticBuildResult>;
|
|
40
|
+
//# sourceMappingURL=prerender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prerender.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/prerender.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAkDH,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAsLD;;;GAGG;AACH,wBAAsB,eAAe,CACpC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,iBAAiB,CAAC,CAoD5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* Check if production mode is enabled
|
|
18
|
-
* @param args Command line arguments to check for --prod
|
|
19
|
-
* @returns true if
|
|
18
|
+
* @param args Command line arguments to check for --prod / --production
|
|
19
|
+
* @returns true if a production flag is present
|
|
20
20
|
*/
|
|
21
21
|
export declare function isProductionMode(args?: string[]): boolean;
|
|
22
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/production.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/production.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,MAAM,EAAO,GAAG,IAAI,CAK7D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* Server utilities for waiting and polling
|
|
12
12
|
*/
|
|
13
|
+
export declare function isServerRunning(port: number, timeout?: number): Promise<boolean>;
|
|
13
14
|
/**
|
|
14
15
|
* Wait for server to be ready by checking if it responds to HTTP requests
|
|
15
16
|
* Uses exponential backoff for efficient polling without artificial delays
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,SAAO,EACX,OAAO,SAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA6Bf"}
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/server.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAsB,eAAe,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAO,GACZ,OAAO,CAAC,OAAO,CAAC,CAUlB;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,SAAO,EACX,OAAO,SAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA6Bf"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Static build helpers
|
|
12
|
+
*
|
|
13
|
+
* Pure functions used by `reroute build --static` to turn rendered responses
|
|
14
|
+
* into files a static host (Cloudflare Workers assets, Pages, S3, nginx) can
|
|
15
|
+
* serve without a Reroute server.
|
|
16
|
+
*/
|
|
17
|
+
import type { RedirectRule } from 'reroute-js/core';
|
|
18
|
+
/** A lazy `ssr.data` key referenced by rendered HTML or data JSON. */
|
|
19
|
+
export interface LazyDataRef {
|
|
20
|
+
pathname: string;
|
|
21
|
+
key: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Convert a URL path into a file path relative to the output directory.
|
|
25
|
+
* Segments are decoded because static hosts decode the request path before
|
|
26
|
+
* looking the file up.
|
|
27
|
+
*/
|
|
28
|
+
export declare function toOutputPath(urlPath: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* File for a rendered page: `/` → `index.html`, `/blog/a` → `blog/a.html`.
|
|
31
|
+
* Hosts with "auto trailing slash" handling serve `/blog/a` from `blog/a.html`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function pageOutputPath(pathname: string): string;
|
|
34
|
+
/** File for a route's prerendered data (or one of its lazy keys). */
|
|
35
|
+
export declare function dataOutputPath(pathname: string, key?: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Point `/__reroute_data?path=…[&key=…]` URLs at the prerendered JSON files and
|
|
38
|
+
* report the lazy keys that need their own file.
|
|
39
|
+
*/
|
|
40
|
+
export declare function rewriteDataUrls(text: string): {
|
|
41
|
+
text: string;
|
|
42
|
+
lazy: LazyDataRef[];
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* `404.html` is rendered once for `probePath` but served for every missing
|
|
46
|
+
* URL. Hydration reuses the SSR markup only when the SSR pathname matches the
|
|
47
|
+
* browser's, so the pathname is read at runtime instead, and head tags that
|
|
48
|
+
* name the probe URL (canonical, `og:url`, OG images and their size tags) are
|
|
49
|
+
* dropped.
|
|
50
|
+
*/
|
|
51
|
+
export declare function finalizeNotFoundPage(html: string, probePath: string): string;
|
|
52
|
+
/** Mark a rendered page so the client reads data from static JSON files. */
|
|
53
|
+
export declare function injectStaticFlag(html: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* Same-origin paths referenced by a document (`href`, `src`, `srcset` and
|
|
56
|
+
* absolute `content` URLs such as `og:image`). `origins` lists every origin
|
|
57
|
+
* that counts as this site, e.g. the configured `app.baseUrl`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function extractLinks(html: string, origins: string[]): string[];
|
|
60
|
+
/**
|
|
61
|
+
* Path (with search) for a same-origin URL, or `undefined` for anything that
|
|
62
|
+
* points elsewhere (other hosts, `mailto:`, fragments, data URIs).
|
|
63
|
+
*/
|
|
64
|
+
export declare function toSitePath(raw: string, origins: string[]): string | undefined;
|
|
65
|
+
/** Page and sub-sitemap URLs listed in a sitemap or sitemap index. */
|
|
66
|
+
export declare function parseSitemapLocs(xml: string, origins: string[]): string[];
|
|
67
|
+
/** Cloudflare / Netlify `_headers`: hashed bundles are immutable. */
|
|
68
|
+
export declare function headersFile(): string;
|
|
69
|
+
/** A redirect the static host has to apply. */
|
|
70
|
+
export interface StaticRedirect {
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
status: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Redirects expressible as plain `_redirects` lines: string sources with
|
|
77
|
+
* string destinations. Regex and function rules are returned as skipped so
|
|
78
|
+
* the build can warn about them.
|
|
79
|
+
*/
|
|
80
|
+
export declare function staticRedirectsFromConfig(rules?: RedirectRule[]): {
|
|
81
|
+
redirects: StaticRedirect[];
|
|
82
|
+
skipped: RedirectRule[];
|
|
83
|
+
};
|
|
84
|
+
/** Cloudflare / Netlify `_redirects` file, first rule per source wins. */
|
|
85
|
+
export declare function redirectsFile(redirects: StaticRedirect[]): string;
|
|
86
|
+
//# sourceMappingURL=static.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/static.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,sEAAsE;AACtE,MAAM,WAAW,WAAW;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACZ;AAwBD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYpD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,EAAE,CAAC;CACpB,CAYA;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAe5E;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CActE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAMD,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAOzE;AAED,qEAAqE;AACrE,wBAAgB,WAAW,IAAI,MAAM,CAMpC;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,GAAE,YAAY,EAAO,GAAG;IACtE,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;CACxB,CAqBA;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,MAAM,CASjE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Built with Bun <3
|
|
9
9
|
*/
|
|
10
|
-
import type
|
|
10
|
+
import { type RerouteConfig } from 'reroute-js/core';
|
|
11
11
|
import type { StreamingAnalysis } from './analyzer';
|
|
12
12
|
type GenerateWrapperOptions = {
|
|
13
13
|
cwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/streaming/suspense.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/cli/src/commands/lib/streaming/suspense.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,KAAK,sBAAsB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;CACtB,CAAC;AASF,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,sBAAsB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAsCjB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* `reroute dev` runs the server in a child process it can replace: Bun keeps
|
|
12
|
+
* a failed import failing for the life of a process, so when a new file is
|
|
13
|
+
* invisible to the running server, the child asks for a fresh process.
|
|
14
|
+
*/
|
|
15
|
+
/** Exit code a supervised dev process uses to ask for a fresh one. */
|
|
16
|
+
declare const devRestartCode = 75;
|
|
17
|
+
declare const supervisedEnv = "REROUTE_DEV_SUPERVISED";
|
|
18
|
+
/** What the supervisor does when the dev process exits with `code`. */
|
|
19
|
+
declare function afterDevExit(code: number | null): 'restart' | 'exit';
|
|
20
|
+
/** Runs `reroute dev` as a child and replaces it when it asks; Ctrl+C and SIGTERM reach it. */
|
|
21
|
+
declare function supervise(): Promise<void>;
|
|
22
|
+
export { afterDevExit, devRestartCode, supervise, supervisedEnv };
|
|
23
|
+
//# sourceMappingURL=supervise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supervise.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/supervise.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,sEAAsE;AACtE,QAAA,MAAM,cAAc,KAAK,CAAC;AAC1B,QAAA,MAAM,aAAa,2BAA2B,CAAC;AAE/C,uEAAuE;AACvE,iBAAS,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAE7D;AAED,+FAA+F;AAC/F,iBAAe,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBxC;AAED,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { ChildProcess } from 'node:child_process';
|
|
11
11
|
type Any = any;
|
|
12
|
-
export declare function setupTerminalUIHandlers(screen: Any, grid: Any, genProcess: ChildProcess, serverProcess: ChildProcess, outputBuffer: Buffer[], blessed: Any, colorizeLogPrefix: (text: string) => string): void;
|
|
12
|
+
export declare function setupTerminalUIHandlers(screen: Any, grid: Any, genProcess: ChildProcess, serverProcess: ChildProcess, outputBuffer: Buffer[], blessed: Any, colorizeLogPrefix: (text: string) => string, serverEntry?: string): void;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=terminal-ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-ui.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/terminal-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,KAAK,GAAG,GAAG,GAAG,CAAC;AAqGf,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,EAAE,GAAG,EACZ,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"terminal-ui.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/terminal-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,KAAK,GAAG,GAAG,GAAG,CAAC;AAqGf,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,YAAY,EACxB,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,EAAE,GAAG,EACZ,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAC3C,WAAW,SAAiB,QA4D5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* reroute-js v1.0.0-alpha.
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 stewones <hi@stewan.io>
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* Client CSS sync utility
|
|
12
12
|
*
|
|
13
|
-
* Bundles
|
|
14
|
-
*
|
|
13
|
+
* Bundles the client CSS entry (resolving @import) into
|
|
14
|
+
* .reroute/bundles/index.css and .reroute/bundles/index.<hash>.css
|
|
15
|
+
* for serving at /bundles/… alongside the JS.
|
|
16
|
+
*
|
|
17
|
+
* Default entry is src/client/index.css (parent of app.src).
|
|
15
18
|
*
|
|
16
19
|
* DX pattern — keep the design system modular and import from the entry:
|
|
17
20
|
*
|
|
@@ -26,8 +29,10 @@
|
|
|
26
29
|
* (absolute `/…`, http(s), data, or @import with media conditions) stay as-is.
|
|
27
30
|
*/
|
|
28
31
|
export declare function bundleCssEntrypoint(entryPath: string): string;
|
|
32
|
+
/** Every local file the entry pulls in through @import, entry included. */
|
|
33
|
+
export declare function cssEntrypointFiles(entryPath: string): string[];
|
|
29
34
|
/**
|
|
30
|
-
* Bundle index.css (with @import resolution) into .reroute
|
|
35
|
+
* Bundle index.css (with @import resolution) into .reroute/bundles.
|
|
31
36
|
* Returns true if a sync was performed, false if skipped.
|
|
32
37
|
*/
|
|
33
38
|
export declare function syncThemeCss(cwd: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/theme.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA6CH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAE9D;AAoED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAyBhE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reroute-js v1.0.0-alpha.30
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 stewones <hi@stewan.io>
|
|
6
|
+
* @see https://github.com/Intenseloop/reroute
|
|
7
|
+
*
|
|
8
|
+
* Built with Bun <3
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Sibling copies used to bust Bun's import cache (`name.bust-<token>.tsx`).
|
|
12
|
+
* Also skip dotfiles so those copies never retrigger a rebuild.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isWatchNoise(name: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Source files whose change rebuilds the client (bundle or theme CSS).
|
|
17
|
+
* `skipRoutes`: the client root's routes/ folder has its own watcher.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isClientSource(name: string, skipRoutes: boolean): boolean;
|
|
20
|
+
export declare function createContentFingerprint(options?: {
|
|
21
|
+
settleMs?: number;
|
|
22
|
+
}): {
|
|
23
|
+
changed(absPath: string): Promise<boolean>;
|
|
24
|
+
};
|
|
25
|
+
export declare function retainChangedFiles(root: string, names: string[], fingerprint: ReturnType<typeof createContentFingerprint>): Promise<string[]>;
|
|
26
|
+
/**
|
|
27
|
+
* First-party files a Bun build read, as absolute paths. `metafile.inputs`
|
|
28
|
+
* keys are relative to the process working directory.
|
|
29
|
+
*/
|
|
30
|
+
export declare function bundleInputFiles(metafile: unknown, base?: string): string[];
|
|
31
|
+
/**
|
|
32
|
+
* Folders holding imported files that no existing watcher covers. The client
|
|
33
|
+
* root and `app.watch` dirs are watched recursively; these are watched flat,
|
|
34
|
+
* so `src/styles/site.css` imported from `src/client/index.css` still rebuilds.
|
|
35
|
+
*/
|
|
36
|
+
export declare function importedWatchDirs(files: Iterable<string>, coveredRoots: readonly string[]): string[];
|
|
37
|
+
//# sourceMappingURL=watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cli/src/commands/lib/watch.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKlD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAKzE;AAUD,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;qBAQ/C,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;EAsCjD;AAED,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EAAE,EACf,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,GACtD,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnB;AAKD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,OAAO,EACjB,IAAI,SAAgB,GAClB,MAAM,EAAE,CAoBV;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvB,YAAY,EAAE,SAAS,MAAM,EAAE,GAC7B,MAAM,EAAE,CAUV"}
|