Skip to content

Commit d17956d

Browse files
authored
Merge pull request #42 from PureStackStudio/shared-library-bundler
Add shared dependency bundler.
2 parents c4a1a8b + 5bebb79 commit d17956d

36 files changed

Lines changed: 1056 additions & 37 deletions

File tree

‎frontend/purestack.studio/guides/getting-started/site-config.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ With the folder layout above, `index.mdx` renders at `/`, and `guides/getting-st
6363
| `basePath` | Public mount path, such as `/docs`, used in generated URLs and the dev server. It does not add a `docs` folder inside the output directory. |
6464
| `html.minify` | Minifies generated HTML during a normal build; defaults to `false`. |
6565
| `scripts.cacheBusting` | Adds a build cache key to emitted local TypeScript script filenames; defaults to `true`. |
66+
| `scripts.sharedLibraries` | Package import specifiers shared across page scripts. Regor is always included. List subpaths explicitly; generated modules use content-hashed filenames under `assets/runtime/`. |
6667

6768
For example, with `"outDir": "../dist/site"` in `content/siteConfig.json`, the build writes into `dist/site` beside `content`. `"basePath": "/docs"` makes the home page publicly available at `/docs/`, while its output file remains `dist/site/index.html`. Host that output at `/docs/`; changing the config alone cannot change a host's routing.
6869

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "purestack-repo",
4-
"version": "1.1.18",
4+
"version": "1.1.19",
55
"packageManager": "yarn@4.18.1",
66
"type": "module",
77
"sideEffects": false,

‎packages/purestack/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "purestack",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/purestack.mjs",
66
"types": "./dist/purestack.d.mts",

‎packages/purestack/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const version: string = '1.1.18'
1+
export const version: string = '1.1.19'
22

33
export * from '@purestack/ts-ssg'

‎packages/ts-common/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-common",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-common.mjs",
66
"types": "./dist/ts-common.d.mts",

‎packages/ts-common/src/site-config-types.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export interface AuthConfig {
7373

7474
export interface SiteScriptsConfig {
7575
cacheBusting: boolean
76+
/** Package import specifiers emitted as shared browser modules. Regor is always included. */
77+
sharedLibraries: string[]
7678
}
7779

7880
export interface SiteStyleConfig {

‎packages/ts-components/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-components",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-components.mjs",
66
"types": "./dist/ts-components.d.mts",

‎packages/ts-css/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-css",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-css.mjs",
66
"types": "./dist/ts-css.d.mts",

‎packages/ts-highlight/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-highlight",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-highlight.mjs",
66
"types": "./dist/ts-highlight.d.mts",

‎packages/ts-html/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purestack/ts-html",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"packageManager": "yarn@4.9.2",
55
"module": "./dist/ts-html.mjs",
66
"types": "./dist/ts-html.d.mts",

0 commit comments

Comments
 (0)