Skip to content

Commit

Permalink
fix(npm): add missing generated file to npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Mar 19, 2019
1 parent 5e62f7b commit 6dd9140
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 15 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: node_js
cache: yarn
# nodejs version from nvmrc
# yarn install is default install lifecycle
script:
- yarn global add codecov -g
- yarn build:ts --noEmit && yarn lint && yarn test --coverage
- yarn build && yarn lint && yarn test --coverage
after_success:
- codecov
- yarn semantic-release
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export { Position, Rendering, Rotation } from './lib/series/specs';
export * from './lib/themes/theme';
export { LIGHT_THEME } from './lib/themes/light_theme';
export { DARK_THEME } from './lib/themes/dark_theme';
export * from './lib/themes/theme_commons';
export { CurveType } from './lib/series/curves';
export { niceTimeFormatter } from './utils/data/formatters';
export { timeFormatter, niceTimeFormatter, niceTimeFormatByDay } from './utils/data/formatters';
export { DataGenerator } from './utils/data_generators/data_generator';
export { DataSeriesColorsValues } from './lib/series/series';
export { CustomSeriesColorsMap } from './lib/series/specs';
2 changes: 1 addition & 1 deletion stories/area_chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
Position,
ScaleType,
Settings,
timeFormatter,
} from '../src';
import { KIBANA_METRICS } from '../src/lib/series/utils/test_dataset_kibana';
import { timeFormatter } from '../src/utils/data/formatters';
const dateFormatter = timeFormatter('HH:mm');

storiesOf('Area Chart', module)
Expand Down
3 changes: 2 additions & 1 deletion stories/bar_chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import {
getAxisId,
getSpecId,
LIGHT_THEME,
niceTimeFormatByDay,
Position,
ScaleType,
Settings,
timeFormatter,
} from '../src/';
import * as TestDatasets from '../src/lib/series/utils/test_dataset';
import { KIBANA_METRICS } from '../src/lib/series/utils/test_dataset_kibana';
import { niceTimeFormatByDay, timeFormatter } from '../src/utils/data/formatters';

storiesOf('Bar Chart', module)
.add('basic', () => {
Expand Down
2 changes: 1 addition & 1 deletion stories/interactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Axis,
BarSeries,
Chart,
CurveType,
getAxisId,
getSpecId,
LineSeries,
Expand All @@ -17,7 +18,6 @@ import {

import { boolean } from '@storybook/addon-knobs';
import { DateTime } from 'luxon';
import { CurveType } from '../src/lib/series/curves';
import * as TestDatasets from '../src/lib/series/utils/test_dataset';

const onElementListeners = {
Expand Down
6 changes: 2 additions & 4 deletions stories/legend.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { boolean } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/react';
import React from 'react';
import {
Expand All @@ -11,7 +12,6 @@ import {
Settings,
} from '../src/';
import * as TestDatasets from '../src/lib/series/utils/test_dataset';
import { boolean } from '@storybook/addon-knobs';

storiesOf('Legend', module)
.add('right', () => {
Expand Down Expand Up @@ -135,8 +135,7 @@ storiesOf('Legend', module)
);
})
.add('changing specs', () => {
const splitSeries = boolean('split series', true) ?
['g1', 'g2'] : undefined;
const splitSeries = boolean('split series', true) ? ['g1', 'g2'] : undefined;
return (
<Chart renderer="canvas" className={'story-chart'}>
<Settings showLegend={true} legendPosition={Position.Top} />
Expand Down Expand Up @@ -166,4 +165,3 @@ storiesOf('Legend', module)
</Chart>
);
});

4 changes: 3 additions & 1 deletion stories/line_chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import {
getAxisId,
getSpecId,
LineSeries,
niceTimeFormatByDay,
Position,
ScaleType,
Settings,
timeFormatter,
} from '../src/';
import { KIBANA_METRICS } from '../src/lib/series/utils/test_dataset_kibana';
import { niceTimeFormatByDay, timeFormatter } from '../src/utils/data/formatters';
const dateFormatter = timeFormatter(niceTimeFormatByDay(1));

storiesOf('Line Chart', module)
.add('basic', () => {
return (
Expand Down
6 changes: 3 additions & 3 deletions stories/styling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ import {
BarSeries,
Chart,
CurveType,
CustomSeriesColorsMap,
DARK_THEME,
DataGenerator,
DataSeriesColorsValues,
DEFAULT_MISSING_COLOR,
getAxisId,
getSpecId,
LIGHT_THEME,
Expand All @@ -21,10 +24,7 @@ import {
ScaleType,
Settings,
} from '../src/';
import { DataSeriesColorsValues } from '../src/lib/series/series';
import { CustomSeriesColorsMap } from '../src/lib/series/specs';
import * as TestDatasets from '../src/lib/series/utils/test_dataset';
import { DEFAULT_MISSING_COLOR } from '../src/lib/themes/theme_commons';

function range(
title: string,
Expand Down
Empty file removed stories/utils.ts
Empty file.

0 comments on commit 6dd9140

Please sign in to comment.