@wireweave/core 4.0.0-beta.0 → 4.0.0-beta.13
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/README.md +17 -462
- package/dist/app.cjs +50 -0
- package/dist/app.d.cts +488 -0
- package/dist/app.d.ts +488 -0
- package/dist/app.js +1 -0
- package/dist/chunk-3RWGG5EC.js +18042 -0
- package/dist/chunk-4TMDPWPR.cjs +186 -0
- package/dist/chunk-4UZBGIGJ.cjs +4359 -0
- package/dist/chunk-5DGRIQDU.cjs +824 -0
- package/dist/chunk-ETV4XYOV.cjs +5 -0
- package/dist/chunk-FS6A6EJ4.js +4345 -0
- package/dist/chunk-IMUVIIJR.cjs +18051 -0
- package/dist/chunk-JJWAFHSV.js +821 -0
- package/dist/chunk-MD6MNOEQ.cjs +2884 -0
- package/dist/chunk-PKBMQBKP.js +5 -0
- package/dist/chunk-R5WBZWBC.js +180 -0
- package/dist/chunk-V3HVWC7C.js +2874 -0
- package/dist/chunk-XYACLXXF.js +51484 -0
- package/dist/chunk-ZPHNXJRY.cjs +51590 -0
- package/dist/index-BGU_4N4W.d.ts +240 -0
- package/dist/index-BlNYFaZd.d.cts +337 -0
- package/dist/index-Cx4-VXVS.d.ts +337 -0
- package/dist/index-DyXaMSgd.d.cts +240 -0
- package/dist/index.cjs +1844 -58238
- package/dist/index.d.cts +556 -102
- package/dist/index.d.ts +556 -102
- package/dist/index.js +1163 -58104
- package/dist/interaction.cjs +26 -0
- package/dist/interaction.d.cts +3 -0
- package/dist/interaction.d.ts +3 -0
- package/dist/interaction.js +1 -0
- package/dist/parser.cjs +34 -6611
- package/dist/parser.d.cts +11 -2
- package/dist/parser.d.ts +11 -2
- package/dist/parser.js +1 -6585
- package/dist/renderer.cjs +119 -50537
- package/dist/renderer.d.cts +348 -123
- package/dist/renderer.d.ts +348 -123
- package/dist/renderer.js +3 -50499
- package/dist/spec.cjs +94 -0
- package/dist/spec.d.cts +301 -0
- package/dist/spec.d.ts +301 -0
- package/dist/spec.js +1 -0
- package/dist/{types-hEr_afgw.d.cts → types-CGRi1k2N.d.cts} +307 -27
- package/dist/{types-hEr_afgw.d.ts → types-CGRi1k2N.d.ts} +307 -27
- package/dist/types-Dkgr0Wyc.d.cts +75 -0
- package/dist/types-Dkgr0Wyc.d.ts +75 -0
- package/dist/v4-types-2ORUg6To.d.cts +137 -0
- package/dist/v4-types-2ORUg6To.d.ts +137 -0
- package/package.json +112 -35
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/** Canonical parser values for the Wireweave 4.0.0 language contract. */
|
|
2
|
+
type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
|
|
3
|
+
interface JsonObject {
|
|
4
|
+
[key: string]: JsonValue;
|
|
5
|
+
}
|
|
6
|
+
interface V4ParseOptions {
|
|
7
|
+
languageVersion: string;
|
|
8
|
+
sourceId?: string;
|
|
9
|
+
}
|
|
10
|
+
interface V4SourceSpan {
|
|
11
|
+
sourceId: string;
|
|
12
|
+
/** Original UTF-16 code-unit offsets; end is exclusive. */
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
startLine: number;
|
|
16
|
+
startColumn: number;
|
|
17
|
+
endLine: number;
|
|
18
|
+
endColumn: number;
|
|
19
|
+
/** False identifies a fragment inspection ID, not an authored durable ID. */
|
|
20
|
+
authoredId?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface V4Diagnostic {
|
|
23
|
+
severity: 'error';
|
|
24
|
+
code: string;
|
|
25
|
+
phase: 'parse' | 'schema';
|
|
26
|
+
sourceId: string;
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
path: string;
|
|
30
|
+
messageKey: string;
|
|
31
|
+
details: JsonObject;
|
|
32
|
+
related: {
|
|
33
|
+
sourceId: string;
|
|
34
|
+
start: number;
|
|
35
|
+
end: number;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
declare class V4ParseError extends Error {
|
|
39
|
+
readonly diagnostics: readonly V4Diagnostic[];
|
|
40
|
+
name: string;
|
|
41
|
+
constructor(diagnostics: readonly V4Diagnostic[]);
|
|
42
|
+
}
|
|
43
|
+
type V4ParseResult = {
|
|
44
|
+
ok: true;
|
|
45
|
+
value: ParsedDocument;
|
|
46
|
+
diagnostics: [];
|
|
47
|
+
} | {
|
|
48
|
+
ok: false;
|
|
49
|
+
value: null;
|
|
50
|
+
diagnostics: readonly V4Diagnostic[];
|
|
51
|
+
};
|
|
52
|
+
interface CanonicalParameter {
|
|
53
|
+
id: string;
|
|
54
|
+
type: 'string' | 'number' | 'boolean' | 'record' | 'list';
|
|
55
|
+
default?: JsonValue;
|
|
56
|
+
}
|
|
57
|
+
type PrimitiveKind = 'page' | 'header' | 'main' | 'footer' | 'sidebar' | 'section' | 'row' | 'col' | 'stack' | 'relative' | 'card' | 'modal' | 'drawer' | 'accordion' | 'text' | 'title' | 'link' | 'input' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'button' | 'image' | 'placeholder' | 'avatar' | 'badge' | 'icon' | 'table' | 'list' | 'alert' | 'toast' | 'progress' | 'spinner' | 'tooltip' | 'popover' | 'dropdown' | 'nav' | 'tabs' | 'breadcrumb' | 'divider' | 'marker' | 'annotations' | 'form' | 'nav-item' | 'nav-group' | 'dropdown-item' | 'list-item' | 'tab' | 'option' | 'annotation-item';
|
|
58
|
+
interface CanonicalPrimitive {
|
|
59
|
+
kind: PrimitiveKind;
|
|
60
|
+
id?: string;
|
|
61
|
+
label?: string;
|
|
62
|
+
number?: number;
|
|
63
|
+
items?: JsonValue[];
|
|
64
|
+
attributes: JsonObject;
|
|
65
|
+
children: CanonicalNode[];
|
|
66
|
+
}
|
|
67
|
+
interface CanonicalDefinition {
|
|
68
|
+
kind: 'layout' | 'component';
|
|
69
|
+
id: string;
|
|
70
|
+
parameters: CanonicalParameter[];
|
|
71
|
+
attributes: JsonObject;
|
|
72
|
+
children: CanonicalNode[];
|
|
73
|
+
}
|
|
74
|
+
interface CanonicalUse {
|
|
75
|
+
kind: 'use';
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
namespace?: string;
|
|
79
|
+
inputs: Record<string, {
|
|
80
|
+
literal: JsonValue;
|
|
81
|
+
} | {
|
|
82
|
+
param: string;
|
|
83
|
+
}>;
|
|
84
|
+
fills: {
|
|
85
|
+
name: string;
|
|
86
|
+
children: CanonicalNode[];
|
|
87
|
+
}[];
|
|
88
|
+
}
|
|
89
|
+
type CanonicalNode = CanonicalPrimitive | CanonicalDefinition | CanonicalUse | {
|
|
90
|
+
kind: 'slot';
|
|
91
|
+
name?: string;
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'repeat';
|
|
94
|
+
count: number;
|
|
95
|
+
id?: string;
|
|
96
|
+
children: CanonicalNode[];
|
|
97
|
+
};
|
|
98
|
+
interface CanonicalSymbol {
|
|
99
|
+
kind: 'page' | 'layout' | 'component';
|
|
100
|
+
id: string;
|
|
101
|
+
}
|
|
102
|
+
interface CanonicalModule {
|
|
103
|
+
id: string;
|
|
104
|
+
namespace: string;
|
|
105
|
+
sourceDigest: string;
|
|
106
|
+
imports: {
|
|
107
|
+
namespace: string;
|
|
108
|
+
moduleId: string;
|
|
109
|
+
digest: string;
|
|
110
|
+
symbols: CanonicalSymbol[];
|
|
111
|
+
}[];
|
|
112
|
+
exports: CanonicalSymbol[];
|
|
113
|
+
definitions: (CanonicalPrimitive | CanonicalDefinition)[];
|
|
114
|
+
}
|
|
115
|
+
interface ParsedDocument {
|
|
116
|
+
schemaVersion: '1.0.0';
|
|
117
|
+
languageVersion: '4.0.0';
|
|
118
|
+
modules: CanonicalModule[];
|
|
119
|
+
states: JsonObject[];
|
|
120
|
+
registry: {
|
|
121
|
+
schemaVersion: '1.0.0';
|
|
122
|
+
entries: JsonObject[];
|
|
123
|
+
digest: string;
|
|
124
|
+
};
|
|
125
|
+
fixtures: JsonObject[];
|
|
126
|
+
app: {
|
|
127
|
+
id: string;
|
|
128
|
+
entry?: {
|
|
129
|
+
namespace: string;
|
|
130
|
+
id: string;
|
|
131
|
+
variant?: string;
|
|
132
|
+
};
|
|
133
|
+
profile: JsonObject;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { type CanonicalDefinition as C, type JsonObject as J, type ParsedDocument as P, type V4SourceSpan as V, type V4ParseOptions as a, type V4ParseResult as b, type CanonicalModule as c, type CanonicalNode as d, type CanonicalParameter as e, type CanonicalPrimitive as f, type CanonicalSymbol as g, type CanonicalUse as h, type V4Diagnostic as i, V4ParseError as j, type JsonValue as k };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/** Canonical parser values for the Wireweave 4.0.0 language contract. */
|
|
2
|
+
type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
|
|
3
|
+
interface JsonObject {
|
|
4
|
+
[key: string]: JsonValue;
|
|
5
|
+
}
|
|
6
|
+
interface V4ParseOptions {
|
|
7
|
+
languageVersion: string;
|
|
8
|
+
sourceId?: string;
|
|
9
|
+
}
|
|
10
|
+
interface V4SourceSpan {
|
|
11
|
+
sourceId: string;
|
|
12
|
+
/** Original UTF-16 code-unit offsets; end is exclusive. */
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
startLine: number;
|
|
16
|
+
startColumn: number;
|
|
17
|
+
endLine: number;
|
|
18
|
+
endColumn: number;
|
|
19
|
+
/** False identifies a fragment inspection ID, not an authored durable ID. */
|
|
20
|
+
authoredId?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface V4Diagnostic {
|
|
23
|
+
severity: 'error';
|
|
24
|
+
code: string;
|
|
25
|
+
phase: 'parse' | 'schema';
|
|
26
|
+
sourceId: string;
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
path: string;
|
|
30
|
+
messageKey: string;
|
|
31
|
+
details: JsonObject;
|
|
32
|
+
related: {
|
|
33
|
+
sourceId: string;
|
|
34
|
+
start: number;
|
|
35
|
+
end: number;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
declare class V4ParseError extends Error {
|
|
39
|
+
readonly diagnostics: readonly V4Diagnostic[];
|
|
40
|
+
name: string;
|
|
41
|
+
constructor(diagnostics: readonly V4Diagnostic[]);
|
|
42
|
+
}
|
|
43
|
+
type V4ParseResult = {
|
|
44
|
+
ok: true;
|
|
45
|
+
value: ParsedDocument;
|
|
46
|
+
diagnostics: [];
|
|
47
|
+
} | {
|
|
48
|
+
ok: false;
|
|
49
|
+
value: null;
|
|
50
|
+
diagnostics: readonly V4Diagnostic[];
|
|
51
|
+
};
|
|
52
|
+
interface CanonicalParameter {
|
|
53
|
+
id: string;
|
|
54
|
+
type: 'string' | 'number' | 'boolean' | 'record' | 'list';
|
|
55
|
+
default?: JsonValue;
|
|
56
|
+
}
|
|
57
|
+
type PrimitiveKind = 'page' | 'header' | 'main' | 'footer' | 'sidebar' | 'section' | 'row' | 'col' | 'stack' | 'relative' | 'card' | 'modal' | 'drawer' | 'accordion' | 'text' | 'title' | 'link' | 'input' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'button' | 'image' | 'placeholder' | 'avatar' | 'badge' | 'icon' | 'table' | 'list' | 'alert' | 'toast' | 'progress' | 'spinner' | 'tooltip' | 'popover' | 'dropdown' | 'nav' | 'tabs' | 'breadcrumb' | 'divider' | 'marker' | 'annotations' | 'form' | 'nav-item' | 'nav-group' | 'dropdown-item' | 'list-item' | 'tab' | 'option' | 'annotation-item';
|
|
58
|
+
interface CanonicalPrimitive {
|
|
59
|
+
kind: PrimitiveKind;
|
|
60
|
+
id?: string;
|
|
61
|
+
label?: string;
|
|
62
|
+
number?: number;
|
|
63
|
+
items?: JsonValue[];
|
|
64
|
+
attributes: JsonObject;
|
|
65
|
+
children: CanonicalNode[];
|
|
66
|
+
}
|
|
67
|
+
interface CanonicalDefinition {
|
|
68
|
+
kind: 'layout' | 'component';
|
|
69
|
+
id: string;
|
|
70
|
+
parameters: CanonicalParameter[];
|
|
71
|
+
attributes: JsonObject;
|
|
72
|
+
children: CanonicalNode[];
|
|
73
|
+
}
|
|
74
|
+
interface CanonicalUse {
|
|
75
|
+
kind: 'use';
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
namespace?: string;
|
|
79
|
+
inputs: Record<string, {
|
|
80
|
+
literal: JsonValue;
|
|
81
|
+
} | {
|
|
82
|
+
param: string;
|
|
83
|
+
}>;
|
|
84
|
+
fills: {
|
|
85
|
+
name: string;
|
|
86
|
+
children: CanonicalNode[];
|
|
87
|
+
}[];
|
|
88
|
+
}
|
|
89
|
+
type CanonicalNode = CanonicalPrimitive | CanonicalDefinition | CanonicalUse | {
|
|
90
|
+
kind: 'slot';
|
|
91
|
+
name?: string;
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'repeat';
|
|
94
|
+
count: number;
|
|
95
|
+
id?: string;
|
|
96
|
+
children: CanonicalNode[];
|
|
97
|
+
};
|
|
98
|
+
interface CanonicalSymbol {
|
|
99
|
+
kind: 'page' | 'layout' | 'component';
|
|
100
|
+
id: string;
|
|
101
|
+
}
|
|
102
|
+
interface CanonicalModule {
|
|
103
|
+
id: string;
|
|
104
|
+
namespace: string;
|
|
105
|
+
sourceDigest: string;
|
|
106
|
+
imports: {
|
|
107
|
+
namespace: string;
|
|
108
|
+
moduleId: string;
|
|
109
|
+
digest: string;
|
|
110
|
+
symbols: CanonicalSymbol[];
|
|
111
|
+
}[];
|
|
112
|
+
exports: CanonicalSymbol[];
|
|
113
|
+
definitions: (CanonicalPrimitive | CanonicalDefinition)[];
|
|
114
|
+
}
|
|
115
|
+
interface ParsedDocument {
|
|
116
|
+
schemaVersion: '1.0.0';
|
|
117
|
+
languageVersion: '4.0.0';
|
|
118
|
+
modules: CanonicalModule[];
|
|
119
|
+
states: JsonObject[];
|
|
120
|
+
registry: {
|
|
121
|
+
schemaVersion: '1.0.0';
|
|
122
|
+
entries: JsonObject[];
|
|
123
|
+
digest: string;
|
|
124
|
+
};
|
|
125
|
+
fixtures: JsonObject[];
|
|
126
|
+
app: {
|
|
127
|
+
id: string;
|
|
128
|
+
entry?: {
|
|
129
|
+
namespace: string;
|
|
130
|
+
id: string;
|
|
131
|
+
variant?: string;
|
|
132
|
+
};
|
|
133
|
+
profile: JsonObject;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { type CanonicalDefinition as C, type JsonObject as J, type ParsedDocument as P, type V4SourceSpan as V, type V4ParseOptions as a, type V4ParseResult as b, type CanonicalModule as c, type CanonicalNode as d, type CanonicalParameter as e, type CanonicalPrimitive as f, type CanonicalSymbol as g, type CanonicalUse as h, type V4Diagnostic as i, V4ParseError as j, type JsonValue as k };
|
package/package.json
CHANGED
|
@@ -1,55 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wireweave/core",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.13",
|
|
4
4
|
"description": "Core parser and renderer for wireweave",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.cts",
|
|
18
|
+
"default": "./dist/index.cjs"
|
|
19
|
+
}
|
|
14
20
|
},
|
|
15
21
|
"./parser": {
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/parser.d.ts",
|
|
24
|
+
"default": "./dist/parser.js"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/parser.d.cts",
|
|
28
|
+
"default": "./dist/parser.cjs"
|
|
29
|
+
}
|
|
19
30
|
},
|
|
20
31
|
"./renderer": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/renderer.d.ts",
|
|
34
|
+
"default": "./dist/renderer.js"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/renderer.d.cts",
|
|
38
|
+
"default": "./dist/renderer.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./spec": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/spec.d.ts",
|
|
44
|
+
"default": "./dist/spec.js"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/spec.d.cts",
|
|
48
|
+
"default": "./dist/spec.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./app": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/app.d.ts",
|
|
54
|
+
"default": "./dist/app.js"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/app.d.cts",
|
|
58
|
+
"default": "./dist/app.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./interaction": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/interaction.d.ts",
|
|
64
|
+
"default": "./dist/interaction.js"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./dist/interaction.d.cts",
|
|
68
|
+
"default": "./dist/interaction.cjs"
|
|
69
|
+
}
|
|
24
70
|
}
|
|
25
71
|
},
|
|
26
72
|
"files": [
|
|
27
73
|
"dist"
|
|
28
74
|
],
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"build:ts": "tsup",
|
|
32
|
-
"build": "pnpm build:grammar && pnpm build:ts",
|
|
33
|
-
"test": "vitest run",
|
|
34
|
-
"test:watch": "vitest",
|
|
35
|
-
"storybook": "storybook dev -p 6006",
|
|
36
|
-
"build-storybook": "storybook build",
|
|
37
|
-
"clean": "rm -rf dist",
|
|
38
|
-
"release": "release-it"
|
|
75
|
+
"engines": {
|
|
76
|
+
"node": ">=22.13.0"
|
|
39
77
|
},
|
|
40
78
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
79
|
+
"@commitlint/cli": "^21.2.2",
|
|
80
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
81
|
+
"@eslint/js": "^10.0.1",
|
|
82
|
+
"@storybook/html": "^10.6.0",
|
|
83
|
+
"@storybook/html-vite": "^10.6.0",
|
|
84
|
+
"@types/jsdom": "^28.0.3",
|
|
85
|
+
"@types/node": "^25.9.6",
|
|
86
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
87
|
+
"eslint": "^10.10.0",
|
|
88
|
+
"husky": "^9.1.7",
|
|
89
|
+
"jsdom": "^30.0.1",
|
|
90
|
+
"knip": "^6.35.1",
|
|
91
|
+
"lint-staged": "^16.4.0",
|
|
46
92
|
"lucide": "^0.562.0",
|
|
47
|
-
"peggy": "^5.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
93
|
+
"peggy": "^5.1.0",
|
|
94
|
+
"prettier": "^3.9.6",
|
|
95
|
+
"publint": "^0.3.24",
|
|
96
|
+
"storybook": "^10.6.0",
|
|
97
|
+
"tsup": "^8.5.1",
|
|
98
|
+
"typescript": "^5.9.3",
|
|
99
|
+
"typescript-eslint": "^8.70.0",
|
|
100
|
+
"vitest": "^4.1.11"
|
|
53
101
|
},
|
|
54
102
|
"keywords": [
|
|
55
103
|
"wireframe",
|
|
@@ -63,6 +111,35 @@
|
|
|
63
111
|
"license": "MIT",
|
|
64
112
|
"repository": {
|
|
65
113
|
"type": "git",
|
|
66
|
-
"url": "https://github.com/wireweave/
|
|
114
|
+
"url": "git+https://github.com/wireweave/wireweave.git",
|
|
115
|
+
"directory": "packages/core"
|
|
116
|
+
},
|
|
117
|
+
"scripts": {
|
|
118
|
+
"build:grammar": "peggy --format es -o src/parser/generated-parser.js src/grammar/wireframe.peggy",
|
|
119
|
+
"postbuild:grammar": "node scripts/format-generated.mjs src/parser/generated-parser.js",
|
|
120
|
+
"build:spec": "node scripts/extract-grammar-elements.mjs",
|
|
121
|
+
"build:icons": "node scripts/generate-icons.mjs",
|
|
122
|
+
"build:icon-names": "node scripts/extract-icon-names.mjs",
|
|
123
|
+
"build:ts": "tsup",
|
|
124
|
+
"build": "pnpm build:grammar && pnpm build:spec && pnpm build:icons && pnpm build:icon-names && pnpm build:ts",
|
|
125
|
+
"postbuild": "node ../../scripts/dist-freshness-gate.mjs --write .",
|
|
126
|
+
"check:parser-sync": "node scripts/check-generated-parser.mjs",
|
|
127
|
+
"check:spec-sync": "node scripts/extract-grammar-elements.mjs --check",
|
|
128
|
+
"check:icons-sync": "node scripts/generate-icons.mjs --check",
|
|
129
|
+
"check:icon-names-sync": "node scripts/extract-icon-names.mjs --check",
|
|
130
|
+
"pretest": "pnpm run check:parser-sync && pnpm run check:spec-sync && pnpm run check:icons-sync && pnpm run check:icon-names-sync",
|
|
131
|
+
"test": "pnpm test:generators && vitest run",
|
|
132
|
+
"test:generators": "node --test scripts/*.test.mjs",
|
|
133
|
+
"test:watch": "vitest",
|
|
134
|
+
"storybook": "storybook dev -p 6006",
|
|
135
|
+
"build-storybook": "storybook build",
|
|
136
|
+
"clean": "rm -rf dist",
|
|
137
|
+
"typecheck": "tsc --noEmit",
|
|
138
|
+
"lint": "eslint .",
|
|
139
|
+
"lint:fix": "eslint . --fix",
|
|
140
|
+
"format": "prettier --write .",
|
|
141
|
+
"format:check": "prettier --check .",
|
|
142
|
+
"knip": "knip",
|
|
143
|
+
"publint": "publint --strict"
|
|
67
144
|
}
|
|
68
|
-
}
|
|
145
|
+
}
|