move example client out of src to break import cycles

This commit is contained in:
Ryan Vazquez
2020-10-29 17:31:05 -04:00
parent 3f5ef4ac16
commit a40536a24b
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
*/
import { createDevApp } from '@backstage/dev-utils';
import { createPlugin, createApiFactory } from '@backstage/core';
import { ExampleCostInsightsClient } from '../src/api';
import { costInsightsApiRef } from '../src';
import { costInsightsApiRef } from '../src/api';
import { ExampleCostInsightsClient } from '../src/client';
import { pluginConfig } from '../src/plugin';
const devPlugin = createPlugin({
-1
View File
@@ -15,4 +15,3 @@
*/
export * from './CostInsightsApi';
export * from './ExampleCostInsightsClient';
@@ -17,7 +17,7 @@
import dayjs from 'dayjs';
import regression, { DataPoint } from 'regression';
import { CostInsightsApi } from './CostInsightsApi';
import { CostInsightsApi } from './api';
import {
Alert,
ChangeStatistic,
@@ -32,13 +32,13 @@ import {
ProjectGrowthData,
Trendline,
UnlabeledDataflowData,
} from '../types';
import { ProjectGrowthAlert, UnlabeledDataflowAlert } from '../utils/alerts';
} from './types';
import { ProjectGrowthAlert, UnlabeledDataflowAlert } from './utils/alerts';
import {
DEFAULT_DATE_FORMAT,
exclusiveEndDateOf,
inclusiveStartDateOf,
} from '../utils/duration';
} from './utils/duration';
type IntervalFields = {
duration: Duration;
+1
View File
@@ -15,6 +15,7 @@
*/
export { plugin } from './plugin';
export * from './ExampleCostInsightsClient';
export * from './api';
export * from './components';
export { useCurrency } from './hooks';