Skip to content

Commit d9b9bab

Browse files
committed
Cleanup the noise from the repo.
1 parent 18975af commit d9b9bab

15 files changed

Lines changed: 40 additions & 1030 deletions

File tree

‎FEATURES.md‎

Lines changed: 4 additions & 906 deletions
Large diffs are not rendered by default.

‎README_WRITING_CHECKLIST.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Create a README that is inspiring, accurate, and robust:
2525
package metadata.
2626
- Do not present future plans as current features.
2727
- Do not position PureStack as a TypeScript backend/server ideology.
28-
- Do not couple PureStack to PureGate or any independent downstream project.
28+
- Do not couple PureStack to independent downstream projects.
2929
- Do not imply an open-source/pro split before the product strategy is decided.
3030
- Do not include install or publish commands unless they are true for the public
3131
release state.
@@ -276,7 +276,7 @@ Use this outline unless a better code-derived structure appears.
276276
Run this before accepting the README.
277277

278278
- No claim depends only on docs.
279-
- No PureGate coupling.
279+
- No downstream project coupling.
280280
- No TypeScript-server ideology.
281281
- No invented examples.
282282
- No unverified commands.

‎REGOR_REACTIVITY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Regor Reactivity
22

3-
This document describes the baseline reactivity model we use in PureStack and
4-
PureGate code. It starts with the common path: how to use `ref`, `sref`, and
3+
This document describes the baseline reactivity model used in PureStack code.
4+
It starts with the common path: how to use `ref`, `sref`, and
55
`flatten` correctly without losing type safety.
66

77
## Reactive Factories

‎frontend/IMPLEMENTATION.md‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ borders, generous spacing, and an interactive source/preview workbench.
6060

6161
This is an implementation-oriented architecture review of the package boundaries,
6262
core rendering/build paths, and relevant component APIs. It is not an exhaustive
63-
line-by-line audit of every source file, generated asset, or the separate PureGate
64-
backend.
63+
line-by-line audit of every source file or generated asset.
6564

6665
- The public `purestack` package exports the SSG API and CLI. Current build
6766
input is `{ siteConfig, options, publish }`; older README examples using
@@ -84,8 +83,6 @@ backend.
8483
checked against that generated registry.
8584
- The VS Code extension provides component completion, definition lookup,
8685
metadata-aware hover, linked editing, formatting, and template diagnostics.
87-
- PureGate's local application demonstrates product/admin uses; its backend is
88-
a separate system and is not presented as a frontend framework capability.
8986

9087
## Page plan
9188

‎frontend/README.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ definition in `studioComponents.ts`, and register only the extra layout styles
7171
it needs. `demoStyle.ts` intentionally remains a small,
7272
self-contained example matching the workbench's displayed Style API source.
7373

74-
The page deliberately describes the framework as pre-release and uses the
75-
repository workflow instead of assuming an npm release already exists. Update
76-
the release announcement, quick start, and availability FAQ when publishing.
77-
GitHub links target `PureStackStudio/PureStack` and the `main` branch.
74+
The page presents the published npm package and links to the CLI guide for new
75+
projects. Its quick start still uses the repository workflow to run the included
76+
sample site. GitHub links target `PureStackStudio/PureStack` and the `main` branch.
7877

7978
## Component documentation
8079

‎frontend/purestack.studio/guides/purestack-cli.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ nav:
1515

1616
The `purestack` command builds a static site from a content directory. It discovers Markdown and Regor MDX pages, creates routes and navigation, generates theme styles, copies assets, and builds a search index when enabled. The same command also runs a development server and prepares a clean folder for publishing.
1717

