From 7dc36f2e773b1c796991118306edc0ebd3facf48 Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 29 Oct 2022 23:02:16 -0400 Subject: [PATCH] Move configuration files --- src/{core => api}/configuration/IConfigurationManager.ts | 2 +- src/api/configuration/index.ts | 1 + src/api/index.ts | 2 ++ src/core/INitroCore.ts | 3 +-- src/core/NitroCore.ts | 3 +-- src/core/configuration/ConfigurationManager.ts | 4 ++-- src/core/configuration/index.ts | 1 - 7 files changed, 8 insertions(+), 8 deletions(-) rename src/{core => api}/configuration/IConfigurationManager.ts (84%) create mode 100644 src/api/configuration/index.ts diff --git a/src/core/configuration/IConfigurationManager.ts b/src/api/configuration/IConfigurationManager.ts similarity index 84% rename from src/core/configuration/IConfigurationManager.ts rename to src/api/configuration/IConfigurationManager.ts index ba2833bc..503026be 100644 --- a/src/core/configuration/IConfigurationManager.ts +++ b/src/api/configuration/IConfigurationManager.ts @@ -1,4 +1,4 @@ -import { INitroManager } from '../../api'; +import { INitroManager } from '../common'; export interface IConfigurationManager extends INitroManager { diff --git a/src/api/configuration/index.ts b/src/api/configuration/index.ts new file mode 100644 index 00000000..1b5c3fde --- /dev/null +++ b/src/api/configuration/index.ts @@ -0,0 +1 @@ +export * from './IConfigurationManager'; diff --git a/src/api/index.ts b/src/api/index.ts index d03b92b6..6432ddb1 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -11,4 +11,6 @@ export * from './asset/visualization/gestures'; export * from './asset/visualization/postures'; export * from './common'; export * from './communication'; +export * from './communication/enums'; +export * from './configuration'; export * from './events'; diff --git a/src/core/INitroCore.ts b/src/core/INitroCore.ts index 9051c792..a10387e6 100644 --- a/src/core/INitroCore.ts +++ b/src/core/INitroCore.ts @@ -1,5 +1,4 @@ -import { IAssetManager, ICommunicationManager, IDisposable } from '../api'; -import { IConfigurationManager } from './configuration/IConfigurationManager'; +import { IAssetManager, ICommunicationManager, IConfigurationManager, IDisposable } from '../api'; export interface INitroCore extends IDisposable { diff --git a/src/core/NitroCore.ts b/src/core/NitroCore.ts index 9b8c261e..633036a2 100644 --- a/src/core/NitroCore.ts +++ b/src/core/NitroCore.ts @@ -1,9 +1,8 @@ -import { IAssetManager, ICommunicationManager } from '../api'; +import { IAssetManager, ICommunicationManager, IConfigurationManager } from '../api'; import { AssetManager } from './asset/AssetManager'; import { Disposable } from './common/Disposable'; import { CommunicationManager } from './communication/CommunicationManager'; import { ConfigurationManager } from './configuration/ConfigurationManager'; -import { IConfigurationManager } from './configuration/IConfigurationManager'; import { INitroCore } from './INitroCore'; import { SayHello } from './utils/SayHello'; diff --git a/src/core/configuration/ConfigurationManager.ts b/src/core/configuration/ConfigurationManager.ts index fe2a099a..ff4b2684 100644 --- a/src/core/configuration/ConfigurationManager.ts +++ b/src/core/configuration/ConfigurationManager.ts @@ -1,6 +1,6 @@ -import { NitroManager } from '../common/NitroManager'; +import { IConfigurationManager } from '../../api'; +import { NitroManager } from '../common/NitroManager'; import { ConfigurationEvent } from './ConfigurationEvent'; -import { IConfigurationManager } from './IConfigurationManager'; export class ConfigurationManager extends NitroManager implements IConfigurationManager { diff --git a/src/core/configuration/index.ts b/src/core/configuration/index.ts index cac646dd..1b3e2847 100644 --- a/src/core/configuration/index.ts +++ b/src/core/configuration/index.ts @@ -1,3 +1,2 @@ export * from './ConfigurationEvent'; export * from './ConfigurationManager'; -export * from './IConfigurationManager';