Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce94988439 | ||
|
|
2e32dba4d7 |
@@ -1,3 +1,2 @@
|
||||
* text=auto eol=lf
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"path": ".gitattributes",
|
||||
"sha256": "489fb811f97deb0befb181e8eda6330bd155b6e1a3d7cc4b717391c31cf870f0",
|
||||
"size": 59
|
||||
"sha256": "d90ccf4947d28fe9d952f38397cbb46c54591957ec375025121d5a7e61dbac44",
|
||||
"size": 40
|
||||
},
|
||||
{
|
||||
"path": ".github/CODEOWNERS",
|
||||
@@ -3162,8 +3162,8 @@
|
||||
},
|
||||
{
|
||||
"path": "tools/verify-theme-manager-1.41.2.mjs",
|
||||
"sha256": "c721fda8a7a5b569a1c4beb05255261f51fbb8935d670cc0092fef30ffd1fe4a",
|
||||
"size": 6130
|
||||
"sha256": "1f533ae4896d5130515726c845ce8b954cd22bc545cb7a73e589d63cadae3a04",
|
||||
"size": 5880
|
||||
},
|
||||
{
|
||||
"path": "tools/verify-ui-contracts-1.26.1.mjs",
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const read = rel => readFileSync(join(root, rel), 'utf8');
|
||||
const canonicalizeEol = value => String(value).replace(/\r\n?/g, '\n');
|
||||
const failures = [];
|
||||
const assert = (condition, message) => { if (!condition) failures.push(message); };
|
||||
const expectThrow = (fn, code, message) => {
|
||||
@@ -40,9 +39,7 @@ assert(!poorContrast.ok && poorContrast.failures.length >= 2, 'Kontrastfehler wu
|
||||
const before = read('public/design-system/tokens.css');
|
||||
const generated = spawnSync(process.execPath, [join(root, 'tools/generate-design-tokens.mjs')], { cwd: root, encoding: 'utf8' });
|
||||
assert(generated.status === 0, `Token-Generator fehlgeschlagen: ${generated.stderr || generated.stdout}`);
|
||||
const generatedCss = read('public/design-system/tokens.css');
|
||||
assert(canonicalizeEol(before) === canonicalizeEol(generatedCss), 'Token-Generator ist inhaltlich nicht deterministisch');
|
||||
assert(!generatedCss.includes('\r'), 'Token-Generator muss kanonische LF-Zeilenenden schreiben');
|
||||
assert(before === read('public/design-system/tokens.css'), 'Token-Generator ist nicht deterministisch');
|
||||
|
||||
const manifest = JSON.parse(read('app/modules/themes/module.json'));
|
||||
assert(manifest.status === 'native', 'Theme-Modul ist nicht nativ');
|
||||
|
||||
Reference in New Issue
Block a user