@multiplatform.one/cli 7.90.6 → 8.1.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/README.md +13 -7
- package/lib/commands/e2e.mjs +6 -15
- package/lib/commands/init.mjs +0 -2
- package/lib/commands/scaffold.mjs +62 -3
- package/lib/commands/verbs.mjs +31 -10
- package/lib/source.json +2 -2
- package/package.json +2 -2
- package/scripts/scaffold.sh +13 -1
- package/src/bin/multiplatformOne.ts +2 -2
- package/src/commands/e2e.ts +16 -21
- package/src/commands/init.ts +0 -2
- package/src/commands/scaffold.ts +60 -3
- package/src/commands/updateCleanups.spec.ts +282 -0
- package/src/commands/verbs.spec.ts +94 -5
- package/src/commands/verbs.ts +33 -12
- package/templates/AGENTS.md +3 -0
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/components.ts +72 -11
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/forms.ts +16 -24
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/frappe-ui.ts +4 -3
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/theme.ts +244 -20
- package/templates/pieces/gnome/universal/apps/__NAME__/vite.config.gnome.ts +16 -31
- package/types/commands/e2e.d.ts +1 -1
- package/types/commands/e2e.d.ts.map +1 -1
- package/types/commands/init.d.ts +1 -1
- package/types/commands/init.d.ts.map +1 -1
- package/types/commands/scaffold.d.ts +1 -1
- package/types/commands/scaffold.d.ts.map +1 -1
- package/types/commands/verbs.d.ts +2 -2
- package/types/commands/verbs.d.ts.map +1 -1
|
@@ -5,22 +5,18 @@
|
|
|
5
5
|
// linear-gradient for the colour picker). None of those resolve under
|
|
6
6
|
// GJS.
|
|
7
7
|
//
|
|
8
|
-
// Re-export the fields the starter ContactForm uses
|
|
9
|
-
//
|
|
8
|
+
// Re-export the fields the starter ContactForm uses. From this file the
|
|
9
|
+
// bare package name reaches the package's gnome entry, not this shim.
|
|
10
10
|
// Adding a field is one line here plus, usually, one granular @tamagui/*
|
|
11
11
|
// export in ../tamagui-barrel.ts.
|
|
12
12
|
|
|
13
|
-
export { Button } from "@multiplatform.one/forms
|
|
14
|
-
export type { ButtonProps } from "@multiplatform.one/forms
|
|
15
|
-
export { Input } from "@multiplatform.one/forms
|
|
16
|
-
export { TextArea } from "@multiplatform.one/forms
|
|
17
|
-
export { Spinner } from "@multiplatform.one/forms
|
|
18
|
-
export { zIndex } from "@multiplatform.one/forms
|
|
19
|
-
export {
|
|
20
|
-
OverlayStackProvider,
|
|
21
|
-
useOverlayZIndex,
|
|
22
|
-
withOverlayStack,
|
|
23
|
-
} from "@multiplatform.one/forms/src/shared/overlayStack";
|
|
13
|
+
export { Button } from "@multiplatform.one/forms";
|
|
14
|
+
export type { ButtonProps } from "@multiplatform.one/forms";
|
|
15
|
+
export { Input } from "@multiplatform.one/forms";
|
|
16
|
+
export { TextArea } from "@multiplatform.one/forms";
|
|
17
|
+
export { Spinner } from "@multiplatform.one/forms";
|
|
18
|
+
export { zIndex } from "@multiplatform.one/forms";
|
|
19
|
+
export { OverlayStackProvider, useOverlayZIndex, withOverlayStack } from "@multiplatform.one/forms";
|
|
24
20
|
|
|
25
21
|
// The first components real screens reach for — status chips, loading
|
|
26
22
|
// skeletons, a search field. Chip and Skeleton LIVE here in forms
|
|
@@ -28,22 +24,18 @@ export {
|
|
|
28
24
|
// Chip/Skeleton modules import the bare package name — which is aliased
|
|
29
25
|
// to this file — so these exports serve both the screens' direct imports
|
|
30
26
|
// and those internal re-export hops.
|
|
31
|
-
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms
|
|
27
|
+
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms";
|
|
32
28
|
export type {
|
|
33
29
|
ChipColor,
|
|
34
30
|
ChipFrameProps,
|
|
35
31
|
ChipProps,
|
|
36
32
|
ChipSize,
|
|
37
33
|
ChipVariant,
|
|
38
|
-
} from "@multiplatform.one/forms
|
|
39
|
-
export { SearchInput } from "@multiplatform.one/forms
|
|
40
|
-
export { Skeleton, SkeletonCircle, SkeletonText } from "@multiplatform.one/forms
|
|
41
|
-
export type {
|
|
42
|
-
SkeletonFrameProps,
|
|
43
|
-
SkeletonProps,
|
|
44
|
-
SkeletonVariant,
|
|
45
|
-
} from "@multiplatform.one/forms/src/Skeleton";
|
|
34
|
+
} from "@multiplatform.one/forms";
|
|
35
|
+
export { SearchInput } from "@multiplatform.one/forms";
|
|
36
|
+
export { Skeleton, SkeletonCircle, SkeletonText } from "@multiplatform.one/forms";
|
|
37
|
+
export type { SkeletonFrameProps, SkeletonProps, SkeletonVariant } from "@multiplatform.one/forms";
|
|
46
38
|
|
|
47
39
|
// Select stays inside the core + stacks subgraph on the native path.
|
|
48
|
-
export { Select } from "@multiplatform.one/forms
|
|
49
|
-
export type { SelectOption, SelectProps } from "@multiplatform.one/forms
|
|
40
|
+
export { Select } from "@multiplatform.one/forms";
|
|
41
|
+
export type { SelectOption, SelectProps } from "@multiplatform.one/forms";
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
// alone. It is GJS-inert — React context plus a type-only import of
|
|
12
12
|
// @multiplatform.one/frappe.
|
|
13
13
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
14
|
+
// The bare package name reaches the package's gnome entry from this file,
|
|
15
|
+
// not this shim, so it cannot loop.
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export { FrappeProvider, useFrappeConfig, useFrappeContext } from "@multiplatform.one/frappe-ui";
|
|
18
|
+
export type { FrappeConfig, FrappeProviderProps } from "@multiplatform.one/frappe-ui";
|
|
@@ -9,38 +9,262 @@
|
|
|
9
9
|
// @package/themes needs the theme builders and fonts, and the page-shell
|
|
10
10
|
// components need the knob resolver.
|
|
11
11
|
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
12
|
+
// The bare package name reaches the package's gnome entry from this file,
|
|
13
|
+
// not this shim, so it cannot loop.
|
|
14
14
|
|
|
15
15
|
// DEV guardrails (devWarn + warn* helpers). The forms package's shared/
|
|
16
16
|
// devWarn re-exports these from THIS barrel, and its Button/Input/Chip
|
|
17
17
|
// import them at module scope. Pure console plumbing, no platform deps.
|
|
18
|
-
export
|
|
19
|
-
|
|
18
|
+
export {
|
|
19
|
+
DIALOG_MAX_ACTIONS,
|
|
20
|
+
__resetDevWarnSeen,
|
|
21
|
+
__resetThemeDevWarnSeen,
|
|
22
|
+
devWarn,
|
|
23
|
+
themeDevWarn,
|
|
24
|
+
warnBannedErrorWords,
|
|
25
|
+
warnBareDisabled,
|
|
26
|
+
warnCancelDisabled,
|
|
27
|
+
warnDialogTooManyActions,
|
|
28
|
+
warnOutlineNone,
|
|
29
|
+
warnOutlinedIgnored,
|
|
30
|
+
warnPlaceholderAsLabel,
|
|
31
|
+
warnPositiveTabIndex,
|
|
32
|
+
warnSelectTooFewOptions,
|
|
33
|
+
warnSizeRecipeEscape,
|
|
34
|
+
warnTooltipOnDisabled,
|
|
35
|
+
} from "@multiplatform.one/theme";
|
|
36
|
+
export type {
|
|
37
|
+
DevWarnCode,
|
|
38
|
+
DevWarnDetail,
|
|
39
|
+
GuardrailSpecimenParameter,
|
|
40
|
+
} from "@multiplatform.one/theme";
|
|
41
|
+
export { createDefaultFont } from "@multiplatform.one/theme";
|
|
20
42
|
// Shared menu-row geometry — DropdownMenu (components shim) reads it at
|
|
21
43
|
// module scope. Pure.
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
export {
|
|
45
|
+
menuRowCheckGlyph,
|
|
46
|
+
menuRowCheckInk,
|
|
47
|
+
menuRowChecked,
|
|
48
|
+
menuRowFrame,
|
|
49
|
+
menuRowIconGlyph,
|
|
50
|
+
resolveMenuRowCheckInk,
|
|
51
|
+
useMenuRowCheckInk,
|
|
52
|
+
} from "@multiplatform.one/theme";
|
|
53
|
+
export type { MenuRowGlyph } from "@multiplatform.one/theme";
|
|
54
|
+
export {
|
|
55
|
+
TAMAGUI_ERA,
|
|
56
|
+
assertNoPrebuiltThemes,
|
|
57
|
+
createDefaultThemeConfig,
|
|
58
|
+
tamaguiEra,
|
|
59
|
+
} from "@multiplatform.one/theme";
|
|
60
|
+
export type { CreateDefaultThemeConfigOptions } from "@multiplatform.one/theme";
|
|
61
|
+
export {
|
|
62
|
+
createThemesBuilder,
|
|
63
|
+
houseComponentThemes,
|
|
64
|
+
houseGrandChildrenThemes,
|
|
65
|
+
houseTemplates,
|
|
66
|
+
tintHueNames,
|
|
67
|
+
} from "@multiplatform.one/theme";
|
|
68
|
+
export type {
|
|
69
|
+
BaseThemeBuilderDefinition,
|
|
70
|
+
CreateThemesBuilderOptions,
|
|
71
|
+
GetThemeProps,
|
|
72
|
+
Shadows,
|
|
73
|
+
ThemeBuilderDefinition,
|
|
74
|
+
} from "@multiplatform.one/theme";
|
|
25
75
|
// Focus-visible ring guarantee (pure color math over ./colorRules).
|
|
26
|
-
export
|
|
76
|
+
export {
|
|
77
|
+
FOCUS_RING_CLIPPED_OFFSET,
|
|
78
|
+
FOCUS_RING_FLUSH_OFFSET,
|
|
79
|
+
FOCUS_RING_HALO_OFFSET,
|
|
80
|
+
FOCUS_RING_MIN_CONTRAST,
|
|
81
|
+
FOCUS_RING_MIN_WIDTH,
|
|
82
|
+
FOCUS_VISIBLE_RING,
|
|
83
|
+
FOCUS_VISIBLE_RING_HALO,
|
|
84
|
+
FOCUS_VISIBLE_RING_INSET,
|
|
85
|
+
SANCTIONED_FOCUS_RING_OFFSETS,
|
|
86
|
+
STATE_LAYER_HOVER,
|
|
87
|
+
STATE_LAYER_PRESS,
|
|
88
|
+
ensureFocusVisibleRing,
|
|
89
|
+
focusRingColorMeetsContrast,
|
|
90
|
+
isSanctionedFocusRingOffset,
|
|
91
|
+
withDefaultStateLayer,
|
|
92
|
+
} from "@multiplatform.one/theme";
|
|
27
93
|
// Hairline width — resolves to hairline.native.ts (RN StyleSheet, which
|
|
28
94
|
// the react-native alias backs with the GTK compat package).
|
|
29
|
-
export
|
|
95
|
+
export {
|
|
96
|
+
ensureHairlineFallback,
|
|
97
|
+
hairline,
|
|
98
|
+
hairlineBorderWidth,
|
|
99
|
+
hairlineFallbackCss,
|
|
100
|
+
hairlineWidth,
|
|
101
|
+
} from "@multiplatform.one/theme";
|
|
30
102
|
// Intent wrapper — DropdownMenu and ConfirmDialog color their rows and
|
|
31
103
|
// actions through it. Pure.
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
104
|
+
export { Intent } from "@multiplatform.one/theme";
|
|
105
|
+
export type { IntentProps } from "@multiplatform.one/theme";
|
|
106
|
+
export { defaultIntents } from "@multiplatform.one/theme";
|
|
107
|
+
export {
|
|
108
|
+
BodyFont,
|
|
109
|
+
BorderRadius,
|
|
110
|
+
BorderWidth,
|
|
111
|
+
BulkBarPlacement,
|
|
112
|
+
CornerSmoothing,
|
|
113
|
+
DisabledStyle,
|
|
114
|
+
Elevation,
|
|
115
|
+
FieldLabelPlacement,
|
|
116
|
+
FillStyle,
|
|
117
|
+
FontCategory,
|
|
118
|
+
FontWeight,
|
|
119
|
+
FormAutofocus,
|
|
120
|
+
HeadingFont,
|
|
121
|
+
PageTitleScale,
|
|
122
|
+
RequiredMarking,
|
|
123
|
+
SelectAllScope,
|
|
124
|
+
TableZebra,
|
|
125
|
+
TextAccent,
|
|
126
|
+
TimestampStyle,
|
|
127
|
+
defaultKnobs,
|
|
128
|
+
emptyStateKnobs,
|
|
129
|
+
interactionStates,
|
|
130
|
+
normalizeAnimationKnob,
|
|
131
|
+
} from "@multiplatform.one/theme";
|
|
132
|
+
export type { Animation, InteractionState, Knobs, StateKnobs } from "@multiplatform.one/theme";
|
|
35
133
|
// Press-target and hairline constants (MIN_PRESS_TARGET, hairline, …) the
|
|
36
134
|
// forms Chip and SearchInput read at module scope. Pure numbers/objects.
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
135
|
+
export {
|
|
136
|
+
DETAIL_READABLE_WIDTH,
|
|
137
|
+
FORM_READABLE_WIDTH,
|
|
138
|
+
FORM_READABLE_WIDTH_MAX,
|
|
139
|
+
FORM_READABLE_WIDTH_MIN,
|
|
140
|
+
LAYOUT_SIZE_CLASS_ORDER,
|
|
141
|
+
MIN_PRESS_TARGET,
|
|
142
|
+
NARROW_BREAKPOINT,
|
|
143
|
+
OVERLAY_ANCHOR_GAP,
|
|
144
|
+
OVERLAY_ATTACH_GAP,
|
|
145
|
+
OVERLAY_BREAKPOINT,
|
|
146
|
+
READING_WIDTH_BODY_FALLBACK,
|
|
147
|
+
READING_WIDTH_CH,
|
|
148
|
+
READING_WIDTH_CH_EM,
|
|
149
|
+
READING_WIDTH_MAX_CH,
|
|
150
|
+
READING_WIDTH_MIN_CH,
|
|
151
|
+
defaultMaxPanes,
|
|
152
|
+
getLayoutSizeClass,
|
|
153
|
+
isTouchSurface,
|
|
154
|
+
layoutBreakpoints,
|
|
155
|
+
layoutSizeClassAtLeast,
|
|
156
|
+
pressTargetHitSlop,
|
|
157
|
+
pressTargetStyle,
|
|
158
|
+
readingWidthStyle,
|
|
159
|
+
useLayoutSizeClass,
|
|
160
|
+
useMultiPane,
|
|
161
|
+
useReadingWidthStyle,
|
|
162
|
+
useSemanticGaps,
|
|
163
|
+
} from "@multiplatform.one/theme";
|
|
164
|
+
export type {
|
|
165
|
+
HitSlopInsets,
|
|
166
|
+
LayoutBreakpointName,
|
|
167
|
+
LayoutSizeClass,
|
|
168
|
+
PressTargetStyle,
|
|
169
|
+
ReadingWidthStyle,
|
|
170
|
+
} from "@multiplatform.one/theme";
|
|
171
|
+
export { PresetContext, usePresetContext, usePresetTints } from "@multiplatform.one/theme";
|
|
172
|
+
export type { PresetContextValue } from "@multiplatform.one/theme";
|
|
173
|
+
export {
|
|
174
|
+
boldPreset,
|
|
175
|
+
consolePreset,
|
|
176
|
+
defaultPreset,
|
|
177
|
+
densePreset,
|
|
178
|
+
heroPreset,
|
|
179
|
+
roomyPreset,
|
|
180
|
+
storefrontPreset,
|
|
181
|
+
} from "@multiplatform.one/theme";
|
|
40
182
|
// radiusClassProps — imported by layouts/page and the forms Skeleton at
|
|
41
183
|
// module scope since the 6.5/6.6 radius-identity wave. Pure.
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
184
|
+
export {
|
|
185
|
+
radiusClassProps,
|
|
186
|
+
radiusOverrideFor,
|
|
187
|
+
radiusResolutionProps,
|
|
188
|
+
resolveRadiusClass,
|
|
189
|
+
resolveRadiusForPart,
|
|
190
|
+
} from "@multiplatform.one/theme";
|
|
191
|
+
export type {
|
|
192
|
+
KnobImmuneRadiusClass,
|
|
193
|
+
RadiusClassDeclaration,
|
|
194
|
+
RadiusClassGeometry,
|
|
195
|
+
RadiusResolutionDeclaration,
|
|
196
|
+
ResolveRadiusForPartOptions,
|
|
197
|
+
ResolvedPartRadius,
|
|
198
|
+
ResolvedRadiusSource,
|
|
199
|
+
} from "@multiplatform.one/theme";
|
|
200
|
+
export type {
|
|
201
|
+
CardLiftProps,
|
|
202
|
+
ControlStateProps,
|
|
203
|
+
CornerSmoothingCarrier,
|
|
204
|
+
DisabledAssemblyProps,
|
|
205
|
+
DisabledChromeProps,
|
|
206
|
+
DisabledRecipe,
|
|
207
|
+
DisabledSurfaceProps,
|
|
208
|
+
DisabledTextProps,
|
|
209
|
+
ElevationChromeProps,
|
|
210
|
+
ElevationPaintProps,
|
|
211
|
+
ElevationStateProps,
|
|
212
|
+
KnobProps,
|
|
213
|
+
KnobPropsOverride,
|
|
214
|
+
KnobRecipe,
|
|
215
|
+
PageTitleFragment,
|
|
216
|
+
ResolvedKnobs,
|
|
217
|
+
SelectedRecipe,
|
|
218
|
+
StateRecipes,
|
|
219
|
+
TextRoleFragment,
|
|
220
|
+
TextStateProps,
|
|
221
|
+
} from "@multiplatform.one/theme";
|
|
222
|
+
export {
|
|
223
|
+
borderRadiusMap,
|
|
224
|
+
capContainerRadius,
|
|
225
|
+
capFieldRadius,
|
|
226
|
+
cardElevationMap,
|
|
227
|
+
cardLift,
|
|
228
|
+
containerCapProps,
|
|
229
|
+
containerRadiusMap,
|
|
230
|
+
edgeColorAt,
|
|
231
|
+
elevationMap,
|
|
232
|
+
getHeadingFontFamily,
|
|
233
|
+
labelFontSizeFor,
|
|
234
|
+
nestedControlPx,
|
|
235
|
+
normalizeSizeToken,
|
|
236
|
+
overlayElevationMap,
|
|
237
|
+
paintedCardFill,
|
|
238
|
+
panelPaddingPx,
|
|
239
|
+
radiusStopFromToken,
|
|
240
|
+
railFillRadius,
|
|
241
|
+
resolveKnobs,
|
|
242
|
+
resolvePageTitleScale,
|
|
243
|
+
resolveTextRoles,
|
|
244
|
+
sizeKeyBelow,
|
|
245
|
+
sizedElevation,
|
|
246
|
+
spacingRoles,
|
|
247
|
+
} from "@multiplatform.one/theme";
|
|
248
|
+
export type {
|
|
249
|
+
CappedContainer,
|
|
250
|
+
ColorScheme,
|
|
251
|
+
ContainerCapDeclaration,
|
|
252
|
+
ResolveKnobsEnvironment,
|
|
253
|
+
} from "@multiplatform.one/theme";
|
|
254
|
+
export {
|
|
255
|
+
clearPresets,
|
|
256
|
+
createThemeConfig,
|
|
257
|
+
getPreset,
|
|
258
|
+
getPresetNames,
|
|
259
|
+
registerPreset,
|
|
260
|
+
resolveThemeFromPreset,
|
|
261
|
+
} from "@multiplatform.one/theme";
|
|
262
|
+
export type { ThemeConfig, ThemeConfigScaleOptions } from "@multiplatform.one/theme";
|
|
263
|
+
export {
|
|
264
|
+
IntentContext,
|
|
265
|
+
solidButtonIntents,
|
|
266
|
+
solidPaletteThemes,
|
|
267
|
+
useIntentContext,
|
|
268
|
+
useResolvedKnobs,
|
|
269
|
+
} from "@multiplatform.one/theme";
|
|
270
|
+
export type { UseResolvedKnobsOptions } from "@multiplatform.one/theme";
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
gnomePlatformExtensions,
|
|
20
|
+
gnomeResolve,
|
|
20
21
|
tamaguiLinkedAliases,
|
|
21
22
|
tamaguiPlugin,
|
|
22
23
|
} from "@multiplatform.one/vite-plugin-gnome";
|
|
@@ -29,23 +30,13 @@ import {
|
|
|
29
30
|
} from "@react-gnome/vite-plugin";
|
|
30
31
|
import react from "@vitejs/plugin-react";
|
|
31
32
|
import { existsSync } from "node:fs";
|
|
32
|
-
import { createRequire } from "node:module";
|
|
33
33
|
import { dirname, resolve } from "node:path";
|
|
34
34
|
import type { Plugin } from "vite";
|
|
35
35
|
import { defineConfig } from "vite";
|
|
36
36
|
|
|
37
|
-
const require = createRequire(import.meta.url);
|
|
38
37
|
const nodeEnv = process.env.RGN_PROD === "1" ? "production" : "development";
|
|
39
38
|
const gnomeDir = resolve(import.meta.dirname, "gnome");
|
|
40
39
|
|
|
41
|
-
/** Directory a package resolves to, so aliases point at THIS app's
|
|
42
|
-
* installed copy. pnpm's store layout means a bare package name resolved
|
|
43
|
-
* from a file outside this app (a linked workspace source, a hoisted
|
|
44
|
-
* @tamagui/*) can miss these — absolute paths cannot. */
|
|
45
|
-
function pkgDir(id: string): string {
|
|
46
|
-
return dirname(require.resolve(`${id}/package.json`));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
40
|
/** The installed @react-gnome scope directory. Under pnpm's default
|
|
50
41
|
* isolated linker it sits in THIS app's node_modules; under
|
|
51
42
|
* `node-linker=hoisted` (this scaffold's .npmrc) everything hoists to
|
|
@@ -85,7 +76,7 @@ export default defineConfig({
|
|
|
85
76
|
// Don't copy public/ (web favicons) or the generated tamagui.css into
|
|
86
77
|
// the GJS bundle directory.
|
|
87
78
|
publicDir: false,
|
|
88
|
-
plugins: [stubRnLibraries, react(), tamaguiPlugin],
|
|
79
|
+
plugins: [stubRnLibraries, gnomeResolve(), react(), tamaguiPlugin],
|
|
89
80
|
resolve: {
|
|
90
81
|
conditions: [...gnomeConditions],
|
|
91
82
|
alias: [
|
|
@@ -107,30 +98,10 @@ export default defineConfig({
|
|
|
107
98
|
// granular @tamagui/* packages this app's graph reaches. The full
|
|
108
99
|
// meta-barrel drags web-only components into the GJS bundle.
|
|
109
100
|
...tamaguiLinkedAliases({ tamaguiBarrel: resolve(gnomeDir, "tamagui-barrel.ts") }),
|
|
110
|
-
// Barrels narrowed for GJS — see gnome/shims/*.ts for what each
|
|
111
|
-
// one drops and why. Exact-name regexes so the shims' own deep
|
|
112
|
-
// `…/src/*` imports don't loop back through the alias.
|
|
113
|
-
{
|
|
114
|
-
find: /^@multiplatform\.one\/components$/,
|
|
115
|
-
replacement: resolve(gnomeDir, "shims/components.ts"),
|
|
116
|
-
},
|
|
117
|
-
{ find: /^@multiplatform\.one\/theme$/, replacement: resolve(gnomeDir, "shims/theme.ts") },
|
|
118
|
-
{ find: /^@multiplatform\.one\/forms$/, replacement: resolve(gnomeDir, "shims/forms.ts") },
|
|
119
|
-
{
|
|
120
|
-
find: /^@multiplatform\.one\/frappe-ui$/,
|
|
121
|
-
replacement: resolve(gnomeDir, "shims/frappe-ui.ts"),
|
|
122
|
-
},
|
|
123
101
|
// One's file router never mounts on GJS (react-native-screens is a
|
|
124
102
|
// native-fabric dead end). The shim backs the router API the
|
|
125
103
|
// screens consume with the framework's navigator seam.
|
|
126
104
|
{ find: /^one$/, replacement: resolve(gnomeDir, "shims/one.ts") },
|
|
127
|
-
// The seam BARREL also exports the DOM host and the One adapter,
|
|
128
|
-
// whose @vxrn/color-scheme import has no GJS story. Resolve the
|
|
129
|
-
// navigator source alone.
|
|
130
|
-
{
|
|
131
|
-
find: /^@multiplatform\.one\/router\/seam$/,
|
|
132
|
-
replacement: resolve(pkgDir("@multiplatform.one/router"), "src/seam/navigator.ts"),
|
|
133
|
-
},
|
|
134
105
|
],
|
|
135
106
|
// One React instance. The @react-gnome packages carry their own react
|
|
136
107
|
// and react-reconciler copies; dedupe forces every import (including
|
|
@@ -144,6 +115,20 @@ export default defineConfig({
|
|
|
144
115
|
// isNative).
|
|
145
116
|
extensions: [...gnomePlatformExtensions, ...gnomeExtensions],
|
|
146
117
|
},
|
|
118
|
+
// Barrels narrowed for GJS, by gnomeResolve(): see gnome/shims/*.ts for
|
|
119
|
+
// what each one drops and why. Everything else resolves the package's
|
|
120
|
+
// gnome export condition.
|
|
121
|
+
gnome: {
|
|
122
|
+
shims: {
|
|
123
|
+
dir: resolve(gnomeDir, "shims"),
|
|
124
|
+
packages: {
|
|
125
|
+
"@multiplatform.one/components": "components.ts",
|
|
126
|
+
"@multiplatform.one/forms": "forms.ts",
|
|
127
|
+
"@multiplatform.one/frappe-ui": "frappe-ui.ts",
|
|
128
|
+
"@multiplatform.one/theme": "theme.ts",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
147
132
|
define: gnomeDefine(nodeEnv),
|
|
148
133
|
build: {
|
|
149
134
|
target: "esnext",
|
package/types/commands/e2e.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface E2EOptions {
|
|
|
6
6
|
noBuild?: boolean;
|
|
7
7
|
filter?: string;
|
|
8
8
|
}
|
|
9
|
-
/** Discover app
|
|
9
|
+
/** Discover the app whose package.json names it the e2e app (`"mpo": { "e2e": true }`), for E2E test cwd. Returns app name (e.g. "one") or null. */
|
|
10
10
|
export declare function discoverE2EApp(projectRoot: string): Promise<string | null>;
|
|
11
11
|
export declare function detectServices(projectRoot: string): Promise<string[]>;
|
|
12
12
|
export declare function generateCompose(services: string[], portOffset: number, projectRoot: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e.d.ts","sourceRoot":"","sources":["../../src/commands/e2e.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmDD,
|
|
1
|
+
{"version":3,"file":"e2e.d.ts","sourceRoot":"","sources":["../../src/commands/e2e.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmDD,oJAAoJ;AACpJ,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAehF;AAED,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkB3E;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAAE,EAClB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAClB,MAAM,CAsBR;AAiHD,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA+G3F"}
|
package/types/commands/init.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* command picks the commit, asks what to keep, and finishes the repo.
|
|
7
7
|
*/
|
|
8
8
|
/** The apps that exist once per project; everything else under apps/ is a product app. */
|
|
9
|
-
export declare const SINGLETON_APPS: readonly ["ethereum", "frappe", "keycloak", "solana", "storybook", "storybook-expo", "sui", "
|
|
9
|
+
export declare const SINGLETON_APPS: readonly ["ethereum", "frappe", "keycloak", "solana", "storybook", "storybook-expo", "sui", "vocs"];
|
|
10
10
|
export type SingletonApp = (typeof SINGLETON_APPS)[number];
|
|
11
11
|
export interface InitOptions {
|
|
12
12
|
/** Product apps besides the project name (each is a renamed apps/one). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,qGASjB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAa3D,MAAM,WAAW,WAAW;IAC1B,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,uDAAuD;IACvD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAMD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,CAUnE;AAsCD,wBAAsB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiHhG"}
|
|
@@ -27,7 +27,7 @@ export declare class ScaffoldError extends Error {
|
|
|
27
27
|
constructor(message: string, request: ScaffoldRequest);
|
|
28
28
|
}
|
|
29
29
|
/** Run scaffold.sh and return the provenance it wrote. */
|
|
30
|
-
export declare function runScaffold(request: ScaffoldRequest): Promise<MpoProvenance>;
|
|
30
|
+
export declare function runScaffold(request: ScaffoldRequest, script?: string): Promise<MpoProvenance>;
|
|
31
31
|
export interface TempScaffold {
|
|
32
32
|
dir: string;
|
|
33
33
|
provenance: MpoProvenance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAKA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3E,oFAAoF;AACpF,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,uCAAuC;IACvC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe;CAItD;AAcD,0DAA0D;AAC1D,wBAAsB,WAAW,
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAKA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3E,oFAAoF;AACpF,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,uCAAuC;IACvC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe;CAItD;AAcD,0DAA0D;AAC1D,wBAAsB,WAAW,CAC/B,OAAO,EAAE,eAAe,EACxB,MAAM,SAAmB,GACxB,OAAO,CAAC,aAAa,CAAC,CA2BxB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,aAAa,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAmDD,kDAAkD;AAClD,wBAAsB,cAAc,CAClC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,GAChD,OAAO,CAAC,YAAY,CAAC,CAgBvB;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -6,9 +6,9 @@ export declare const testTiers: readonly ["unit", "integration", "e2e", "visual"
|
|
|
6
6
|
export type TestTier = (typeof testTiers)[number];
|
|
7
7
|
/** The tiers `mpo test` was asked for (comma or space separated); unit when none is named. */
|
|
8
8
|
export declare function parseTestTiers(args: string[]): TestTier[];
|
|
9
|
-
/** The unit tier: turbo test minus missing services
|
|
9
|
+
/** The unit tier: turbo test minus missing services, then the bench's non-integration tests. */
|
|
10
10
|
export declare function runUnitTests(projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
11
|
-
/** The integration tier: the bench's integration-marked tests
|
|
11
|
+
/** The integration tier: turbo test:integration, then the bench's integration-marked tests; a missing service fails it. */
|
|
12
12
|
export declare function runIntegrationTests(projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
13
13
|
/** `mpo build`: the packages, then every present app with a build script, each once. */
|
|
14
14
|
export declare function runBuild(args: string[], projectRoot: string, spawn?: Spawn): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/commands/verbs.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"verbs.d.ts","sourceRoot":"","sources":["../../src/commands/verbs.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,eAAO,MAAM,iBAAiB,UAA0C,CAAC;AA8FzE,eAAO,MAAM,SAAS,mDAAoD,CAAC;AAE3E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAQzD;AA2CD,gGAAgG;AAChG,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,GAAE,KAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAS/F;AAED,2HAA2H;AAC3H,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,KAAiB,GACvB,OAAO,CAAC,IAAI,CAAC,CAmBf;AAED,wFAAwF;AACxF,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,MAAM,EAAE,EACd,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,KAAiB,GACvB,OAAO,CAAC,IAAI,CAAC,CA4Cf;AAED,sFAAsF;AACtF,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,KAAiB,GACvB,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,0GAA0G;AAC1G,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EAAE,EACd,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,KAAiB,GACvB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,0DAA0D;AAC1D,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAKlF,CAAC"}
|