mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-19 09:36:59 +03:00
Refresh the Impeccable product experience
Rework the landing page proof, steering demo, feature grid, slop catalog, detector coverage, theming, Live workflow, and responsive behavior.\n\nAI-assisted implementation by OpenAI Codex.
This commit is contained in:
@@ -117,26 +117,16 @@ for (const name of listFixtures()) {
|
||||
const ignored = execFileSync('git', [
|
||||
'check-ignore',
|
||||
'.impeccable/live/server.json',
|
||||
'.impeccable/live/codex-worker.json',
|
||||
'.impeccable/live/codex-worker.log',
|
||||
'.impeccable/live/sessions/example.jsonl',
|
||||
'.impeccable/live/previews/example/v1.html',
|
||||
'.impeccable/live/artifacts/example-r1.jsx',
|
||||
'.impeccable/live/accept-receipts/example.json',
|
||||
'.impeccable/live/locks/example.lock',
|
||||
'.impeccable/live/deferred-svelte-component-accepts.json',
|
||||
'src/lib/impeccable/ImpeccableLiveRoot.svelte',
|
||||
'src/lib/impeccable/__runtime.js',
|
||||
'src/lib/impeccable/a4ac4e74/v3.svelte',
|
||||
], { cwd: tmp, encoding: 'utf-8' });
|
||||
assert.match(ignored, /\.impeccable\/live\/server\.json/);
|
||||
assert.match(ignored, /\.impeccable\/live\/codex-worker\.json/);
|
||||
assert.match(ignored, /\.impeccable\/live\/codex-worker\.log/);
|
||||
assert.match(ignored, /\.impeccable\/live\/sessions\/example\.jsonl/);
|
||||
assert.match(ignored, /\.impeccable\/live\/previews\/example\/v1\.html/);
|
||||
assert.match(ignored, /\.impeccable\/live\/artifacts\/example-r1\.jsx/);
|
||||
assert.match(ignored, /\.impeccable\/live\/accept-receipts\/example\.json/);
|
||||
assert.match(ignored, /\.impeccable\/live\/locks\/example\.lock/);
|
||||
assert.match(ignored, /\.impeccable\/live\/deferred-svelte-component-accepts\.json/);
|
||||
assert.match(ignored, /src\/lib\/impeccable\/ImpeccableLiveRoot\.svelte/);
|
||||
assert.match(ignored, /src\/lib\/impeccable\/__runtime\.js/);
|
||||
@@ -152,15 +142,6 @@ for (const name of listFixtures()) {
|
||||
assert.match(root, /localhost:9999\/live\.js/, 'SvelteKit root component loads live.js');
|
||||
return;
|
||||
}
|
||||
if (result.adapter === 'nuxt') {
|
||||
const plugin = result.results[0];
|
||||
const body = readFileSync(join(tmp, plugin.file), 'utf-8');
|
||||
assert.equal(plugin.inserted, true, 'Nuxt client plugin was created');
|
||||
assert.match(body, /impeccable-live-nuxt-plugin/);
|
||||
assert.match(body, /if \(!import\.meta\.dev/);
|
||||
assert.match(body, /localhost:9999\/live\.js/);
|
||||
return;
|
||||
}
|
||||
for (const r of result.results) {
|
||||
assert.ok(r.inserted, `${r.file} got the tag (result: ${JSON.stringify(r)})`);
|
||||
const body = readFileSync(join(tmp, r.file), 'utf-8');
|
||||
@@ -188,11 +169,6 @@ for (const name of listFixtures()) {
|
||||
assert.equal(existsSync(join(tmp, 'src/lib/impeccable/ImpeccableLiveRoot.svelte')), false);
|
||||
return;
|
||||
}
|
||||
if (result.adapter === 'nuxt') {
|
||||
assert.equal(result.results[0].removed, true);
|
||||
assert.equal(existsSync(join(tmp, result.results[0].file)), false, 'Nuxt client plugin was removed');
|
||||
return;
|
||||
}
|
||||
for (const r of result.results) {
|
||||
const body = readFileSync(join(tmp, r.file), 'utf-8');
|
||||
assert.doesNotMatch(body, /impeccable-live-start/);
|
||||
|
||||
Reference in New Issue
Block a user