vize 0.426.2 → 0.427.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{config-HHYqgb_B.d.mts → config-BWYKvnZ4.d.mts} +43 -2
- package/dist/config-BWYKvnZ4.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- package/package.json +2 -2
- package/pkl/CompilerConfig.pkl +4 -0
- package/pkl/LibConfig.pkl +33 -0
- package/pkl/VizeConfig.pkl +4 -0
- package/pkl/jsonschema/ConfigArtifactDefinitions.pkl +6 -0
- package/pkl/jsonschema/generate.pkl +54 -0
- package/pkl/vize.pkl +2 -0
- package/schemas/vize-lib-lock.schema.json +90 -0
- package/schemas/vize-lib-registry.schema.json +170 -0
- package/schemas/vize.config.schema.json +62 -0
- package/src/index.ts +1 -0
- package/src/types/generated.ts +43 -0
- package/src/types/index.ts +1 -0
- package/dist/config-HHYqgb_B.d.mts.map +0 -1
|
@@ -53,6 +53,7 @@ interface VizeConfig {
|
|
|
53
53
|
lsp?: LanguageServerConfig;
|
|
54
54
|
musea?: MuseaConfig;
|
|
55
55
|
globalTypes?: GlobalTypesConfig;
|
|
56
|
+
lib?: LibConfig;
|
|
56
57
|
/**
|
|
57
58
|
* Scoped config entries for monorepos and workspaces
|
|
58
59
|
*/
|
|
@@ -94,6 +95,10 @@ interface CompilerConfig {
|
|
|
94
95
|
* Template syntax compatibility mode
|
|
95
96
|
*/
|
|
96
97
|
templateSyntax?: "standard" | "strict" | "quirks";
|
|
98
|
+
/**
|
|
99
|
+
* Vue template whitespace strategy or opt-in Vue 2 line-break migration mode
|
|
100
|
+
*/
|
|
101
|
+
whitespace?: "condense" | "preserve" | "vue2-line-breaks";
|
|
97
102
|
/**
|
|
98
103
|
* Enable source map generation
|
|
99
104
|
*/
|
|
@@ -637,6 +642,42 @@ interface GlobalTypeDeclaration {
|
|
|
637
642
|
*/
|
|
638
643
|
defaultValue?: string;
|
|
639
644
|
}
|
|
645
|
+
/**
|
|
646
|
+
* vize lib source distribution options; paths are relative to the config file
|
|
647
|
+
*/
|
|
648
|
+
interface LibConfig {
|
|
649
|
+
/**
|
|
650
|
+
* Destination for every registry kind unless a kind-specific directory is set
|
|
651
|
+
*/
|
|
652
|
+
dir?: string;
|
|
653
|
+
/**
|
|
654
|
+
* Destination for @vizejs/ui items (default: src/components/vize)
|
|
655
|
+
*/
|
|
656
|
+
uiDir?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Destination for @vizejs/composable items (default: src/composables/vize)
|
|
659
|
+
*/
|
|
660
|
+
composableDir?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Lockfile path (default: vize-lib.lock.json)
|
|
663
|
+
*/
|
|
664
|
+
lockfile?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Third-party registries by @namespace, pulled as @namespace/<item>
|
|
667
|
+
*/
|
|
668
|
+
registries?: {
|
|
669
|
+
[k: string]: string | {
|
|
670
|
+
/**
|
|
671
|
+
* Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json
|
|
672
|
+
*/
|
|
673
|
+
source: string;
|
|
674
|
+
/**
|
|
675
|
+
* Destination directory for this namespace's items
|
|
676
|
+
*/
|
|
677
|
+
dir?: string;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
}
|
|
640
681
|
/**
|
|
641
682
|
* Scoped Vize config entry for monorepos and workspaces
|
|
642
683
|
*/
|
|
@@ -773,5 +814,5 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
|
|
|
773
814
|
*/
|
|
774
815
|
declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
|
|
775
816
|
//#endregion
|
|
776
|
-
export {
|
|
777
|
-
//# sourceMappingURL=config-
|
|
817
|
+
export { MuseaAutogenConfig as A, GlobalTypeDeclaration as C, LintPreset as D, LibConfig as E, TypeCheckerConfig as F, VitePluginConfig as I, VizeConfig as L, MuseaVrtConfig as M, RuleCategory as N, LinterConfig as O, RuleSeverity as P, VizeConfigEntry as R, FormatterConfig as S, LanguageServerConfig as T, VueConfig as _, loadConfig as a, CompilerCompatibilityConfig as b, LspConfig as c, MaybePromise as d, ResolvedVizeConfig as f, UserConfigInput as g, UserConfigExport as h, defineConfig as i, MuseaConfig as j, MuseaA11yConfig as k, ConfigEnv as l, UserConfigEntry as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, UserConfig as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LoadConfigOptions as u, LintRuleName as v, GlobalTypesConfig as w, CompilerConfig as x, LintRulesConfig as y, VueVersion as z };
|
|
818
|
+
//# sourceMappingURL=config-BWYKvnZ4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-BWYKvnZ4.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;AAFY;KAOZ,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAiBW;;;EAbX,KAAA;EAyBY;;;EArBZ,OAAA;EAyBc;;;EArBd,OAAA;EA0ByB;;;EAtBzB,OAAA;EACA,QAAA,GAAW,cAAA;EACX,aAAA;IAAA,CACG,CAAA;MAAA,CAGM,CAAA;IAAA;EAAA;EAIT,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EACd,GAAA,GAAM,SAAA;EALM;;;EASZ,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EATf;;;E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GtB,OAAA,GAAU,UAAU;AAAA;AAAA,KAGV,eAAA,GAAkB,eAAA;EFJN;AAAA;AAKxB;EEGE,GAAA,GAAM,SAAS;AAAA;AAAA,KAGL,UAAA,GAAa,IAAA,CAAK,UAAA;EFNR;AAKtB;;EEKE,GAAA,GAAM,SAAA;EFoBK;;;;EEfX,GAAA,GAAM,oBAAA;EF4BW;;;EExBjB,OAAA,GAAU,eAAA;AAAA;AAAA,KAGA,eAAA,GAAkB,UAAA,GAAa,eAAe;AAAA,KAE9C,kBAAA,GAAqB,UAAA;EF2BN;;;;EEtBzB,OAAA,EAAS,eAAe;AAAA;AAAA,KAGd,gBAAA,GACR,eAAA,KACE,GAAA,EAAK,SAAA,KAAc,YAAA,CAAa,eAAA;AAAA,UAMrB,iBAAA;EFVJ;;;;;;;EEkBX,IAAA;EFPA;;;EEYA,UAAA;EFVA;;;EEeA,GAAA,GAAM,SAAS;AAAA;;;;;;KCnDL,SAAA,GAAS,oBAAgD;;;cCNxD,iBAAA;AAAA,cAeA,4BAAA;AAAA,cAMA,2BAAA;;AJrCS;AAQtB;;iBImCgB,YAAA,CAAa,MAAA,EAAQ,gBAAA,GAAmB,gBAAgB;;AJnChD;AAExB;iBIwCsB,UAAA,CACpB,IAAA,UACA,OAAA,GAAS,iBAAA,GACR,OAAA,CAAQ,kBAAA;AAAA,iBA0FW,mBAAA,CACpB,QAAA,EAAU,gBAAA,EACV,GAAA,GAAM,SAAA,GACL,OAAA,CAAQ,kBAAA;;AJxIa;AAKxB;iBI+NgB,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-BWYKvnZ4.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfig, type UserConfigEntry, type UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueConfig, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
|
|
1
|
+
import { A as MuseaAutogenConfig, C as GlobalTypeDeclaration, D as LintPreset, E as LibConfig, F as TypeCheckerConfig, I as VitePluginConfig, L as VizeConfig, M as MuseaVrtConfig, N as RuleCategory, O as LinterConfig, P as RuleSeverity, R as VizeConfigEntry, S as FormatterConfig, T as LanguageServerConfig, _ as VueConfig, a as loadConfig, b as CompilerCompatibilityConfig, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as UserConfigInput, h as UserConfigExport, i as defineConfig, j as MuseaConfig, k as MuseaA11yConfig, l as ConfigEnv, m as UserConfigEntry, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfig, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as LintRuleName, w as GlobalTypesConfig, x as CompilerConfig, y as LintRulesConfig, z as VueVersion } from "./config-BWYKvnZ4.mjs";
|
|
2
|
+
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LibConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfig, type UserConfigEntry, type UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueConfig, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/ubugeeei-prod/vize/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@vizejs/native": "0.
|
|
10
|
+
"@vizejs/native": "0.427.0",
|
|
11
11
|
"oxc-transform": "0.144.0"
|
|
12
12
|
},
|
|
13
13
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"version": "0.
|
|
109
|
+
"version": "0.427.0",
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "vp run --workspace-root generate:rule-types && vp pack",
|
|
112
112
|
"check": "vp check src tests vite.config.ts",
|
package/pkl/CompilerConfig.pkl
CHANGED
|
@@ -3,6 +3,7 @@ module vize.CompilerConfig
|
|
|
3
3
|
|
|
4
4
|
typealias VueVersion = "3"|"2.7"|"2"|"1"|"0.11"|"0.10"
|
|
5
5
|
typealias TemplateSyntax = "standard" | "strict" | "quirks"
|
|
6
|
+
typealias Whitespace = "condense" | "preserve" | "vue2-line-breaks"
|
|
6
7
|
typealias JsxMode = "vdom" | "vapor"
|
|
7
8
|
typealias JsxCompat = "native" | "babel"
|
|
8
9
|
|
|
@@ -51,6 +52,9 @@ class CompilerConfig {
|
|
|
51
52
|
/// Template syntax compatibility mode.
|
|
52
53
|
templateSyntax: TemplateSyntax = "standard"
|
|
53
54
|
|
|
55
|
+
/// Vue template whitespace strategy or opt-in Vue 2 line-break migration mode.
|
|
56
|
+
whitespace: Whitespace = "condense"
|
|
57
|
+
|
|
54
58
|
/// Enable source map generation.
|
|
55
59
|
sourceMap: Boolean = false
|
|
56
60
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// `vize lib` source distribution configuration.
|
|
2
|
+
///
|
|
3
|
+
/// Paths are relative to the directory that holds the config file. Pulled
|
|
4
|
+
/// files keep the registry layout below the chosen directory, so relative
|
|
5
|
+
/// imports between pulled items resolve without rewrites.
|
|
6
|
+
module vize.LibConfig
|
|
7
|
+
|
|
8
|
+
/// Third-party registry location: a path (relative to the config file) to a
|
|
9
|
+
/// `registry.json`, its directory, or a package directory; `npm:<package>[@range]`;
|
|
10
|
+
/// or an `https://` URL of a `registry.json`.
|
|
11
|
+
class LibRegistry {
|
|
12
|
+
source: String
|
|
13
|
+
|
|
14
|
+
/// Destination directory for this namespace's items.
|
|
15
|
+
dir: String? = null
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class LibConfig {
|
|
19
|
+
/// Destination for every registry kind unless a kind-specific directory is set.
|
|
20
|
+
dir: String? = null
|
|
21
|
+
|
|
22
|
+
/// Destination for `@vizejs/ui` items. Default: `src/components/vize`.
|
|
23
|
+
uiDir: String? = null
|
|
24
|
+
|
|
25
|
+
/// Destination for `@vizejs/composable` items. Default: `src/composables/vize`.
|
|
26
|
+
composableDir: String? = null
|
|
27
|
+
|
|
28
|
+
/// Lockfile path. Default: `vize-lib.lock.json`.
|
|
29
|
+
lockfile: String? = null
|
|
30
|
+
|
|
31
|
+
/// Third-party registries by `@namespace`, pulled as `@namespace/<item>`.
|
|
32
|
+
registries: Mapping<String, String|LibRegistry> = new Mapping {}
|
|
33
|
+
}
|
package/pkl/VizeConfig.pkl
CHANGED
|
@@ -22,6 +22,7 @@ import "FormatterConfig.pkl"
|
|
|
22
22
|
import "LanguageServerConfig.pkl"
|
|
23
23
|
import "MuseaConfig.pkl"
|
|
24
24
|
import "GlobalTypesConfig.pkl"
|
|
25
|
+
import "LibConfig.pkl"
|
|
25
26
|
|
|
26
27
|
typealias ConfigExtends = String | Listing<String>
|
|
27
28
|
|
|
@@ -149,5 +150,8 @@ musea: MuseaConfig.MuseaConfig = new MuseaConfig.MuseaConfig {}
|
|
|
149
150
|
/// Global type declarations.
|
|
150
151
|
globalTypes: GlobalTypesConfig.GlobalTypesConfig = new GlobalTypesConfig.GlobalTypesConfig {}
|
|
151
152
|
|
|
153
|
+
/// `vize lib` source distribution options.
|
|
154
|
+
lib: LibConfig.LibConfig = new LibConfig.LibConfig {}
|
|
155
|
+
|
|
152
156
|
/// Scoped config entries for monorepos and workspaces.
|
|
153
157
|
entries: Listing<ConfigEntry>? = null
|
|
@@ -109,6 +109,12 @@ compilerConfigDef: JsonSchema = new JsonSchema {
|
|
|
109
109
|
description = "Template syntax compatibility mode"
|
|
110
110
|
default = "standard"
|
|
111
111
|
}
|
|
112
|
+
["whitespace"] = new JsonSchema {
|
|
113
|
+
type = "string"
|
|
114
|
+
enum = new Listing { "condense"; "preserve"; "vue2-line-breaks" }
|
|
115
|
+
description = "Vue template whitespace strategy or opt-in Vue 2 line-break migration mode"
|
|
116
|
+
default = "condense"
|
|
117
|
+
}
|
|
112
118
|
["sourceMap"] = new JsonSchema {
|
|
113
119
|
type = "boolean"
|
|
114
120
|
description = "Enable source map generation"
|
|
@@ -444,6 +444,58 @@ local globalTypesConfigDef: JsonSchema = new JsonSchema {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
local libConfigDef: JsonSchema = new JsonSchema {
|
|
448
|
+
type = "object"
|
|
449
|
+
description = "vize lib source distribution options; paths are relative to the config file"
|
|
450
|
+
properties {
|
|
451
|
+
["dir"] = new JsonSchema {
|
|
452
|
+
type = "string"
|
|
453
|
+
description = "Destination for every registry kind unless a kind-specific directory is set"
|
|
454
|
+
}
|
|
455
|
+
["uiDir"] = new JsonSchema {
|
|
456
|
+
type = "string"
|
|
457
|
+
description = "Destination for @vizejs/ui items (default: src/components/vize)"
|
|
458
|
+
}
|
|
459
|
+
["composableDir"] = new JsonSchema {
|
|
460
|
+
type = "string"
|
|
461
|
+
description = "Destination for @vizejs/composable items (default: src/composables/vize)"
|
|
462
|
+
}
|
|
463
|
+
["lockfile"] = new JsonSchema {
|
|
464
|
+
type = "string"
|
|
465
|
+
description = "Lockfile path (default: vize-lib.lock.json)"
|
|
466
|
+
}
|
|
467
|
+
["registries"] = new JsonSchema {
|
|
468
|
+
type = "object"
|
|
469
|
+
description = "Third-party registries by @namespace, pulled as @namespace/<item>"
|
|
470
|
+
propertyNames = new JsonSchema { pattern = "^@[a-z0-9][a-z0-9._-]*$" }
|
|
471
|
+
additionalProperties = new JsonSchema {
|
|
472
|
+
oneOf = new Listing {
|
|
473
|
+
new JsonSchema {
|
|
474
|
+
type = "string"
|
|
475
|
+
description = "Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json"
|
|
476
|
+
}
|
|
477
|
+
new JsonSchema {
|
|
478
|
+
type = "object"
|
|
479
|
+
properties {
|
|
480
|
+
["source"] = new JsonSchema {
|
|
481
|
+
type = "string"
|
|
482
|
+
description = "Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json"
|
|
483
|
+
}
|
|
484
|
+
["dir"] = new JsonSchema {
|
|
485
|
+
type = "string"
|
|
486
|
+
description = "Destination directory for this namespace's items"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
required = new Listing { "source" }
|
|
490
|
+
additionalProperties = false
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
additionalProperties = false
|
|
497
|
+
}
|
|
498
|
+
|
|
447
499
|
local configEntryDef: JsonSchema = new JsonSchema {
|
|
448
500
|
type = "object"
|
|
449
501
|
description = "Scoped Vize config entry for monorepos and workspaces"
|
|
@@ -514,6 +566,7 @@ output {
|
|
|
514
566
|
["MuseaConfig"] = MuseaSchemaDefinitions.museaConfigDef
|
|
515
567
|
["GlobalTypeDeclaration"] = globalTypeDeclarationDef
|
|
516
568
|
["GlobalTypesConfig"] = globalTypesConfigDef
|
|
569
|
+
["LibConfig"] = libConfigDef
|
|
517
570
|
["VizeConfigEntry"] = configEntryDef
|
|
518
571
|
}
|
|
519
572
|
properties {
|
|
@@ -555,6 +608,7 @@ output {
|
|
|
555
608
|
["lsp"] = new JsonSchema { `$ref` = "#/definitions/LanguageServerConfig" }
|
|
556
609
|
["musea"] = new JsonSchema { `$ref` = "#/definitions/MuseaConfig" }
|
|
557
610
|
["globalTypes"] = new JsonSchema { `$ref` = "#/definitions/GlobalTypesConfig" }
|
|
611
|
+
["lib"] = new JsonSchema { `$ref` = "#/definitions/LibConfig" }
|
|
558
612
|
["entries"] = new JsonSchema {
|
|
559
613
|
type = "array"
|
|
560
614
|
items = new JsonSchema { `$ref` = "#/definitions/VizeConfigEntry" }
|
package/pkl/vize.pkl
CHANGED
|
@@ -10,6 +10,7 @@ module vize.Config
|
|
|
10
10
|
|
|
11
11
|
typealias CompilerMode = "module" | "function"
|
|
12
12
|
typealias TemplateSyntax = "standard" | "strict" | "quirks"
|
|
13
|
+
typealias Whitespace = "condense" | "preserve" | "vue2-line-breaks"
|
|
13
14
|
typealias JsxMode = "vdom" | "vapor"
|
|
14
15
|
typealias JsxCompat = "native" | "babel"
|
|
15
16
|
typealias ScriptExt = "ts" | "js"
|
|
@@ -42,6 +43,7 @@ class CompilerConfig {
|
|
|
42
43
|
customElements: Listing<String>? = null
|
|
43
44
|
ssr: Boolean? = null
|
|
44
45
|
templateSyntax: TemplateSyntax? = null
|
|
46
|
+
whitespace: Whitespace? = null
|
|
45
47
|
sourceMap: Boolean? = null
|
|
46
48
|
prefixIdentifiers: Boolean? = null
|
|
47
49
|
hoistStatic: Boolean? = null
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/ubugeeei-prod/vize/main/npm/cli/schemas/vize-lib-lock.schema.json",
|
|
4
|
+
"title": "Vize lib lockfile",
|
|
5
|
+
"description": "vize-lib.lock.json written by `vize lib pull` / `update` / `remove`. Records which package version every pulled item came from and the SHA-256 of each file at pull time; those digests are the merge base that lets `vize lib status`, `diff`, and `update` separate local edits from upstream changes. Commit it next to the pulled sources.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["lockfileVersion", "items"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"lockfileVersion": {
|
|
11
|
+
"description": "Lockfile format version.",
|
|
12
|
+
"const": 1
|
|
13
|
+
},
|
|
14
|
+
"items": {
|
|
15
|
+
"description": "Pulled items sorted by kind, then name.",
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": { "$ref": "#/$defs/item" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"$defs": {
|
|
21
|
+
"sha256": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
24
|
+
},
|
|
25
|
+
"item": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": [
|
|
29
|
+
"name",
|
|
30
|
+
"kind",
|
|
31
|
+
"package",
|
|
32
|
+
"version",
|
|
33
|
+
"contentHash",
|
|
34
|
+
"dir",
|
|
35
|
+
"direct",
|
|
36
|
+
"registryDependencies",
|
|
37
|
+
"files"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"name": {
|
|
41
|
+
"description": "Canonical registry item name.",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
44
|
+
},
|
|
45
|
+
"kind": {
|
|
46
|
+
"description": "Source key: ui, composable, or a third-party @namespace from lib.registries.",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^(ui|composable|@[a-z0-9][a-z0-9._-]*)$"
|
|
49
|
+
},
|
|
50
|
+
"package": {
|
|
51
|
+
"description": "npm package that published the pulled version.",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
},
|
|
55
|
+
"version": {
|
|
56
|
+
"description": "Exact package version the files were pulled from.",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1
|
|
59
|
+
},
|
|
60
|
+
"contentHash": {
|
|
61
|
+
"description": "Registry contentHash of the pulled version.",
|
|
62
|
+
"$ref": "#/$defs/sha256"
|
|
63
|
+
},
|
|
64
|
+
"dir": {
|
|
65
|
+
"description": "Project-relative POSIX directory the registry layout was copied into; every item of one kind shares it.",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1
|
|
68
|
+
},
|
|
69
|
+
"direct": {
|
|
70
|
+
"description": "true when requested by name; false when pulled only as a registry dependency (removed with its last dependent).",
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
},
|
|
73
|
+
"examples": {
|
|
74
|
+
"description": "true when the item's usage examples were pulled too (`--with-examples`); their files are listed in `files`. Omitted when false.",
|
|
75
|
+
"type": "boolean"
|
|
76
|
+
},
|
|
77
|
+
"registryDependencies": {
|
|
78
|
+
"description": "Registry dependency closure at pull time.",
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": { "type": "string" }
|
|
81
|
+
},
|
|
82
|
+
"files": {
|
|
83
|
+
"description": "Registry-relative file path -> SHA-256 of the upstream bytes at pull time.",
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": { "$ref": "#/$defs/sha256" }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/ubugeeei-prod/vize/main/npm/cli/schemas/vize-lib-registry.schema.json",
|
|
4
|
+
"title": "Vize lib source registry",
|
|
5
|
+
"description": "registry/registry.json shipped inside the @vizejs/ui and @vizejs/composable npm tarballs. Describes every source unit `vize lib pull` can copy into a project. Raw files live under <registry dir>/<filesDirectory>/<files[].path>. The registry is immutable per published package version.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"registryKind",
|
|
11
|
+
"package",
|
|
12
|
+
"kind",
|
|
13
|
+
"filesDirectory",
|
|
14
|
+
"defaultTargetDirectory",
|
|
15
|
+
"items"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": {
|
|
19
|
+
"description": "Document schema version. Consumers must reject versions they do not understand.",
|
|
20
|
+
"const": 1
|
|
21
|
+
},
|
|
22
|
+
"registryKind": {
|
|
23
|
+
"description": "Discriminator for this document type.",
|
|
24
|
+
"const": "vize-lib"
|
|
25
|
+
},
|
|
26
|
+
"package": {
|
|
27
|
+
"description": "npm package and exact version that published this registry.",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["name", "version"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": { "type": "string", "minLength": 1 },
|
|
33
|
+
"version": { "type": "string", "minLength": 1 }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"kind": {
|
|
37
|
+
"description": "Kind shared by every item in this registry.",
|
|
38
|
+
"$ref": "#/$defs/itemKind"
|
|
39
|
+
},
|
|
40
|
+
"filesDirectory": {
|
|
41
|
+
"description": "Directory, relative to registry.json, that holds files[].path.",
|
|
42
|
+
"const": "files"
|
|
43
|
+
},
|
|
44
|
+
"defaultTargetDirectory": {
|
|
45
|
+
"description": "Project-relative directory used when neither --dir nor vize.config lib.dir is set.",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
},
|
|
49
|
+
"items": {
|
|
50
|
+
"description": "Pullable items sorted by name.",
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "$ref": "#/$defs/item" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$defs": {
|
|
56
|
+
"itemKind": {
|
|
57
|
+
"enum": ["ui", "composable"]
|
|
58
|
+
},
|
|
59
|
+
"sha256": {
|
|
60
|
+
"description": "Lowercase hexadecimal SHA-256 digest.",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
63
|
+
},
|
|
64
|
+
"relativePath": {
|
|
65
|
+
"description": "POSIX path relative to the package src/ directory; never absolute and never contains '..'.",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\]+$"
|
|
68
|
+
},
|
|
69
|
+
"file": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": ["path", "role", "sha256", "size"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
75
|
+
"role": {
|
|
76
|
+
"description": "entry: public re-export module; component: Vue SFC; style: side-effect CSS; types: type-only module; module: other runtime module.",
|
|
77
|
+
"enum": ["entry", "component", "style", "types", "module"]
|
|
78
|
+
},
|
|
79
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
80
|
+
"size": { "type": "integer", "minimum": 0 }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"example": {
|
|
84
|
+
"description": "Unstyled usage demo shipped with an item; pulled only with `vize lib pull --with-examples`.",
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"required": ["path", "title", "description", "sha256", "size"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
90
|
+
"title": { "type": "string", "minLength": 1 },
|
|
91
|
+
"description": { "type": "string" },
|
|
92
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
93
|
+
"size": { "type": "integer", "minimum": 0 }
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"npmDependency": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["name", "range", "kind"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"name": { "type": "string", "minLength": 1 },
|
|
102
|
+
"range": { "type": "string", "minLength": 1 },
|
|
103
|
+
"kind": { "enum": ["peer", "runtime"] }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"item": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": [
|
|
110
|
+
"name",
|
|
111
|
+
"kind",
|
|
112
|
+
"title",
|
|
113
|
+
"description",
|
|
114
|
+
"aliases",
|
|
115
|
+
"packageSubpath",
|
|
116
|
+
"entry",
|
|
117
|
+
"files",
|
|
118
|
+
"registryDependencies",
|
|
119
|
+
"dependencies",
|
|
120
|
+
"contentHash"
|
|
121
|
+
],
|
|
122
|
+
"properties": {
|
|
123
|
+
"name": {
|
|
124
|
+
"description": "Canonical, unique item name.",
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
127
|
+
},
|
|
128
|
+
"kind": { "$ref": "#/$defs/itemKind" },
|
|
129
|
+
"title": { "type": "string", "minLength": 1 },
|
|
130
|
+
"description": { "type": "string", "minLength": 1 },
|
|
131
|
+
"aliases": {
|
|
132
|
+
"description": "Alternate names accepted by info/pull, sorted and unique.",
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": { "type": "string", "minLength": 1 }
|
|
135
|
+
},
|
|
136
|
+
"packageSubpath": {
|
|
137
|
+
"description": "Package export subpath exposing the same unit.",
|
|
138
|
+
"type": "string",
|
|
139
|
+
"pattern": "^\\.(?:/.+)?$"
|
|
140
|
+
},
|
|
141
|
+
"entry": { "$ref": "#/$defs/relativePath" },
|
|
142
|
+
"files": {
|
|
143
|
+
"description": "Files owned by this item, sorted by path. Test files are never published.",
|
|
144
|
+
"type": "array",
|
|
145
|
+
"minItems": 1,
|
|
146
|
+
"items": { "$ref": "#/$defs/file" }
|
|
147
|
+
},
|
|
148
|
+
"registryDependencies": {
|
|
149
|
+
"description": "Complete transitive closure of other item names this item imports through relative paths, sorted.",
|
|
150
|
+
"type": "array",
|
|
151
|
+
"items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" }
|
|
152
|
+
},
|
|
153
|
+
"dependencies": {
|
|
154
|
+
"description": "npm packages imported by this item's own files, sorted by name.",
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": { "$ref": "#/$defs/npmDependency" }
|
|
157
|
+
},
|
|
158
|
+
"contentHash": {
|
|
159
|
+
"description": "SHA-256 over path + NUL + sha256 + LF for every file in path order.",
|
|
160
|
+
"$ref": "#/$defs/sha256"
|
|
161
|
+
},
|
|
162
|
+
"examples": {
|
|
163
|
+
"description": "Usage demos sorted by path. Not part of files or contentHash; optional for third-party registries.",
|
|
164
|
+
"type": "array",
|
|
165
|
+
"items": { "$ref": "#/$defs/example" }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -91,6 +91,12 @@
|
|
|
91
91
|
"type": "string",
|
|
92
92
|
"enum": ["standard", "strict", "quirks"]
|
|
93
93
|
},
|
|
94
|
+
"whitespace": {
|
|
95
|
+
"description": "Vue template whitespace strategy or opt-in Vue 2 line-break migration mode",
|
|
96
|
+
"default": "condense",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": ["condense", "preserve", "vue2-line-breaks"]
|
|
99
|
+
},
|
|
94
100
|
"sourceMap": {
|
|
95
101
|
"description": "Enable source map generation",
|
|
96
102
|
"type": "boolean"
|
|
@@ -915,6 +921,59 @@
|
|
|
915
921
|
]
|
|
916
922
|
}
|
|
917
923
|
},
|
|
924
|
+
"LibConfig": {
|
|
925
|
+
"description": "vize lib source distribution options; paths are relative to the config file",
|
|
926
|
+
"type": "object",
|
|
927
|
+
"properties": {
|
|
928
|
+
"dir": {
|
|
929
|
+
"description": "Destination for every registry kind unless a kind-specific directory is set",
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
"uiDir": {
|
|
933
|
+
"description": "Destination for @vizejs/ui items (default: src/components/vize)",
|
|
934
|
+
"type": "string"
|
|
935
|
+
},
|
|
936
|
+
"composableDir": {
|
|
937
|
+
"description": "Destination for @vizejs/composable items (default: src/composables/vize)",
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
"lockfile": {
|
|
941
|
+
"description": "Lockfile path (default: vize-lib.lock.json)",
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
"registries": {
|
|
945
|
+
"description": "Third-party registries by @namespace, pulled as @namespace/<item>",
|
|
946
|
+
"type": "object",
|
|
947
|
+
"additionalProperties": {
|
|
948
|
+
"oneOf": [
|
|
949
|
+
{
|
|
950
|
+
"description": "Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json",
|
|
951
|
+
"type": "string"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"type": "object",
|
|
955
|
+
"properties": {
|
|
956
|
+
"source": {
|
|
957
|
+
"description": "Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json",
|
|
958
|
+
"type": "string"
|
|
959
|
+
},
|
|
960
|
+
"dir": {
|
|
961
|
+
"description": "Destination directory for this namespace's items",
|
|
962
|
+
"type": "string"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"additionalProperties": false,
|
|
966
|
+
"required": ["source"]
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
"propertyNames": {
|
|
971
|
+
"pattern": "^@[a-z0-9][a-z0-9._-]*$"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
"additionalProperties": false
|
|
976
|
+
},
|
|
918
977
|
"VizeConfigEntry": {
|
|
919
978
|
"description": "Scoped Vize config entry for monorepos and workspaces",
|
|
920
979
|
"type": "object",
|
|
@@ -1101,6 +1160,9 @@
|
|
|
1101
1160
|
"globalTypes": {
|
|
1102
1161
|
"$ref": "#/definitions/GlobalTypesConfig"
|
|
1103
1162
|
},
|
|
1163
|
+
"lib": {
|
|
1164
|
+
"$ref": "#/definitions/LibConfig"
|
|
1165
|
+
},
|
|
1104
1166
|
"entries": {
|
|
1105
1167
|
"description": "Scoped config entries for monorepos and workspaces",
|
|
1106
1168
|
"type": "array",
|
package/src/index.ts
CHANGED
package/src/types/generated.ts
CHANGED
|
@@ -67,6 +67,7 @@ export interface VizeConfig {
|
|
|
67
67
|
lsp?: LanguageServerConfig;
|
|
68
68
|
musea?: MuseaConfig;
|
|
69
69
|
globalTypes?: GlobalTypesConfig;
|
|
70
|
+
lib?: LibConfig;
|
|
70
71
|
/**
|
|
71
72
|
* Scoped config entries for monorepos and workspaces
|
|
72
73
|
*/
|
|
@@ -108,6 +109,10 @@ export interface CompilerConfig {
|
|
|
108
109
|
* Template syntax compatibility mode
|
|
109
110
|
*/
|
|
110
111
|
templateSyntax?: "standard" | "strict" | "quirks";
|
|
112
|
+
/**
|
|
113
|
+
* Vue template whitespace strategy or opt-in Vue 2 line-break migration mode
|
|
114
|
+
*/
|
|
115
|
+
whitespace?: "condense" | "preserve" | "vue2-line-breaks";
|
|
111
116
|
/**
|
|
112
117
|
* Enable source map generation
|
|
113
118
|
*/
|
|
@@ -651,6 +656,44 @@ export interface GlobalTypeDeclaration {
|
|
|
651
656
|
*/
|
|
652
657
|
defaultValue?: string;
|
|
653
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* vize lib source distribution options; paths are relative to the config file
|
|
661
|
+
*/
|
|
662
|
+
export interface LibConfig {
|
|
663
|
+
/**
|
|
664
|
+
* Destination for every registry kind unless a kind-specific directory is set
|
|
665
|
+
*/
|
|
666
|
+
dir?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Destination for @vizejs/ui items (default: src/components/vize)
|
|
669
|
+
*/
|
|
670
|
+
uiDir?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Destination for @vizejs/composable items (default: src/composables/vize)
|
|
673
|
+
*/
|
|
674
|
+
composableDir?: string;
|
|
675
|
+
/**
|
|
676
|
+
* Lockfile path (default: vize-lib.lock.json)
|
|
677
|
+
*/
|
|
678
|
+
lockfile?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Third-party registries by @namespace, pulled as @namespace/<item>
|
|
681
|
+
*/
|
|
682
|
+
registries?: {
|
|
683
|
+
[k: string]:
|
|
684
|
+
| string
|
|
685
|
+
| {
|
|
686
|
+
/**
|
|
687
|
+
* Path to a registry, npm:<package>[@range], or an https:// URL of a registry.json
|
|
688
|
+
*/
|
|
689
|
+
source: string;
|
|
690
|
+
/**
|
|
691
|
+
* Destination directory for this namespace's items
|
|
692
|
+
*/
|
|
693
|
+
dir?: string;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
}
|
|
654
697
|
/**
|
|
655
698
|
* Scoped Vize config entry for monorepos and workspaces
|
|
656
699
|
*/
|
package/src/types/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-HHYqgb_B.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src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