[web] Domi UI: @domi/ui as workspace:* (no Gitea fetch), allowJs instead of the type shim, web.nix sources the vendored package
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
"aula:shots": "playwright test --project=aula"
|
||||
},
|
||||
"dependencies": {
|
||||
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.1",
|
||||
"@domi/ui": "workspace:*",
|
||||
"@ianitor/ui": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
// Types only: tsconfig.json "paths" points "@domi/ui" here for svelte-check; Vite, Vitest and the build use the
|
||||
// package itself. @domi/ui 1.0's index.ts imports Strike.svelte, which has no <script lang="ts">, and a strict
|
||||
// svelte-check outside the package refuses that import (implicit any). These are the same exports Ianitor uses,
|
||||
// taken from the components directly. Remove this file and the "paths" entry when @domi/ui fixes Strike.svelte.
|
||||
export { default as Button } from "../node_modules/@domi/ui/src/components/Button.svelte";
|
||||
export { default as TextField } from "../node_modules/@domi/ui/src/components/TextField.svelte";
|
||||
export { default as Checkbox } from "../node_modules/@domi/ui/src/components/Checkbox.svelte";
|
||||
export { default as Select } from "../node_modules/@domi/ui/src/components/Select.svelte";
|
||||
export { default as Segmented } from "../node_modules/@domi/ui/src/components/Segmented.svelte";
|
||||
export { DomiError } from "../node_modules/@domi/ui/src/lib/keys";
|
||||
@@ -12,9 +12,10 @@
|
||||
"verbatimModuleSyntax": true,
|
||||
"isolatedModules": true,
|
||||
"skipLibCheck": true,
|
||||
"allowJs": true,
|
||||
"checkJs": false,
|
||||
"types": ["vite/client"],
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"paths": { "@domi/ui": ["./src/domi-ui-types.ts"] }
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"]
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.svelte", "tests/**/*.ts", "../../packages/ui/src/**/*.ts", "../../packages/ui/src/**/*.svelte"]
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
../../pnpm-lock.yaml
|
||||
../../apps/web
|
||||
../../packages/ui
|
||||
# @domi/ui, vendored from domi-design at a tag (docs/domi-ui.md): nothing is fetched from Gitea.
|
||||
../../packages/domi-ui
|
||||
];
|
||||
};
|
||||
|
||||
@@ -27,7 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
inherit (finalAttrs) pname version src;
|
||||
pnpm = pnpm_11;
|
||||
fetcherVersion = 4;
|
||||
hash = "sha256-Hq6LE6Bwb1AeMSMDF0RUbCSX+mMAl8uLt9rPwV6tKBs=";
|
||||
# lib.fakeHash until a machine with Nix reports the hash for this lockfile (docs/domi-ui.md).
|
||||
hash = lib.fakeHash;
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"./components.css": "./src/components.css"
|
||||
},
|
||||
"dependencies": {
|
||||
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.1"
|
||||
"@domi/ui": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^5.20.0"
|
||||
|
||||
Generated
+19
-18
@@ -11,8 +11,8 @@ importers:
|
||||
apps/web:
|
||||
dependencies:
|
||||
'@domi/ui':
|
||||
specifier: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.1
|
||||
version: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#4c7173a44488ef7459710d49c6d1678d3176cf4a(svelte@5.57.3)
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/domi-ui
|
||||
'@ianitor/ui':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/ui
|
||||
@@ -54,11 +54,26 @@ importers:
|
||||
specifier: ^3.0.5
|
||||
version: 3.2.7(@types/node@22.20.5)(jsdom@26.1.0)
|
||||
|
||||
packages/domi-ui:
|
||||
dependencies:
|
||||
'@fontsource-variable/cinzel':
|
||||
specifier: 5.3.0
|
||||
version: 5.3.0
|
||||
'@fontsource-variable/cormorant-garamond':
|
||||
specifier: 5.3.0
|
||||
version: 5.3.0
|
||||
'@fontsource-variable/manrope':
|
||||
specifier: 5.3.0
|
||||
version: 5.3.0
|
||||
svelte:
|
||||
specifier: ^5.20.0
|
||||
version: 5.57.3
|
||||
|
||||
packages/ui:
|
||||
dependencies:
|
||||
'@domi/ui':
|
||||
specifier: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.1
|
||||
version: git+https://gitea.marek-novak.cz/mnovak/domi-design.git#4c7173a44488ef7459710d49c6d1678d3176cf4a(svelte@5.57.3)
|
||||
specifier: workspace:*
|
||||
version: link:../domi-ui
|
||||
svelte:
|
||||
specifier: ^5.20.0
|
||||
version: 5.57.3
|
||||
@@ -108,13 +123,6 @@ packages:
|
||||
resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
'@domi/ui@git+https://gitea.marek-novak.cz/mnovak/domi-design.git#4c7173a44488ef7459710d49c6d1678d3176cf4a':
|
||||
resolution: {commit: 4c7173a44488ef7459710d49c6d1678d3176cf4a, repo: https://gitea.marek-novak.cz/mnovak/domi-design.git, type: git}
|
||||
version: 1.0.1
|
||||
engines: {node: '>=22'}
|
||||
peerDependencies:
|
||||
svelte: ^5.20.0
|
||||
|
||||
'@esbuild/aix-ppc64@0.25.12':
|
||||
resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
|
||||
engines: {node: '>=18'}
|
||||
@@ -1052,13 +1060,6 @@ snapshots:
|
||||
|
||||
'@csstools/css-tokenizer@3.0.4': {}
|
||||
|
||||
'@domi/ui@git+https://gitea.marek-novak.cz/mnovak/domi-design.git#4c7173a44488ef7459710d49c6d1678d3176cf4a(svelte@5.57.3)':
|
||||
dependencies:
|
||||
'@fontsource-variable/cinzel': 5.3.0
|
||||
'@fontsource-variable/cormorant-garamond': 5.3.0
|
||||
'@fontsource-variable/manrope': 5.3.0
|
||||
svelte: 5.57.3
|
||||
|
||||
'@esbuild/aix-ppc64@0.25.12':
|
||||
optional: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user