@7365admin1/layer-common 4.28.1-staging.361 → 4.28.1-staging.363
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/assets/css/robot-hero.css +489 -1
- package/components/Robot/BuildingMap.vue +403 -0
- package/components/Robot/Detail.vue +445 -0
- package/components/Robot/Fleet.vue +3 -1
- package/components/Robot/FloorPlan.vue +43 -0
- package/components/Robot/LiftQueue.vue +247 -0
- package/components/Robot/LivePlan.vue +59 -0
- package/components/Robot/MapEditor.vue +233 -0
- package/components/Robot/Mark.vue +17 -0
- package/components/Robot/MiniMap.vue +120 -0
- package/components/Robot/PatrolRoutes.vue +48 -0
- package/components/Robot/SiteFleet.vue +266 -0
- package/components/Robot/SiteHeader.vue +64 -0
- package/components/Robot/SiteScreen.vue +195 -0
- package/components/Robot/Table.vue +4 -1
- package/composables/useRobotBuilding.ts +66 -0
- package/composables/useRobotLive.ts +18 -0
- package/composables/useRobots.ts +52 -1
- package/package.json +2 -2
- package/utils/robot-building.ts +521 -0
- package/utils/robot-display.ts +520 -9
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!--
|
|
3
|
+
One estate's robots in the HERO look: the shared shell header (hidden when
|
|
4
|
+
the host draws its own, e.g. the console's drill-down), then the site
|
|
5
|
+
fleet overview, the building map or the lift queue (`view`), or one
|
|
6
|
+
robot's detail when `robotId` is set. Every app
|
|
7
|
+
passes only its scope (org, site, the robot types it presents) and what
|
|
8
|
+
this user's role may do; the API narrows again on its own side.
|
|
9
|
+
-->
|
|
10
|
+
<RobotHero class="hero-screen">
|
|
11
|
+
<RobotSiteHeader
|
|
12
|
+
v-if="!hideHeader"
|
|
13
|
+
:org-name="orgName || names.clientName"
|
|
14
|
+
:sites="sites"
|
|
15
|
+
:site="site"
|
|
16
|
+
:types="types"
|
|
17
|
+
:type="type"
|
|
18
|
+
:connected="connected"
|
|
19
|
+
:faults="faults"
|
|
20
|
+
:role="role"
|
|
21
|
+
@update:site="(id) => emit('update:site', id)"
|
|
22
|
+
@update:type="setType"
|
|
23
|
+
@bell="emit('bell')"
|
|
24
|
+
/>
|
|
25
|
+
<main class="hero-main">
|
|
26
|
+
<RobotDetail
|
|
27
|
+
v-if="robotId"
|
|
28
|
+
:key="robotId"
|
|
29
|
+
:robot-id="robotId"
|
|
30
|
+
:back-label="siteName || names.siteName ? `${siteName || names.siteName} fleet` : ''"
|
|
31
|
+
:can-edit="canEdit"
|
|
32
|
+
:can-command="canCommand"
|
|
33
|
+
:can-delete="canDelete"
|
|
34
|
+
@back="emit('back')"
|
|
35
|
+
@removed="onRemoved"
|
|
36
|
+
@status="(s) => (connected = s.connected)"
|
|
37
|
+
/>
|
|
38
|
+
<RobotBuildingMap
|
|
39
|
+
v-else-if="view === 'map'"
|
|
40
|
+
:key="`map:${site}:${type}`"
|
|
41
|
+
:organization="organization"
|
|
42
|
+
:site="site"
|
|
43
|
+
:site-name="siteName"
|
|
44
|
+
:client-name="clientName"
|
|
45
|
+
:type="type"
|
|
46
|
+
:can-edit-map="canSetup && canEdit"
|
|
47
|
+
:back-to-network="backToNetwork"
|
|
48
|
+
@open="(id) => emit('open', id)"
|
|
49
|
+
@network="emit('network')"
|
|
50
|
+
@status="onFleetStatus"
|
|
51
|
+
/>
|
|
52
|
+
<RobotLiftQueue
|
|
53
|
+
v-else-if="view === 'lifts'"
|
|
54
|
+
:key="`lifts:${site}:${type}`"
|
|
55
|
+
:organization="organization"
|
|
56
|
+
:site="site"
|
|
57
|
+
:site-name="siteName"
|
|
58
|
+
:client-name="clientName"
|
|
59
|
+
:type="type"
|
|
60
|
+
:can-command="canCommand"
|
|
61
|
+
:can-edit-map="canSetup && canEdit"
|
|
62
|
+
:back-to-network="backToNetwork"
|
|
63
|
+
@open="(id) => emit('open', id)"
|
|
64
|
+
@network="emit('network')"
|
|
65
|
+
@status="onFleetStatus"
|
|
66
|
+
/>
|
|
67
|
+
<RobotSiteFleet
|
|
68
|
+
v-else
|
|
69
|
+
:organization="organization"
|
|
70
|
+
:site="site"
|
|
71
|
+
:site-name="siteName"
|
|
72
|
+
:client-name="clientName"
|
|
73
|
+
:type="type"
|
|
74
|
+
:can-setup="canSetup"
|
|
75
|
+
:back-to-network="backToNetwork"
|
|
76
|
+
:reload-key="reloadKey"
|
|
77
|
+
@open="(r) => emit('open', String(r._id))"
|
|
78
|
+
@add="addOpen = true"
|
|
79
|
+
@network="emit('network')"
|
|
80
|
+
@status="onFleetStatus"
|
|
81
|
+
/>
|
|
82
|
+
</main>
|
|
83
|
+
|
|
84
|
+
<v-dialog v-model="addOpen" width="460" persistent>
|
|
85
|
+
<RobotForm
|
|
86
|
+
v-if="addOpen"
|
|
87
|
+
:organization="organization"
|
|
88
|
+
:site="site"
|
|
89
|
+
:type="type"
|
|
90
|
+
@cancel="addOpen = false"
|
|
91
|
+
@created="onCreated"
|
|
92
|
+
/>
|
|
93
|
+
</v-dialog>
|
|
94
|
+
<RobotToast v-model="toast" />
|
|
95
|
+
</RobotHero>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<script setup lang="ts">
|
|
99
|
+
import { computed, ref, watch } from "vue";
|
|
100
|
+
import RobotHero from "./Hero.vue";
|
|
101
|
+
import RobotSiteHeader from "./SiteHeader.vue";
|
|
102
|
+
import RobotSiteFleet from "./SiteFleet.vue";
|
|
103
|
+
import RobotDetail from "./Detail.vue";
|
|
104
|
+
import RobotBuildingMap from "./BuildingMap.vue";
|
|
105
|
+
import RobotLiftQueue from "./LiftQueue.vue";
|
|
106
|
+
import RobotForm from "./Form.vue";
|
|
107
|
+
import RobotToast from "./Toast.vue";
|
|
108
|
+
import { roleLabel, type TRobotType } from "../../utils/robot-display";
|
|
109
|
+
|
|
110
|
+
const props = withDefaults(
|
|
111
|
+
defineProps<{
|
|
112
|
+
organization: string;
|
|
113
|
+
site: string;
|
|
114
|
+
siteName?: string;
|
|
115
|
+
clientName?: string;
|
|
116
|
+
/** The header's org line ("Marina Bay Residences · MCST 3821"). */
|
|
117
|
+
orgName?: string;
|
|
118
|
+
/** The sites this person may pick; the Site select shows only with more than one. */
|
|
119
|
+
sites?: Array<{ _id: string; name: string }>;
|
|
120
|
+
/** The robot types this app presents (scope isolation): both only for Property Management. */
|
|
121
|
+
types?: TRobotType[];
|
|
122
|
+
/** The type shown now (v-model:type); defaults to the first allowed. */
|
|
123
|
+
type?: TRobotType;
|
|
124
|
+
/** One robot open, or none (the fleet). */
|
|
125
|
+
robotId?: string;
|
|
126
|
+
/** Which screen: the fleet (default), the 3D building map, or the lift queue. A robot open wins. */
|
|
127
|
+
view?: "fleet" | "map" | "lifts";
|
|
128
|
+
canSetup?: boolean;
|
|
129
|
+
canEdit?: boolean;
|
|
130
|
+
canCommand?: boolean;
|
|
131
|
+
canDelete?: boolean;
|
|
132
|
+
superAdmin?: boolean;
|
|
133
|
+
hideHeader?: boolean;
|
|
134
|
+
backToNetwork?: boolean;
|
|
135
|
+
}>(),
|
|
136
|
+
{
|
|
137
|
+
siteName: "",
|
|
138
|
+
clientName: "",
|
|
139
|
+
orgName: "",
|
|
140
|
+
sites: () => [],
|
|
141
|
+
types: () => ["cleaning"],
|
|
142
|
+
type: undefined,
|
|
143
|
+
robotId: "",
|
|
144
|
+
view: "fleet",
|
|
145
|
+
canSetup: false,
|
|
146
|
+
canEdit: false,
|
|
147
|
+
canCommand: false,
|
|
148
|
+
canDelete: false,
|
|
149
|
+
superAdmin: false,
|
|
150
|
+
hideHeader: false,
|
|
151
|
+
backToNetwork: false,
|
|
152
|
+
},
|
|
153
|
+
);
|
|
154
|
+
const emit = defineEmits<{
|
|
155
|
+
"update:site": [id: string];
|
|
156
|
+
"update:type": [type: TRobotType];
|
|
157
|
+
open: [id: string];
|
|
158
|
+
back: [];
|
|
159
|
+
network: [];
|
|
160
|
+
bell: [];
|
|
161
|
+
/** Live feed health + open faults, for a host drawing its own header. */
|
|
162
|
+
status: [status: { connected: boolean; faults: number }];
|
|
163
|
+
}>();
|
|
164
|
+
|
|
165
|
+
/** Never a type this app does not present, whatever the URL asked for. */
|
|
166
|
+
const type = computed<TRobotType>(() => (props.type && props.types.includes(props.type) ? props.type : props.types[0] ?? "cleaning"));
|
|
167
|
+
function setType(t: TRobotType) {
|
|
168
|
+
if (props.types.includes(t)) emit("update:type", t);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const role = computed(() => roleLabel({ superAdmin: props.superAdmin, canCommand: props.canCommand, canSetup: props.canSetup }));
|
|
172
|
+
const connected = ref(true);
|
|
173
|
+
const faults = ref(0);
|
|
174
|
+
const names = ref({ siteName: "", clientName: "" });
|
|
175
|
+
function onFleetStatus(s: { connected: boolean; faults: number; siteName: string; clientName: string }) {
|
|
176
|
+
connected.value = s.connected;
|
|
177
|
+
faults.value = s.faults;
|
|
178
|
+
if (s.siteName) names.value = { siteName: s.siteName, clientName: s.clientName };
|
|
179
|
+
}
|
|
180
|
+
watch([connected, faults], ([c, f]) => emit("status", { connected: c, faults: f }));
|
|
181
|
+
|
|
182
|
+
const addOpen = ref(false);
|
|
183
|
+
const toast = ref("");
|
|
184
|
+
const reloadKey = ref(0);
|
|
185
|
+
function onCreated() {
|
|
186
|
+
addOpen.value = false;
|
|
187
|
+
toast.value = "Robot saved · credentials hidden";
|
|
188
|
+
reloadKey.value++;
|
|
189
|
+
}
|
|
190
|
+
function onRemoved(name: string) {
|
|
191
|
+
toast.value = `${name} removed`;
|
|
192
|
+
reloadKey.value++;
|
|
193
|
+
emit("back");
|
|
194
|
+
}
|
|
195
|
+
</script>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
</v-data-table-server>
|
|
51
51
|
|
|
52
|
-
<div v-if="!loading && range.total" class="hero-table__foot">
|
|
52
|
+
<div v-if="!loading && range.total && (!pagedFoot || range.pages > 1)" class="hero-table__foot">
|
|
53
53
|
<span>{{ range.text }}</span>
|
|
54
54
|
<div v-if="range.pages > 1" class="hero-table__pager">
|
|
55
55
|
<v-btn variant="outlined" :disabled="!range.hasPrev" @click="emit('update:page', range.page - 1)">Prev</v-btn>
|
|
@@ -82,6 +82,8 @@ const props = withDefaults(
|
|
|
82
82
|
skeletonRows?: number;
|
|
83
83
|
/** 12.5px rows, for the Network table. */
|
|
84
84
|
compact?: boolean;
|
|
85
|
+
/** Footer ("Showing 1–25 of 60" + pager) only when there is more than one page (the site fleet). */
|
|
86
|
+
pagedFoot?: boolean;
|
|
85
87
|
}>(),
|
|
86
88
|
{
|
|
87
89
|
page: 1,
|
|
@@ -93,6 +95,7 @@ const props = withDefaults(
|
|
|
93
95
|
emptyHint: "",
|
|
94
96
|
skeletonRows: 6,
|
|
95
97
|
compact: false,
|
|
98
|
+
pagedFoot: false,
|
|
96
99
|
},
|
|
97
100
|
);
|
|
98
101
|
const emit = defineEmits<{ "update:page": [page: number] }>();
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { computed, ref, watch, type Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One site's building for the HERO building map and lift queue: the robots
|
|
5
|
+
* at the site this app may see (the API narrows by app), the ones of the type
|
|
6
|
+
* on screen, and the site's saved building map - the newest map saved on any
|
|
7
|
+
* of those robots (maps are stored per robot; the building is one).
|
|
8
|
+
*
|
|
9
|
+
* ponytail: the first 50 robots at the site and one map read per robot; a
|
|
10
|
+
* site-level map endpoint when a site holds more robots than that.
|
|
11
|
+
*/
|
|
12
|
+
export default function useRobotBuilding(
|
|
13
|
+
organization: Ref<string>,
|
|
14
|
+
site: Ref<string>,
|
|
15
|
+
type: Ref<"cleaning" | "security">,
|
|
16
|
+
) {
|
|
17
|
+
const { getSiteFleet, getSiteSummary, listBuildingMaps, getBuildingMap } = useRobots();
|
|
18
|
+
|
|
19
|
+
/** Every robot at the site this app may see, both types where the app shows both. */
|
|
20
|
+
const all = ref<Array<Record<string, any>>>([]);
|
|
21
|
+
const map = ref<Record<string, any> | null>(null);
|
|
22
|
+
const names = ref({ siteName: "", clientName: "" });
|
|
23
|
+
const loading = ref(true);
|
|
24
|
+
const error = ref("");
|
|
25
|
+
|
|
26
|
+
/** The robots of the type on screen (scope isolation: the other type is never drawn). */
|
|
27
|
+
const rows = computed(() => all.value.filter((r) => r.type === type.value));
|
|
28
|
+
|
|
29
|
+
async function loadMap(robots: Array<Record<string, any>>) {
|
|
30
|
+
const latest = await Promise.allSettled(robots.map((r) => listBuildingMaps(String(r._id), { limit: 1 })));
|
|
31
|
+
const summaries = latest
|
|
32
|
+
.flatMap((p) => (p.status === "fulfilled" ? p.value?.items ?? [] : []))
|
|
33
|
+
.sort((a: any, b: any) => new Date(b.updatedAt ?? 0).getTime() - new Date(a.updatedAt ?? 0).getTime());
|
|
34
|
+
return summaries[0] ? await getBuildingMap(String(summaries[0]._id)) : null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let run = 0;
|
|
38
|
+
async function load() {
|
|
39
|
+
const mine = ++run;
|
|
40
|
+
loading.value = true;
|
|
41
|
+
error.value = "";
|
|
42
|
+
try {
|
|
43
|
+
const [fleet, summary] = await Promise.all([
|
|
44
|
+
getSiteFleet(organization.value, site.value, { page: 1, limit: 50 }),
|
|
45
|
+
getSiteSummary(organization.value, site.value).catch(() => null),
|
|
46
|
+
]);
|
|
47
|
+
if (mine !== run) return;
|
|
48
|
+
all.value = fleet?.items ?? [];
|
|
49
|
+
names.value = { siteName: summary?.site?.name ?? "", clientName: summary?.client?.name ?? "" };
|
|
50
|
+
const found = await loadMap(all.value);
|
|
51
|
+
if (mine !== run) return;
|
|
52
|
+
map.value = found;
|
|
53
|
+
} catch (e: any) {
|
|
54
|
+
if (mine !== run) return;
|
|
55
|
+
all.value = [];
|
|
56
|
+
map.value = null;
|
|
57
|
+
error.value = e?.data?.message || "Could not load this building.";
|
|
58
|
+
} finally {
|
|
59
|
+
if (mine === run) loading.value = false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
watch([organization, site], load, { immediate: true });
|
|
64
|
+
|
|
65
|
+
return { all, rows, map, names, loading, error, reload: load };
|
|
66
|
+
}
|
|
@@ -89,6 +89,24 @@ export function networkStatesFeed(intervalMs = 4000): TRobotLiveFeed {
|
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Any estate screen's feed (Property Management, Hygiene, Security, the
|
|
94
|
+
* console's site drill-down, robot detail): `GET /api/robots/states?ids=...`.
|
|
95
|
+
* The API checks every robot against its own site and narrows by the app's
|
|
96
|
+
* `appSlug`, so a robot this screen may not see simply never arrives.
|
|
97
|
+
*/
|
|
98
|
+
export function siteStatesFeed(intervalMs = 4000): TRobotLiveFeed {
|
|
99
|
+
const appSlug = useRuntimeConfig().public?.appSlug as string | undefined;
|
|
100
|
+
return robotPollingFeed(
|
|
101
|
+
(ids) =>
|
|
102
|
+
useNuxtApp().$api<{ items: any[] }>("/api/robots/states", {
|
|
103
|
+
method: "GET",
|
|
104
|
+
query: { ids: ids.join(","), appSlug },
|
|
105
|
+
}),
|
|
106
|
+
intervalMs,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
92
110
|
/**
|
|
93
111
|
* `states[id]` for every robot in `ids`, kept live by `feed`. Re-watches when
|
|
94
112
|
* the ids change (a new page, a new filter); stops on unmount.
|
package/composables/useRobots.ts
CHANGED
|
@@ -32,6 +32,50 @@ export default function useRobots() {
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* One site's robots for the HERO fleet screen: the stored record plus each
|
|
37
|
+
* robot's open fault / OFFLINE record and last-seen, paged. The answer has
|
|
38
|
+
* `pages` and `total` (read them with `listMeta` - never `totalPages`).
|
|
39
|
+
*/
|
|
40
|
+
function getSiteFleet(
|
|
41
|
+
organization: string,
|
|
42
|
+
site: string,
|
|
43
|
+
{ page = 1, limit = 25, type = "", search = "" }: { page?: number; limit?: number; type?: string; search?: string } = {},
|
|
44
|
+
) {
|
|
45
|
+
return useNuxtApp().$api<Record<string, any>>(
|
|
46
|
+
`/api/robots/organization/${organization}/site/${site}/fleet`,
|
|
47
|
+
{ method: "GET", query: { page, limit, type: type || undefined, search: search || undefined, appSlug } },
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** The site's six summary counts (Total · Online · Working · Charging · Faults · Offline). */
|
|
52
|
+
function getSiteSummary(organization: string, site: string, { type = "" }: { type?: string } = {}) {
|
|
53
|
+
return useNuxtApp().$api<Record<string, any>>(
|
|
54
|
+
`/api/robots/organization/${organization}/site/${site}/summary`,
|
|
55
|
+
{ method: "GET", query: { type: type || undefined, appSlug } },
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** One robot's record for its detail screen: names, serial, open fault. Never a credential. */
|
|
60
|
+
function getRobot(id: string) {
|
|
61
|
+
return useNuxtApp().$api<Record<string, any>>(`/api/robots/${id}`, {
|
|
62
|
+
method: "GET",
|
|
63
|
+
query: { appSlug },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A security robot's patrol routes (ordered, named checkpoints; the one it is
|
|
69
|
+
* heading for) and their schedule. `supported: false` = the brand has no
|
|
70
|
+
* patrol interface - show "Monitoring not available", never an invented route.
|
|
71
|
+
*/
|
|
72
|
+
function getPatrolRoutes(id: string) {
|
|
73
|
+
return useNuxtApp().$api<Record<string, any>>(`/api/robots/${id}/patrol-routes`, {
|
|
74
|
+
method: "GET",
|
|
75
|
+
query: { appSlug },
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
35
79
|
/**
|
|
36
80
|
* Register a robot.
|
|
37
81
|
*
|
|
@@ -212,7 +256,10 @@ export default function useRobots() {
|
|
|
212
256
|
| { kind: "return" }
|
|
213
257
|
| { kind: "full"; cleanTimes?: number; modeFlag?: number; subModeFlag?: number; levelFlag?: number }
|
|
214
258
|
| { kind: "area"; areas: string[]; cleanTimes?: number; modeFlag?: number; subModeFlag?: number; levelFlag?: number }
|
|
215
|
-
| { kind: "spot"; points: Array<{ x: number; y: number }>; cleanTimes?: number; modeFlag?: number; subModeFlag?: number; levelFlag?: number }
|
|
259
|
+
| { kind: "spot"; points: Array<{ x: number; y: number }>; cleanTimes?: number; modeFlag?: number; subModeFlag?: number; levelFlag?: number }
|
|
260
|
+
| { kind: "pause" | "resume" | "cancel" }
|
|
261
|
+
| { kind: "navigate"; x: number; y: number; theta?: number }
|
|
262
|
+
| { kind: "relocalize"; floorNo: number; x: number; y: number; theta: number },
|
|
216
263
|
) {
|
|
217
264
|
return useNuxtApp().$api<Record<string, any>>(
|
|
218
265
|
`/api/robots/${id}/command`,
|
|
@@ -310,6 +357,10 @@ export default function useRobots() {
|
|
|
310
357
|
releaseLiftSession,
|
|
311
358
|
getRobotLiftSession,
|
|
312
359
|
getRobots,
|
|
360
|
+
getSiteFleet,
|
|
361
|
+
getSiteSummary,
|
|
362
|
+
getRobot,
|
|
363
|
+
getPatrolRoutes,
|
|
313
364
|
getRobotBrands,
|
|
314
365
|
trackRobot,
|
|
315
366
|
createRobot,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.28.1-staging.
|
|
5
|
+
"version": "4.28.1-staging.363",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build": "nuxt build .playground",
|
|
37
37
|
"generate": "nuxt generate .playground",
|
|
38
38
|
"preview": "nuxt preview .playground",
|
|
39
|
-
"test": "esbuild composables/useVisitorSocket.ts --format=esm --outfile=test/.build/useVisitorSocket.mjs --log-level=error && esbuild composables/usePlateToastWindow.ts --format=esm --outfile=test/.build/usePlateToastWindow.mjs --log-level=error && esbuild utils/client-invite-modules.ts --bundle --platform=node --format=esm --outfile=test/.build/client-invite-modules.mjs --log-level=error && esbuild utils/robot-display.ts --bundle --platform=node --format=esm --outfile=test/.build/robot-display.mjs --log-level=error && esbuild utils/building-map.ts --bundle --platform=node --format=esm --outfile=test/.build/building-map.mjs --log-level=error && node --experimental-strip-types --test \"test/*.test.mjs\" && yarn test:units",
|
|
39
|
+
"test": "esbuild composables/useVisitorSocket.ts --format=esm --outfile=test/.build/useVisitorSocket.mjs --log-level=error && esbuild composables/usePlateToastWindow.ts --format=esm --outfile=test/.build/usePlateToastWindow.mjs --log-level=error && esbuild utils/client-invite-modules.ts --bundle --platform=node --format=esm --outfile=test/.build/client-invite-modules.mjs --log-level=error && esbuild utils/robot-display.ts --bundle --platform=node --format=esm --outfile=test/.build/robot-display.mjs --log-level=error && esbuild utils/building-map.ts --bundle --platform=node --format=esm --outfile=test/.build/building-map.mjs --log-level=error && esbuild utils/robot-building.ts --bundle --platform=node --format=esm --outfile=test/.build/robot-building.mjs --log-level=error && node --experimental-strip-types --test \"test/*.test.mjs\" && yarn test:units",
|
|
40
40
|
"test:units": "node --experimental-strip-types --test \"utils/*.test.ts\"",
|
|
41
41
|
"release": "yarn run build && changeset publish"
|
|
42
42
|
},
|