18-
PureStack is still in development. The commands below use the `yarn purestack` script in a PureStack repository checkout. Run them from the repository root. The `purestack` executable accepts the same commands and options when used directly.
18+
Install `purestack` in your project with `yarn add purestack`. The commands below use the installed `purestack` executable through Yarn. Run them from your project root. You can also explore the [repository's sample site](https://github.com/PureStackStudio/PureStack/tree/main/packages/ts-ssg/sample-content).
1919

2020
## Build a first site
2121

22-
Create this folder beside the repository's `package.json`:
22+
Create this folder beside your project's `package.json`:
2323

2424
```text
2525
content/

‎frontend/purestack.studio/index.mdx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ nav:
1616
<div class="container hero-content">
1717
<a class="release-note" href="https://github.com/PureStackStudio/PureStack">
1818
<span class="status-dot"></span
19-
><span>OPEN SOURCE. GETTING READY FOR LAUNCH.</span
19+
><span>PURESTACK IS NOW OPEN SOURCE.</span
2020
><span aria-hidden="true">↗</span>
2121
</a>
2222
<h1 id="hero-title">One language.<br/><span>A whole frontend.</span></h1>
@@ -475,8 +475,9 @@ card.<span class="syntax-blue">toCSS</span>()</code></pre>
475475
<span class="eyebrow">03 / START BUILDING</span>
476476
<h2 id="start-title">Make something<br/><span>of your own.</span></h2>
477477
<p>
478-
PureStack is preparing for its first public release. Explore the source
479-
and run the included examples today.
478+
Install <code>purestack</code> from npm to build your own site. Explore
479+
the source and run the included examples with the steps here, or follow
480+
the <a href="/guides/purestack-cli/">CLI guide</a> to start a project.
480481
</p>
481482
<ol class="start-steps">
482483
<li>
@@ -572,10 +573,11 @@ card.<span class="syntax-blue">toCSS</span>()</code></pre>
572573
serve from a static host or your own infrastructure. Your browser code can
573574
talk to whichever backend your product uses.
574575
</StudioFaq>
575-
<StudioFaq title="Is PureStack available yet?">
576-
The framework is preparing for its first public release. The quick start
577-
above uses the repository's local development workflow. Follow the GitHub
578-
repository for release updates and package availability.
576+
<StudioFaq title="How do I install PureStack?">
577+
Add the published package to your project with <code>yarn add purestack</code>.
578+
The quick start above runs the included sample from a repository checkout;
579+
the <a href="/guides/purestack-cli/">CLI guide</a> shows how to build your
580+
own site with the installed package.
579581
</StudioFaq>
580582
</div>
581583
</Grid>

‎package.json‎

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"regor-components": "yarn tsx scripts/regor-components.ts",
4040
"gen-icons": "yarn tsx scripts/generate-icons.ts",
4141
"build": "echo 'Building...' && yarn workspaces foreach --no-private --all --verbose --topological -- run build",
42-
"lint": "yarn workspaces foreach --no-private --all --verbose --topological -- run lint && yarn lint-puregate",
42+
"lint": "yarn workspaces foreach --no-private --all --verbose --topological -- run lint",
4343
"check-eol": "node scripts/check-eol.js",
4444
"sync-purestack-version": "yarn tsx --no-warnings scripts/sync-purestack-version.ts",
4545
"bundle": "yarn tsx --no-warnings scripts/bundle.ts",
@@ -50,23 +50,6 @@
5050
"pack-vscode-ext": "yarn --cwd packages/ts-ssg-vscode build && yarn --cwd packages/ts-ssg-vscode package",
5151
"longest": "yarn tsx ./scripts/longest-functions.ts",
5252
"format": "biome format --write",
53-
"pre-commit": "yarn check-eol && yarn sync-purestack-version && yarn regor-components && yarn embed && yarn format && yarn lint && yarn build && yarn test run",
54-
"puregate": "yarn tsx --watch packages/ts-ssg/src/cli.ts serve --content PureGate/PureGateApp/admin-panel",
55-
"puregate.frontend": "yarn tsx --watch packages/ts-ssg/src/cli.ts serve --content PureGate/PureGateApp/admin-frontend",
56-
"puregate:publish": "yarn puregate:publish:web && yarn puregate:publish:app",
57-
"puregate:publish:web": "yarn tsx packages/ts-ssg/src/cli.ts publish --content PureGate/PureGateApp/admin-panel",
58-
"puregate:publish:frontend": "yarn tsx packages/ts-ssg/src/cli.ts publish --content PureGate/PureGateApp/admin-frontend",
59-
"puregate:publish:app": "powershell -ExecutionPolicy Bypass -Command \"Set-Location './PureGate'; ./scripts/package-bootstrap.ps1\"",
60-
"puregate:deploy:web": "pgdeploy deploy --host https://admin.puregate.dev --package ./PureGate/PureGateApp/.puregate/content/puregate.local/web --allow-path 'pagefind/*,.ts-ssg/manifest.json'",
61-
"puregate:deploy:frontend": "pgdeploy deploy --host https://puregate.dev --package ./PureGate/PureGateApp/.puregate/content/puregate.dev/web --allow-path 'pagefind/*,.ts-ssg/manifest.json'",
62-
"serve:zonetree": "yarn tsx --watch packages/ts-ssg/src/cli.ts serve --content PureGate/PureGateApp/zonetree-dev --port 4500",
63-
"publish:zonetree": "yarn tsx packages/ts-ssg/src/cli.ts publish --content PureGate/PureGateApp/zonetree-dev",
64-
"deploy:zonetree": "pgdeploy deploy --host https://zonetree.dev --package ./PureGate/PureGateApp/.puregate/content/zonetree.dev/web --allow-path 'pagefind/*,.ts-ssg/manifest.json'",
65-
"serve:tenray": "yarn tsx --watch packages/ts-ssg/src/cli.ts serve --content PureGate/PureGateApp/tenray-dev --port 4600",
66-
"publish:tenray": "yarn tsx packages/ts-ssg/src/cli.ts publish --content PureGate/PureGateApp/tenray-dev",
67-
"deploy:tenray": "pgdeploy deploy --host https://tenray.dev --package ./PureGate/PureGateApp/.puregate/content/tenray.dev/web --allow-path 'pagefind/*,.ts-ssg/manifest.json'",
68-
"puregate:deploy:app": "pgdeploy artifact deploy --host https://admin.puregate.dev --artifact system/puregate --package PureGate/artifacts/bootstrap/work/package/release --apply true --allow-path='admin-panel/.ts-ssg/manifest.json,admin-panel/pagefind*' --allow-path='release-id,watchdog/puregate,deploy/pgdeploy,app/PureGateApp,app/*.so,app/*.so.dbg,app/*.pdb,app/*.staticwebassets.*,manifest.json'",
69-
"lint-puregate": "biome check PureGate/PureGateApp/admin-panel --write --formatter-enabled=false",
70-
"format-puregate": "biome format PureGate/PureGateApp/admin-panel --write"
53+
"pre-commit": "yarn check-eol && yarn sync-purestack-version && yarn regor-components && yarn embed && yarn format && yarn lint && yarn build && yarn test run"
7154
}
7255
}

‎packages/ts-components/src/standard/composer/composer.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export function createComposerBodyHtml(contentHtml = '', placeholder?: string) {
534534
const placeholderAttribute = placeholder
535535
? ` data-placeholder="${escapeHtmlAttribute(placeholder)}"`
536536
: ''
537-
return `<div data-puregate-composer-body="true"${placeholderAttribute} style="${COMPOSER_BODY_STYLE}">${contentHtml}</div>`
537+
return `<div data-composer-body="true"${placeholderAttribute} style="${COMPOSER_BODY_STYLE}">${contentHtml}</div>`
538538
}
539539

540540
function createEmptyEditorHtml(placeholder: string | undefined) {
@@ -657,7 +657,7 @@ function appendSanitizedNode(
657657
imageSrc &&
658658
normalizeEmailCidUrl(imageSrc)
659659
) {
660-
element.setAttribute('data-puregate-cid-src', imageSrc)
660+
element.setAttribute('data-composer-cid-src', imageSrc)
661661
} else {
662662
element.setAttribute('src', imageSrc ?? '')
663663
}
@@ -684,7 +684,7 @@ function sanitizeImageSrc(value: string, options: SanitizeHtmlOptions) {
684684
}
685685

686686
function restoreDeferredCidImageSources(html: string) {
687-
return html.replace(/\sdata-puregate-cid-src="([^"]*)"/g, ' src="$1"')
687+
return html.replace(/\sdata-composer-cid-src="([^"]*)"/g, ' src="$1"')
688688
}
689689

690690
function sanitizeHref(value: string) {

‎packages/ts-components/src/standard/composer/composerCanvasSharedStyle.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function registerComposerCanvasPreviewDefaults({
3535

3636
styleBuilder
3737
.select(
38-
'.composer__editor [data-puregate-composer-body]:empty::before',
38+
'.composer__editor [data-composer-body]:empty::before',
3939
theme,
4040
)
4141
.content('attr(data-placeholder)')

0 commit comments

Comments
 (0)