@absolutejs/absolute 0.8.13 → 0.8.15
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 +146 -19
- package/dist/index.js +36 -20
- package/dist/index.js.map +7 -7
- package/dist/src/build/generateManifest.d.ts +2 -2
- package/eslint.config.mjs +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,34 +1,161 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Absolute JS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Full‑stack, **type‑safe** batteries‑included platform that lets you **server‑side render _any_ modern front‑end**—React, Svelte, plain HTML, HTMX (Vue & Angular coming)—with a single Bun‑powered build step.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://bun.sh)
|
|
6
|
+
[](https://elysiajs.com)
|
|
7
|
+

|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
---
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
- **Powered by Bun and Elysia**: Leveraging the power of Bun and Elysia, AbsoluteJS provides a robust and efficient development experience.
|
|
11
|
-
- **Future-Proof**: AbsoluteJS is designed to accommodate future JavaScript frameworks, making it a sustainable choice for JavaScript development.
|
|
11
|
+
## Why Absolute JS?
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- **Universal SSR.** Bring your favourite UI layer; Absolute JS handles bundling, hydration, and HTML streaming.
|
|
14
|
+
- **One build, one manifest.** Call `build()` once—get a manifest mapping every page’s client and server assets, ready to wire into routes.
|
|
15
|
+
- **End‑to‑end type safety.** A unified source of truth for your types—from the database, through the server, and all the way to the client—so you can be certain of the data shape at every step.
|
|
16
|
+
- **Zero‑config philosophy.** Point the build at your folders; sane defaults light up everything else.
|
|
17
|
+
- **Plugin power.** Extend with standard Elysia plugins—ship auth, logging, i18n, and more. First‑party: `absolute-auth`, `networkingPlugin`.
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
2. **Basic Usage**: Give a simple example of how to use AbsoluteJS.
|
|
19
|
+
---
|
|
17
20
|
|
|
18
|
-
##
|
|
21
|
+
## Requirements
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
| Tool | Version | Purpose |
|
|
24
|
+
| ---------- | ------- | ------------------------------------------- |
|
|
25
|
+
| **Bun** | ≥ 1.2 | Runtime, bundler, and TypeScript transpiler |
|
|
26
|
+
| **Elysia** | latest | Web server & middleware platform |
|
|
21
27
|
|
|
22
|
-
|
|
28
|
+
---
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
## Installation
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
```bash
|
|
33
|
+
bun add @absolutejs/absolute
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
// example/server.ts
|
|
42
|
+
import { staticPlugin } from '@elysiajs/static';
|
|
43
|
+
import { Elysia } from 'elysia';
|
|
44
|
+
import { file } from 'bun';
|
|
45
|
+
import { build } from 'absolutejs/core/build';
|
|
46
|
+
import {
|
|
47
|
+
handleHTMLPageRequest,
|
|
48
|
+
handleReactPageRequest,
|
|
49
|
+
handleSveltePageRequest
|
|
50
|
+
} from 'absolutejs/core/pageHandlers';
|
|
51
|
+
|
|
52
|
+
import { ReactExample } from './react/pages/ReactExample';
|
|
53
|
+
import SvelteExample from './svelte/pages/SvelteExample.svelte';
|
|
54
|
+
import { networkingPlugin } from 'absolutejs';
|
|
55
|
+
|
|
56
|
+
const manifest = await build({
|
|
57
|
+
assetsDirectory: 'example/assets',
|
|
58
|
+
buildDirectory: 'example/build',
|
|
59
|
+
htmlDirectory: 'example/html',
|
|
60
|
+
htmxDirectory: 'example/htmx',
|
|
61
|
+
reactDirectory: 'example/react',
|
|
62
|
+
svelteDirectory: 'example/svelte',
|
|
63
|
+
options: { preserveIntermediateFiles: true }
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
if (!manifest) throw new Error('Manifest generation failed');
|
|
67
|
+
|
|
68
|
+
let counter = 0;
|
|
69
|
+
|
|
70
|
+
export const server = new Elysia()
|
|
71
|
+
.use(staticPlugin({ assets: './example/build', prefix: '' }))
|
|
72
|
+
|
|
73
|
+
// HTML
|
|
74
|
+
.get('/', () =>
|
|
75
|
+
handleHTMLPageRequest('./example/build/html/pages/HtmlExample.html')
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
// React
|
|
79
|
+
.get('/react', () =>
|
|
80
|
+
handleReactPageRequest(ReactExample, manifest['ReactExampleIndex'], {
|
|
81
|
+
test: 123
|
|
82
|
+
})
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
// Svelte
|
|
86
|
+
.get('/svelte', () =>
|
|
87
|
+
handleSveltePageRequest(SvelteExample, manifest, { test: 456 })
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
// HTMX demo
|
|
91
|
+
.get('/htmx', () => file('./example/build/htmx/HtmxHome.html'))
|
|
92
|
+
.get('/htmx/increment', () => new Response(String(++counter)))
|
|
93
|
+
|
|
94
|
+
.use(networkingPlugin)
|
|
95
|
+
.on('error', (error) => {
|
|
96
|
+
const { request } = error;
|
|
97
|
+
console.error(
|
|
98
|
+
`Server error on ${request.method} ${request.url}: ${error.message}`
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### How it works
|
|
104
|
+
|
|
105
|
+
1. **`build()`** scans your project, bundles each framework, and returns a **manifest** that has the server, and client assets required to serve each route.
|
|
106
|
+
2. Route handlers (`handleReactPageRequest`, `handleSveltePageRequest`, …) stream HTML and inject scripts/assets based on that manifest.
|
|
107
|
+
3. The static plugin serves all compiled files from `/build`.
|
|
27
108
|
|
|
28
|
-
|
|
109
|
+
---
|
|
29
110
|
|
|
30
|
-
##
|
|
111
|
+
## Plugin System
|
|
31
112
|
|
|
32
|
-
|
|
113
|
+
Absolute JS piggybacks on the [Elysia plugin API](https://elysiajs.com/plugins). Any Elysia plugin works out of the box; Absolute adds helpers for:
|
|
114
|
+
|
|
115
|
+
| Plugin | Description |
|
|
116
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
117
|
+
| **`absolute-auth`** | Full OAuth2 flow configured with 66 providers and allows full customizability with event handlers |
|
|
118
|
+
| **`networkingPlugin`** | Starts your Elysia server with HOST/PORT defaults and adds a --host flag to toggle listening on localhost or your LAN interface |
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Configuration Philosophy
|
|
123
|
+
|
|
124
|
+
Everything funnels through a single `build()` call:
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
await build({
|
|
128
|
+
reactDirectory: 'src/react',
|
|
129
|
+
svelteDirectory: 'src/svelte',
|
|
130
|
+
htmlDirectory: 'src/html',
|
|
131
|
+
htmxDirectory: 'src/htmx',
|
|
132
|
+
assetsDirectory: 'public/assets',
|
|
133
|
+
options: { preserveIntermediateFiles: false }
|
|
134
|
+
});
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
No separate config files or environment variables—just explicit arguments with sensible defaults.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Roadmap
|
|
142
|
+
|
|
143
|
+
- **Vue** and **Angular** handlers
|
|
144
|
+
- Hot‑reload development server
|
|
145
|
+
- First‑class Docker images & hosting recipes
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Contributing
|
|
150
|
+
|
|
151
|
+
Pull requests and issues are welcome! Whether it’s a new plugin, framework handler, or docs improvement:
|
|
152
|
+
|
|
153
|
+
1. Fork & branch.
|
|
154
|
+
2. `bun install && bun test`.
|
|
155
|
+
3. Submit a PR with a clear description.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## License
|
|
33
160
|
|
|
34
|
-
|
|
161
|
+
Creative Commons **CC BY‑NC 4.0** – see [`LICENSE`](./LICENSE) for details.
|
package/dist/index.js
CHANGED
|
@@ -17,25 +17,27 @@ import { cwd, exit } from "process";
|
|
|
17
17
|
var {$, build: bunBuild } = globalThis.Bun;
|
|
18
18
|
|
|
19
19
|
// src/build/generateManifest.ts
|
|
20
|
-
var generateManifest = (outputs, buildDirectoryAbsolute) => {
|
|
21
|
-
const
|
|
20
|
+
var generateManifest = (outputs, buildDirectoryAbsolute, svelteDirName) => {
|
|
21
|
+
const prefix = svelteDirName ? `(?:${svelteDirName}/)?` : "";
|
|
22
|
+
const pagesRegex = new RegExp(`^${prefix}pages/`);
|
|
23
|
+
const indexesRegex = new RegExp(`^${prefix}indexes/`);
|
|
24
|
+
return outputs.reduce((manifest, artifact) => {
|
|
22
25
|
let relativePath = artifact.path.startsWith(buildDirectoryAbsolute) ? artifact.path.slice(buildDirectoryAbsolute.length) : artifact.path;
|
|
23
26
|
relativePath = relativePath.replace(/^\/+/, "");
|
|
24
27
|
const segments = relativePath.split("/");
|
|
25
|
-
const fileWithHash = segments
|
|
28
|
+
const fileWithHash = segments.pop();
|
|
26
29
|
if (!fileWithHash)
|
|
27
|
-
return
|
|
30
|
+
return manifest;
|
|
28
31
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
} else if (
|
|
32
|
-
|
|
32
|
+
if (indexesRegex.test(relativePath)) {
|
|
33
|
+
manifest[`${baseName}Index`] = `/${relativePath}`;
|
|
34
|
+
} else if (pagesRegex.test(relativePath)) {
|
|
35
|
+
manifest[baseName] = artifact.path;
|
|
33
36
|
} else {
|
|
34
|
-
|
|
37
|
+
manifest[baseName] = `/${relativePath}`;
|
|
35
38
|
}
|
|
36
|
-
return
|
|
39
|
+
return manifest;
|
|
37
40
|
}, {});
|
|
38
|
-
return manifest;
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
// src/build/generateReactIndexes.ts
|
|
@@ -199,6 +201,17 @@ var build = async ({
|
|
|
199
201
|
const htmlPagesPath = htmlDirectoryPath && join3(htmlDirectoryPath, "pages");
|
|
200
202
|
const htmlScriptsPath = htmlDirectoryPath && join3(htmlDirectoryPath, "scripts");
|
|
201
203
|
const sveltePagesPath = svelteDirectoryPath && join3(svelteDirectoryPath, "pages");
|
|
204
|
+
const isSingleFrontend = [
|
|
205
|
+
reactDirectoryPath,
|
|
206
|
+
htmlDirectoryPath,
|
|
207
|
+
htmxPath,
|
|
208
|
+
svelteDirectoryPath
|
|
209
|
+
].filter(Boolean).length === 1;
|
|
210
|
+
const isSvelteOnly = isSingleFrontend && svelteDirectoryPath !== undefined;
|
|
211
|
+
const serverOutDir = isSvelteOnly ? join3(buildPath, "pages") : buildPath;
|
|
212
|
+
const serverRoot = isSvelteOnly ? join3(svelteDirectoryPath, "pages") : undefined;
|
|
213
|
+
const svelteOutDir = isSingleFrontend ? buildPath : join3(buildPath, basename3(svelteDirectoryPath ?? ""));
|
|
214
|
+
const svelteDirName = svelteDirectoryPath && basename3(svelteDirectoryPath);
|
|
202
215
|
await rm2(buildPath, { force: true, recursive: true });
|
|
203
216
|
await mkdir3(buildPath);
|
|
204
217
|
if (reactIndexesPath && reactPagesPath) {
|
|
@@ -224,7 +237,11 @@ var build = async ({
|
|
|
224
237
|
const svelteEntryPoints = sveltePagesPath ? await scanEntryPoints(sveltePagesPath, "*.svelte") : [];
|
|
225
238
|
const htmlEntryPoints = htmlScriptsPath ? await scanEntryPoints(htmlScriptsPath, "*.{js,ts}") : [];
|
|
226
239
|
const { svelteServerPaths, svelteClientPaths } = svelteDirectoryPath ? await compileSvelte(svelteEntryPoints, svelteDirectoryPath) : { svelteClientPaths: [], svelteServerPaths: [] };
|
|
227
|
-
const serverEntryPoints =
|
|
240
|
+
const serverEntryPoints = [
|
|
241
|
+
...reactEntryPoints,
|
|
242
|
+
...htmlEntryPoints,
|
|
243
|
+
...svelteServerPaths
|
|
244
|
+
];
|
|
228
245
|
if (serverEntryPoints.length === 0) {
|
|
229
246
|
console.warn("No server entry points found, skipping manifest generation");
|
|
230
247
|
return null;
|
|
@@ -233,7 +250,8 @@ var build = async ({
|
|
|
233
250
|
entrypoints: serverEntryPoints,
|
|
234
251
|
format: "esm",
|
|
235
252
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
236
|
-
outdir:
|
|
253
|
+
outdir: serverOutDir,
|
|
254
|
+
root: serverRoot,
|
|
237
255
|
target: "bun"
|
|
238
256
|
}).catch((error) => {
|
|
239
257
|
console.error("Server build failed:", error);
|
|
@@ -246,7 +264,7 @@ var build = async ({
|
|
|
246
264
|
entrypoints: svelteClientPaths,
|
|
247
265
|
format: "esm",
|
|
248
266
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
249
|
-
outdir:
|
|
267
|
+
outdir: svelteOutDir,
|
|
250
268
|
root: svelteDirectoryPath,
|
|
251
269
|
target: "browser"
|
|
252
270
|
}).catch((error) => {
|
|
@@ -256,7 +274,7 @@ var build = async ({
|
|
|
256
274
|
clientLogs = logs;
|
|
257
275
|
clientOutputs = outputs;
|
|
258
276
|
}
|
|
259
|
-
serverLogs
|
|
277
|
+
[...serverLogs, ...clientLogs].forEach((log) => {
|
|
260
278
|
if (log.level === "error")
|
|
261
279
|
console.error(log);
|
|
262
280
|
else if (log.level === "warning")
|
|
@@ -264,8 +282,7 @@ var build = async ({
|
|
|
264
282
|
else
|
|
265
283
|
console.info(log);
|
|
266
284
|
});
|
|
267
|
-
const
|
|
268
|
-
const manifest = generateManifest(allOutputs, buildPath);
|
|
285
|
+
const manifest = generateManifest([...serverOutputs, ...clientOutputs], buildPath, svelteDirName);
|
|
269
286
|
if (htmlDirectoryPath && htmlPagesPath) {
|
|
270
287
|
const outputHtmlPages = join3(buildPath, basename3(htmlDirectoryPath), "pages");
|
|
271
288
|
await mkdir3(outputHtmlPages, { recursive: true });
|
|
@@ -289,8 +306,7 @@ var build = async ({
|
|
|
289
306
|
if (!options?.preserveIntermediateFiles && reactIndexesPath) {
|
|
290
307
|
await rm2(reactIndexesPath, { force: true, recursive: true });
|
|
291
308
|
}
|
|
292
|
-
|
|
293
|
-
console.log(`Build completed in ${getDurationString(buildDuration)}`);
|
|
309
|
+
console.log(`Build completed in ${getDurationString(performance.now() - buildStart)}`);
|
|
294
310
|
return manifest;
|
|
295
311
|
};
|
|
296
312
|
// src/core/pageHandlers.ts
|
|
@@ -445,5 +461,5 @@ export {
|
|
|
445
461
|
DEFAULT_CHUNK_SIZE
|
|
446
462
|
};
|
|
447
463
|
|
|
448
|
-
//# debugId=
|
|
464
|
+
//# debugId=F0D0DE61A724A5EB64756E2164756E21
|
|
449
465
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"sources": ["../src/constants.ts", "../src/core/build.ts", "../src/build/generateManifest.ts", "../src/build/generateReactIndexes.ts", "../src/build/scanEntryPoints.ts", "../src/build/updateScriptTags.ts", "../src/svelte/compileSvelte.ts", "../src/utils/getDurationString.ts", "../src/utils/validateSafePath.ts", "../src/core/pageHandlers.ts", "../src/svelte/renderToReadableStream.ts", "../src/utils/escapeScriptContent.ts", "../src/plugins/networkingPlugin.ts", "../src/utils/networking.ts", "../src/plugins/pageRouterPlugin.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"export const SECONDS_IN_A_MINUTE = 60;\nexport const MILLISECONDS_IN_A_SECOND = 1000;\nexport const MILLISECONDS_IN_A_MINUTE =\n\tMILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;\nexport const MINUTES_IN_AN_HOUR = 60;\nexport const HOURS_IN_DAY = 24;\nexport const MILLISECONDS_IN_A_DAY =\n\tMILLISECONDS_IN_A_SECOND *\n\tSECONDS_IN_A_MINUTE *\n\tMINUTES_IN_AN_HOUR *\n\tHOURS_IN_DAY;\nexport const TIME_PRECISION = 2;\nexport const TWO_THIRDS = 2 / 3;\nexport const DEFAULT_PORT = 3000;\nexport const DEFAULT_CHUNK_SIZE = 16_384;\n",
|
|
6
|
-
"import { rm, mkdir, cp } from 'node:fs/promises';\nimport { basename, join } from 'node:path';\nimport { cwd, exit } from 'node:process';\nimport { $, build as bunBuild } from 'bun';\nimport { generateManifest } from '../build/generateManifest';\nimport { generateReactIndexFiles } from '../build/generateReactIndexes';\nimport { scanEntryPoints } from '../build/scanEntryPoints';\nimport { updateScriptTags } from '../build/updateScriptTags';\nimport { compileSvelte } from '../svelte/compileSvelte';\nimport { BuildConfig } from '../types';\nimport { getDurationString } from '../utils/getDurationString';\nimport { validateSafePath } from '../utils/validateSafePath';\n\nexport const build = async ({\n\tbuildDirectory = 'build',\n\tassetsDirectory,\n\treactDirectory,\n\thtmlDirectory,\n\thtmxDirectory,\n\tsvelteDirectory,\n\ttailwind,\n\toptions\n}: BuildConfig) => {\n\tconst buildStart = performance.now();\n\tconst projectRoot = cwd();\n\n\tconst buildPath = validateSafePath(buildDirectory, projectRoot);\n\tconst assetsPath =\n\t\tassetsDirectory && validateSafePath(assetsDirectory, projectRoot);\n\tconst reactDirectoryPath =\n\t\treactDirectory && validateSafePath(reactDirectory, projectRoot);\n\tconst htmlDirectoryPath =\n\t\thtmlDirectory && validateSafePath(htmlDirectory, projectRoot);\n\tconst htmxPath =\n\t\thtmxDirectory && validateSafePath(htmxDirectory, projectRoot);\n\tconst svelteDirectoryPath =\n\t\tsvelteDirectory && validateSafePath(svelteDirectory, projectRoot);\n\n\tconst reactIndexesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, 'indexes');\n\tconst reactPagesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, 'pages');\n\tconst htmlPagesPath = htmlDirectoryPath && join(htmlDirectoryPath, 'pages');\n\tconst htmlScriptsPath =\n\t\thtmlDirectoryPath && join(htmlDirectoryPath, 'scripts');\n\tconst sveltePagesPath =\n\t\tsvelteDirectoryPath && join(svelteDirectoryPath, 'pages');\n\n\tawait rm(buildPath, { force: true, recursive: true });\n\tawait mkdir(buildPath);\n\n\tif (reactIndexesPath && reactPagesPath) {\n\t\tawait generateReactIndexFiles(reactPagesPath, reactIndexesPath);\n\t}\n\n\tif (assetsPath) {\n\t\tawait cp(assetsPath, join(buildPath, 'assets'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (htmxPath) {\n\t\tawait mkdir(join(buildPath, 'htmx'));\n\t\tawait cp(htmxPath, join(buildPath, 'htmx'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (tailwind) {\n\t\tawait $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join(buildPath, tailwind.output)}`;\n\t}\n\n\tconst reactEntryPoints = reactIndexesPath\n\t\t? await scanEntryPoints(reactIndexesPath, '*.tsx')\n\t\t: [];\n\tconst svelteEntryPoints = sveltePagesPath\n\t\t? await scanEntryPoints(sveltePagesPath, '*.svelte')\n\t\t: [];\n\tconst htmlEntryPoints = htmlScriptsPath\n\t\t? await scanEntryPoints(htmlScriptsPath, '*.{js,ts}')\n\t\t: [];\n\n\tconst { svelteServerPaths, svelteClientPaths } = svelteDirectoryPath\n\t\t? await compileSvelte(svelteEntryPoints, svelteDirectoryPath)\n\t\t: { svelteClientPaths: [], svelteServerPaths: [] };\n\n\tconst serverEntryPoints =
|
|
7
|
-
"import { BuildArtifact } from
|
|
8
|
-
"import { mkdir, rm, writeFile } from
|
|
9
|
-
"import { Glob } from
|
|
10
|
-
"import { readFile, writeFile } from
|
|
6
|
+
"import { rm, mkdir, cp } from 'node:fs/promises';\nimport { basename, join } from 'node:path';\nimport { cwd, exit } from 'node:process';\nimport { $, BuildArtifact, build as bunBuild } from 'bun';\nimport { generateManifest } from '../build/generateManifest';\nimport { generateReactIndexFiles } from '../build/generateReactIndexes';\nimport { scanEntryPoints } from '../build/scanEntryPoints';\nimport { updateScriptTags } from '../build/updateScriptTags';\nimport { compileSvelte } from '../svelte/compileSvelte';\nimport { BuildConfig } from '../types';\nimport { getDurationString } from '../utils/getDurationString';\nimport { validateSafePath } from '../utils/validateSafePath';\n\nexport const build = async ({\n\tbuildDirectory = 'build',\n\tassetsDirectory,\n\treactDirectory,\n\thtmlDirectory,\n\thtmxDirectory,\n\tsvelteDirectory,\n\ttailwind,\n\toptions\n}: BuildConfig) => {\n\tconst buildStart = performance.now();\n\tconst projectRoot = cwd();\n\n\tconst buildPath = validateSafePath(buildDirectory, projectRoot);\n\tconst assetsPath =\n\t\tassetsDirectory && validateSafePath(assetsDirectory, projectRoot);\n\tconst reactDirectoryPath =\n\t\treactDirectory && validateSafePath(reactDirectory, projectRoot);\n\tconst htmlDirectoryPath =\n\t\thtmlDirectory && validateSafePath(htmlDirectory, projectRoot);\n\tconst htmxPath =\n\t\thtmxDirectory && validateSafePath(htmxDirectory, projectRoot);\n\tconst svelteDirectoryPath =\n\t\tsvelteDirectory && validateSafePath(svelteDirectory, projectRoot);\n\n\tconst reactIndexesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, 'indexes');\n\tconst reactPagesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, 'pages');\n\tconst htmlPagesPath = htmlDirectoryPath && join(htmlDirectoryPath, 'pages');\n\tconst htmlScriptsPath =\n\t\thtmlDirectoryPath && join(htmlDirectoryPath, 'scripts');\n\tconst sveltePagesPath =\n\t\tsvelteDirectoryPath && join(svelteDirectoryPath, 'pages');\n\n\tconst isSingleFrontend =\n\t\t[\n\t\t\treactDirectoryPath,\n\t\t\thtmlDirectoryPath,\n\t\t\thtmxPath,\n\t\t\tsvelteDirectoryPath\n\t\t].filter(Boolean).length === 1;\n\tconst isSvelteOnly = isSingleFrontend && svelteDirectoryPath !== undefined;\n\n\tconst serverOutDir = isSvelteOnly ? join(buildPath, 'pages') : buildPath;\n\tconst serverRoot = isSvelteOnly\n\t\t? join(svelteDirectoryPath, 'pages')\n\t\t: undefined;\n\tconst svelteOutDir = isSingleFrontend\n\t\t? buildPath\n\t\t: join(buildPath, basename(svelteDirectoryPath ?? ''));\n\tconst svelteDirName = svelteDirectoryPath && basename(svelteDirectoryPath);\n\n\tawait rm(buildPath, { force: true, recursive: true });\n\tawait mkdir(buildPath);\n\n\tif (reactIndexesPath && reactPagesPath) {\n\t\tawait generateReactIndexFiles(reactPagesPath, reactIndexesPath);\n\t}\n\n\tif (assetsPath) {\n\t\tawait cp(assetsPath, join(buildPath, 'assets'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (htmxPath) {\n\t\tawait mkdir(join(buildPath, 'htmx'));\n\t\tawait cp(htmxPath, join(buildPath, 'htmx'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (tailwind) {\n\t\tawait $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join(buildPath, tailwind.output)}`;\n\t}\n\n\tconst reactEntryPoints = reactIndexesPath\n\t\t? await scanEntryPoints(reactIndexesPath, '*.tsx')\n\t\t: [];\n\tconst svelteEntryPoints = sveltePagesPath\n\t\t? await scanEntryPoints(sveltePagesPath, '*.svelte')\n\t\t: [];\n\tconst htmlEntryPoints = htmlScriptsPath\n\t\t? await scanEntryPoints(htmlScriptsPath, '*.{js,ts}')\n\t\t: [];\n\n\tconst { svelteServerPaths, svelteClientPaths } = svelteDirectoryPath\n\t\t? await compileSvelte(svelteEntryPoints, svelteDirectoryPath)\n\t\t: { svelteClientPaths: [], svelteServerPaths: [] };\n\n\tconst serverEntryPoints = [\n\t\t...reactEntryPoints,\n\t\t...htmlEntryPoints,\n\t\t...svelteServerPaths\n\t];\n\n\tif (serverEntryPoints.length === 0) {\n\t\tconsole.warn(\n\t\t\t'No server entry points found, skipping manifest generation'\n\t\t);\n\n\t\treturn null;\n\t}\n\n\tconst { logs: serverLogs, outputs: serverOutputs } = await bunBuild({\n\t\tentrypoints: serverEntryPoints,\n\t\tformat: 'esm',\n\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\toutdir: serverOutDir,\n\t\troot: serverRoot,\n\t\ttarget: 'bun'\n\t}).catch((error) => {\n\t\tconsole.error('Server build failed:', error);\n\t\texit(1);\n\t});\n\n\tlet clientLogs: (BuildMessage | ResolveMessage)[] = [];\n\tlet clientOutputs: BuildArtifact[] = [];\n\n\tif (svelteDirectoryPath) {\n\t\tconst { logs, outputs } = await bunBuild({\n\t\t\tentrypoints: svelteClientPaths,\n\t\t\tformat: 'esm',\n\t\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\t\toutdir: svelteOutDir,\n\t\t\troot: svelteDirectoryPath,\n\t\t\ttarget: 'browser'\n\t\t}).catch((error) => {\n\t\t\tconsole.error('Client build failed:', error);\n\t\t\texit(1);\n\t\t});\n\n\t\tclientLogs = logs;\n\t\tclientOutputs = outputs;\n\t}\n\n\t[...serverLogs, ...clientLogs].forEach((log) => {\n\t\tif (log.level === 'error') console.error(log);\n\t\telse if (log.level === 'warning') console.warn(log);\n\t\telse console.info(log);\n\t});\n\n\tconst manifest = generateManifest(\n\t\t[...serverOutputs, ...clientOutputs],\n\t\tbuildPath,\n\t\tsvelteDirName\n\t);\n\n\tif (htmlDirectoryPath && htmlPagesPath) {\n\t\tconst outputHtmlPages = join(\n\t\t\tbuildPath,\n\t\t\tbasename(htmlDirectoryPath),\n\t\t\t'pages'\n\t\t);\n\t\tawait mkdir(outputHtmlPages, { recursive: true });\n\t\tawait cp(htmlPagesPath, outputHtmlPages, {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait updateScriptTags(manifest, outputHtmlPages);\n\t}\n\n\tif (!options?.preserveIntermediateFiles && svelteDirectoryPath) {\n\t\tawait rm(join(svelteDirectoryPath, 'indexes'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait rm(join(svelteDirectoryPath, 'client'), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait Promise.all(\n\t\t\tsvelteServerPaths.map((filePath) => rm(filePath, { force: true }))\n\t\t);\n\t}\n\n\tif (!options?.preserveIntermediateFiles && reactIndexesPath) {\n\t\tawait rm(reactIndexesPath, { force: true, recursive: true });\n\t}\n\n\tconsole.log(\n\t\t`Build completed in ${getDurationString(performance.now() - buildStart)}`\n\t);\n\n\treturn manifest;\n};\n",
|
|
7
|
+
"import { BuildArtifact } from 'bun';\n\nexport const generateManifest = (\n\toutputs: BuildArtifact[],\n\tbuildDirectoryAbsolute: string,\n\tsvelteDirName?: string\n) => {\n\tconst prefix = svelteDirName ? `(?:${svelteDirName}/)?` : '';\n\tconst pagesRegex = new RegExp(`^${prefix}pages/`);\n\tconst indexesRegex = new RegExp(`^${prefix}indexes/`);\n\n\treturn outputs.reduce<Record<string, string>>((manifest, artifact) => {\n\t\tlet relativePath = artifact.path.startsWith(buildDirectoryAbsolute)\n\t\t\t? artifact.path.slice(buildDirectoryAbsolute.length)\n\t\t\t: artifact.path;\n\t\trelativePath = relativePath.replace(/^\\/+/, '');\n\t\tconst segments = relativePath.split('/');\n\t\tconst fileWithHash = segments.pop();\n\t\tif (!fileWithHash) return manifest;\n\t\tconst [baseName] = fileWithHash.split(`.${artifact.hash}.`);\n\n\t\tif (indexesRegex.test(relativePath)) {\n\t\t\tmanifest[`${baseName}Index`] = `/${relativePath}`;\n\t\t} else if (pagesRegex.test(relativePath)) {\n\t\t\tmanifest[baseName] = artifact.path;\n\t\t} else {\n\t\t\tmanifest[baseName] = `/${relativePath}`;\n\t\t}\n\n\t\treturn manifest;\n\t}, {});\n};\n",
|
|
8
|
+
"import { mkdir, rm, writeFile } from 'fs/promises';\nimport { basename, join } from 'path';\nimport { Glob } from 'bun';\n\nexport const generateReactIndexFiles = async (\n\treactPagesDirectory: string,\n\treactIndexesDirectory: string\n) => {\n\tawait rm(reactIndexesDirectory, { force: true, recursive: true });\n\tawait mkdir(reactIndexesDirectory);\n\n\tconst pagesGlob = new Glob('*.*');\n\tconst files: string[] = [];\n\tfor await (const file of pagesGlob.scan({ cwd: reactPagesDirectory })) {\n\t\tfiles.push(file);\n\t}\n\tconst promises = files.map(async (file) => {\n\t\tconst fileName = basename(file);\n\t\tconst [componentName] = fileName.split('.');\n\t\tconst content = [\n\t\t\t`import { hydrateRoot } from 'react-dom/client';`,\n\t\t\t`import type { ComponentType } from 'react'`,\n\t\t\t`import { ${componentName} } from '../pages/${componentName}';\\n`,\n\t\t\t`type PropsOf<C> = C extends ComponentType<infer P> ? P : never;\\n`,\n\t\t\t`declare global {`,\n\t\t\t`\\tinterface Window {`,\n\t\t\t`\\t\\t__INITIAL_PROPS__: PropsOf<typeof ${componentName}>`,\n\t\t\t`\\t}`,\n\t\t\t`}\\n`,\n\t\t\t`hydrateRoot(document, <${componentName} {...window.__INITIAL_PROPS__} />);`\n\t\t].join('\\n');\n\n\t\treturn writeFile(\n\t\t\tjoin(reactIndexesDirectory, `${componentName}Index.tsx`),\n\t\t\tcontent\n\t\t);\n\t});\n\tawait Promise.all(promises);\n};\n",
|
|
9
|
+
"import { Glob } from 'bun';\n\nexport const scanEntryPoints = async (dir: string, pattern: string) => {\n\tconst entryPaths: string[] = [];\n\tconst glob = new Glob(pattern);\n\tfor await (const file of glob.scan({ absolute: true, cwd: dir })) {\n\t\tentryPaths.push(file);\n\t}\n\n\treturn entryPaths;\n};\n",
|
|
10
|
+
"import { readFile, writeFile } from 'node:fs/promises';\nimport { scanEntryPoints } from './scanEntryPoints';\n\nexport const updateScriptTags = async (\n\tmanifest: Record<string, string>,\n\thtmlDir: string\n) => {\n\tconst htmlFiles = await scanEntryPoints(htmlDir, '*.html');\n\n\tconst tasks = htmlFiles.map(async (filePath) => {\n\t\tconst original = await readFile(filePath, 'utf8');\n\t\tconst updated = Object.entries(manifest).reduce(\n\t\t\t(html, [scriptName, newPath]) => {\n\t\t\t\tconst esc = scriptName.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\t\t\t\tconst regex = new RegExp(\n\t\t\t\t\t`(<script[^>]+src=[\"'])(/?(?:.*/)?${esc})(?:\\\\.[^.\"'/]+)?(\\\\.js)([\"'][^>]*>)`,\n\t\t\t\t\t'g'\n\t\t\t\t);\n\n\t\t\t\treturn html.replace(\n\t\t\t\t\tregex,\n\t\t\t\t\t(_, prefix, __, ___, suffix) =>\n\t\t\t\t\t\t`${prefix}${newPath}${suffix}`\n\t\t\t\t);\n\t\t\t},\n\t\t\toriginal\n\t\t);\n\n\t\tawait writeFile(filePath, updated, 'utf8');\n\t});\n\n\tawait Promise.all(tasks);\n};\n",
|
|
11
11
|
"import { mkdir } from 'node:fs/promises';\nimport { basename, join } from 'node:path';\nimport { env } from 'node:process';\nimport { write, file } from 'bun';\nimport { compile, preprocess } from 'svelte/compiler';\n\nexport const compileSvelte = async (\n\tentryPoints: string[],\n\toutputDirectory: string\n) => {\n\tconst pagesDir = join(outputDirectory, 'pages');\n\tconst clientDir = join(outputDirectory, 'client');\n\tconst indexesDir = join(outputDirectory, 'indexes');\n\n\tawait Promise.all([\n\t\tmkdir(clientDir, { recursive: true }),\n\t\tmkdir(indexesDir, { recursive: true })\n\t]);\n\n\tconst isDev = env.NODE_ENV === 'development';\n\n\tconst builds = await Promise.all(\n\t\tentryPoints.map(async (entry) => {\n\t\t\tconst source = await file(entry).text();\n\t\t\tconst { code: pre } = await preprocess(source, {});\n\n\t\t\tconst name = basename(entry, '.svelte');\n\n\t\t\tconst { js: ssrJs } = compile(pre, {\n\t\t\t\tcss: 'injected',\n\t\t\t\tdev: isDev,\n\t\t\t\tfilename: entry,\n\t\t\t\tgenerate: 'server'\n\t\t\t});\n\t\t\tconst ssrPath = join(pagesDir, `${name}.js`);\n\n\t\t\tconst { js: clientJs } = compile(pre, {\n\t\t\t\tcss: 'injected',\n\t\t\t\tdev: isDev,\n\t\t\t\tfilename: entry,\n\t\t\t\tgenerate: 'client'\n\t\t\t});\n\t\t\tconst clientComponentPath = join(clientDir, `${name}.js`);\n\n\t\t\tconst bootstrap = `import Component from \"../client/${name}.js\";\nimport { hydrate } from \"svelte\";\nhydrate(Component,{target:document.body,props:window.__INITIAL_PROPS__??{}});`;\n\t\t\tconst clientIndexPath = join(indexesDir, `${name}.js`);\n\n\t\t\tawait Promise.all([\n\t\t\t\twrite(ssrPath, ssrJs.code),\n\t\t\t\twrite(clientComponentPath, clientJs.code),\n\t\t\t\twrite(clientIndexPath, bootstrap)\n\t\t\t]);\n\n\t\t\treturn { clientIndexPath, ssrPath };\n\t\t})\n\t);\n\n\treturn {\n\t\tsvelteClientPaths: builds.map(({ clientIndexPath }) => clientIndexPath),\n\t\tsvelteServerPaths: builds.map(({ ssrPath }) => ssrPath)\n\t};\n};\n",
|
|
12
12
|
"import {\n\tMILLISECONDS_IN_A_SECOND,\n\tTIME_PRECISION,\n\tMILLISECONDS_IN_A_MINUTE\n} from '../constants';\n\nexport const getDurationString = (duration: number) => {\n\tlet durationString;\n\n\tif (duration < MILLISECONDS_IN_A_SECOND) {\n\t\tdurationString = `${duration.toFixed(TIME_PRECISION)}ms`;\n\t} else if (duration < MILLISECONDS_IN_A_MINUTE) {\n\t\tdurationString = `${(duration / MILLISECONDS_IN_A_SECOND).toFixed(TIME_PRECISION)}s`;\n\t} else {\n\t\tdurationString = `${(duration / MILLISECONDS_IN_A_MINUTE).toFixed(TIME_PRECISION)}m`;\n\t}\n\n\treturn durationString;\n};\n",
|
|
13
13
|
"import { resolve, relative, sep } from 'node:path';\n\nexport const validateSafePath = (targetPath: string, baseDirectory: string) => {\n\tconst absoluteBase = resolve(baseDirectory);\n\tconst absoluteTarget = resolve(baseDirectory, targetPath);\n\tif (relative(absoluteBase, absoluteTarget).startsWith(`..${sep}`)) {\n\t\tthrow new Error(`Unsafe path: ${targetPath}`);\n\t}\n\n\treturn absoluteTarget;\n};\n",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"import os from 'os';\n\nexport const getLocalIPAddress = () => {\n\tconst interfaces = os.networkInterfaces();\n\tconst addresses = Object.values(interfaces)\n\t\t.flat()\n\t\t.filter(\n\t\t\t(iface): iface is os.NetworkInterfaceInfo => iface !== undefined\n\t\t);\n\tconst ipAddress = addresses.find(\n\t\t(iface) => iface.family === 'IPv4' && !iface.internal\n\t);\n\n\tif (ipAddress) return ipAddress.address; // Return the first non-internal IPv4 address\n\n\tconsole.warn('No IP address found, falling back to localhost');\n\n\treturn 'localhost'; // Fallback to localhost if no IP found\n};\n",
|
|
19
19
|
"export const pageRouterPlugin = () => {\n\tconsole.log('Page Router Plugin Not Implemented Yet');\n};\n"
|
|
20
20
|
],
|
|
21
|
-
"mappings": ";;AAAO,IAAM,sBAAsB;AAC5B,IAAM,2BAA2B;AACjC,IAAM,2BACZ,2BAA2B;AACrB,IAAM,qBAAqB;AAC3B,IAAM,eAAe;AACrB,IAAM,wBACZ,2BACA,sBACA,qBACA;AACM,IAAM,iBAAiB;AACvB,IAAM,aAAa,IAAI;AACvB,IAAM,eAAe;AACrB,IAAM,qBAAqB;;ACdlC,eAAS,cAAI;AACb,qBAAS,mBAAU;AACnB;AACA;;;ACDO,IAAM,mBAAmB,CAC9B,SACA,2BACG;AAAA,EACH,MAAM,WAAW,QAAQ,OAA+B,CAAC,aAAa,aAAa;AAAA,IACjF,IAAI,eAAe,SAAS,KAAK,WAAW,sBAAsB,IAC9D,SAAS,KAAK,MAAM,uBAAuB,MAAM,IACjD,SAAS;AAAA,IACb,eAAe,aAAa,QAAQ,QAAQ,EAAE;AAAA,IAE9C,MAAM,WAAW,aAAa,MAAM,GAAG;AAAA,IACvC,MAAM,eAAe,SAAS,SAAS,SAAS;AAAA,IAChD,KAAK;AAAA,MAAc,OAAO;AAAA,IAE1B,OAAO,YAAY,aAAa,MAAM,IAAI,SAAS,OAAO;AAAA,IAE1D,IAAI,aAAa,SAAS,cAAc,GAAG;AAAA,MACzC,YAAY,YAAY,SAAS;AAAA,IACnC,EAAO,SAAI,aAAa,SAAS,gBAAgB,GAAG;AAAA,MAClD,YAAY,GAAG,mBAAmB,IAAI;AAAA,IACxC,EAAO;AAAA,MACL,YAAY,YAAY,IAAI;AAAA;AAAA,IAG9B,OAAO;AAAA,KACN,CAAC,CAAC;AAAA,EAEL,OAAO;AAAA;;;AC7BT;AACA;AACA;AAEO,IAAM,0BAA0B,OACnC,qBACA,0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wCAAwC;AAAA;",
|
|
22
|
+
"debugId": "F0D0DE61A724A5EB64756E2164756E21",
|
|
23
23
|
"names": []
|
|
24
24
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BuildArtifact } from
|
|
2
|
-
export declare const generateManifest: (outputs: BuildArtifact[], buildDirectoryAbsolute: string) => Record<string, string>;
|
|
1
|
+
import { BuildArtifact } from 'bun';
|
|
2
|
+
export declare const generateManifest: (outputs: BuildArtifact[], buildDirectoryAbsolute: string, svelteDirName?: string) => Record<string, string>;
|
package/eslint.config.mjs
CHANGED
|
@@ -34,7 +34,11 @@ export default defineConfig([
|
|
|
34
34
|
{
|
|
35
35
|
files: ['**/*.{ts,tsx}'],
|
|
36
36
|
languageOptions: {
|
|
37
|
-
globals:
|
|
37
|
+
globals: {
|
|
38
|
+
...globals.browser,
|
|
39
|
+
BuildMessage: 'readonly',
|
|
40
|
+
ResolveMessage: 'readonly'
|
|
41
|
+
},
|
|
38
42
|
parser: tsParser,
|
|
39
43
|
parserOptions: {
|
|
40
44
|
createDefaultProgram: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/absolute",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.15",
|
|
4
4
|
"description": "A fullstack meta-framework for building web applications with TypeScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-security": "3.0.1",
|
|
43
43
|
"postcss": "8.5.3",
|
|
44
44
|
"prettier": "3.5.3",
|
|
45
|
-
"prettier-plugin-svelte": "
|
|
45
|
+
"prettier-plugin-svelte": "3.4.0",
|
|
46
46
|
"react": "19.1.0",
|
|
47
47
|
"svelte": "5.34.7",
|
|
48
48
|
"tailwindcss": "4.1.7",
|