Add Git-installable shared code package
Lint / Lint (Go) (push) Successful in 31s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 14s
Tests / Test (Go) (push) Successful in 14s
Tests / Test (Python) (push) Successful in 16s
Lint / Lint (Node/Svelte) (push) Successful in 13s

This commit is contained in:
Gabriel20xx committed 2026-08-04 15:38:26 +02:00
1 parent fbbdab49bc
commit 4baa4dccd7
5 files changed
+654 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { readFile, writeFile } from 'node:fs/promises';
const source = await readFile(new URL('../packages/web-ui/dist/styles.css', import.meta.url), 'utf8');
const tokenImport = "@import '@gabriel20xx/design-tokens/theme.css';";
const componentStyles = source.replace(`${tokenImport}\n`, '');
await writeFile(
new URL('../shared-styles.css', import.meta.url),
`@import './packages/design-tokens/theme.css';\n\n${componentStyles}`,
'utf8'
);