Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions Source/scripts/export-inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"exportSubpaths": [
".",
"./Canvas",
"./Canvas/styles",
"./Chat",
"./Chat/styles",
"./CommandDialog",
"./CommandDialog/styles",
"./CommandForm",
"./CommandForm/fields",
"./CommandForm/fields/styles",
"./CommandForm/styles",
"./CommandStepper",
"./CommandStepper/styles",
"./Common",
"./Common/styles",
"./DataPage",
"./DataPage/styles",
"./DataTables",
"./DataTables/styles",
"./Dialogs",
"./Dialogs/styles",
"./Display",
"./Display/styles",
"./Dropdown",
"./Dropdown/styles",
"./Filter",
"./Filter/styles",
"./Notifications",
"./Notifications/styles",
"./ObjectContentEditor",
"./ObjectContentEditor/styles",
"./ObjectNavigationalBar",
"./ObjectNavigationalBar/styles",
"./PivotViewer",
"./PivotViewer/styles",
"./SchemaEditor",
"./SchemaEditor/styles",
"./TimeMachine",
"./TimeMachine/styles",
"./Toolbar",
"./Toolbar/styles",
"./compat-manifest.json",
"./package.json",
"./renderer",
"./renderer/builtin",
"./renderer/builtin/styles",
"./schemas/ui-adapter.schema.json",
"./styles",
"./styles/base",
"./theme",
"./tokens",
"./types"
]
}
38 changes: 38 additions & 0 deletions Source/scripts/kernel-inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"kernelModules": [
"Source/Canvas/canvasGesture.ts",
"Source/Canvas/canvasTransformActivity.ts",
"Source/Canvas/panMomentum.ts",
"Source/Canvas/pinchGesture.ts",
"Source/Canvas/shapes/Region/regionContainment.ts",
"Source/Chat/Kit/Mentions/MentionCandidate.ts",
"Source/Chat/Kit/Mentions/MentionQuery.ts",
"Source/Chat/Kit/Mentions/activeMentionQuery.ts",
"Source/Chat/Kit/Mentions/applyMention.ts",
"Source/Chat/Kit/Mentions/extractMentions.ts",
"Source/Chat/Kit/Mentions/findMentionRanges.ts",
"Source/Chat/Kit/Mentions/matchCandidates.ts",
"Source/Chat/Kit/Mentions/mentionSegments.ts",
"Source/Chat/Kit/findOwnReaction.ts",
"Source/Chat/Kit/reactionsExcludingUser.ts",
"Source/Chat/isTopicUnnamed.ts",
"Source/Chat/shouldRequestTopicName.ts",
"Source/Chat/topicsByActivity.ts",
"Source/CommandDialog/applyBeforeExecute.ts",
"Source/CommandForm/commandFormMarkers.ts",
"Source/CommandForm/fields/chipValues.ts",
"Source/CommandForm/fields/fieldValueFromEvent.ts",
"Source/DataTables/DataTableFilterMatcherRegistry.ts",
"Source/DataTables/DataTableFilterMeta.ts",
"Source/DataTables/paginatorRange.ts",
"Source/DataTables/selectionKeys.ts",
"Source/Filter/types.ts",
"Source/Filter/utils.ts",
"Source/PivotViewer/constants.ts",
"Source/PivotViewer/engine/layout.ts",
"Source/PivotViewer/engine/requestCorrelator.ts",
"Source/PivotViewer/engine/store.ts",
"Source/PivotViewer/engine/types.ts",
"Source/SchemaEditor/schemaHelpers.ts"
]
}
20 changes: 20 additions & 0 deletions Source/scripts/lib/package-inventories.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) Cratis. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { kernelSourcePaths } from '../../../ESLint/lib/kernelBoundary.js';
import { checkInventory } from '../../../scripts/lib/evidence-inventory.mjs';

const sourceRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');
const command = 'yarn generate-inventories';

export const checkKernelInventory = (update = false) => checkInventory(
path.join(sourceRoot, 'scripts/kernel-inventory.json'),
{ kernelModules: kernelSourcePaths }, command, update,
);

export const checkExportInventory = (exportsMap, update = false) => checkInventory(
path.join(sourceRoot, 'scripts/export-inventory.json'),
{ exportSubpaths: Object.keys(exportsMap ?? {}) }, command, update,
);
Loading
Loading