Skip to content

Commit

Permalink
feat(build): use common build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomaash committed Mar 8, 2020
1 parent a86e70f commit 479334a
Show file tree
Hide file tree
Showing 24 changed files with 1,310 additions and 1,965 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ npm-debug.log
.commits.tmp
.nyc_output/
/coverage/
/declarations/
/dist/
/esnext/
/examples/graph2d-generated/
Expand All @@ -27,3 +28,4 @@ npm-debug.log
/peer/
/standalone/
/styles/
/vis-timeline-0.0.0-no-version.tgz
4 changes: 4 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
exclude: require("vis-dev-utils").BABEL_IGNORE_RE,
presets: [["vis-dev-utils/babel-preset", { ts: true }]]
};
4 changes: 2 additions & 2 deletions lib/bundle-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import "moment/locale/ru";
import "moment/locale/uk";

// utils
import util from "vis-util";
import * as util from "vis-util/esnext";
import * as DOMutil from "./DOMutil";

// data
import { DataSet, DataView, Queue } from "vis-data";
import { DataSet, DataView, Queue } from "vis-data/esnext";

// Timeline
import Timeline from "./timeline/Timeline";
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/entry-peer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./entry-esnext";
4 changes: 2 additions & 2 deletions lib/bundle-standalone.js → lib/entry-standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import "moment/locale/ru";
import "moment/locale/uk";

// utils
import util from "vis-util";
import * as util from "vis-util/esnext";
import * as DOMutil from "./DOMutil";

// data
import { DataSet, DataView, Queue } from "vis-data";
import { DataSet, DataView, Queue } from "vis-data/esnext";

// Timeline
import Timeline from "./timeline/Timeline";
Expand Down
2 changes: 1 addition & 1 deletion lib/shared/Activator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import keycharm from 'keycharm';
import Emitter from 'emitter-component';
import Emitter from 'component-emitter';
import Hammer from '../module/hammer';
import util from '../util';

Expand Down
2 changes: 1 addition & 1 deletion lib/timeline/Core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Emitter from 'emitter-component';
import Emitter from 'component-emitter';
import Hammer from '../module/hammer';
import * as hammerUtil from '../hammerUtil';
import util from '../util';
Expand Down
4 changes: 2 additions & 2 deletions lib/timeline/Graph2d.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import moment from '../module/moment';
import util, { typeCoerceDataSet } from '../util';
import { DataSet } from 'vis-data';
import { DataView } from 'vis-data';
import { DataSet } from 'vis-data/esnext';
import { DataView } from 'vis-data/esnext';
import Range from './Range';
import Core from './Core';
import TimeAxis from './component/TimeAxis';
Expand Down
4 changes: 2 additions & 2 deletions lib/timeline/Timeline.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import moment from '../module/moment';
import util, { typeCoerceDataSet } from '../util';
import { DataSet } from 'vis-data';
import { DataView } from 'vis-data';
import { DataSet } from 'vis-data/esnext';
import { DataView } from 'vis-data/esnext';
import Range from './Range';
import Core from './Core';
import TimeAxis from './component/TimeAxis';
Expand Down
4 changes: 2 additions & 2 deletions lib/timeline/component/ItemSet.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { default as randomUUID } from 'uuid/v4';
import Hammer from '../../module/hammer';
import util, { typeCoerceDataSet } from '../../util';
import { DataSet } from 'vis-data';
import { DataView } from 'vis-data';
import { DataSet } from 'vis-data/esnext';
import { DataView } from 'vis-data/esnext';
import TimeStep from '../TimeStep';
import Component from './Component';
import Group from './Group';
Expand Down
4 changes: 2 additions & 2 deletions lib/timeline/component/LineGraph.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { default as randomUUID } from 'uuid/v4';
import util, { typeCoerceDataSet } from '../../util';
import * as DOMutil from '../../DOMutil';
import { DataSet } from 'vis-data';
import { DataView } from 'vis-data';
import { DataSet } from 'vis-data/esnext';
import { DataView } from 'vis-data/esnext';
import Component from './Component';
import DataAxis from './DataAxis';
import GraphGroup from './GraphGroup';
Expand Down
8 changes: 4 additions & 4 deletions lib/util.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// utility functions

export * from "vis-util";
import * as util from "vis-util";
import { getType, isNumber, isString } from "vis-util";
import { DataSet, createNewDataPipeFrom } from "vis-data";
export * from "vis-util/esnext";
import * as util from "vis-util/esnext";
import { getType, isNumber, isString } from "vis-util/esnext";
import { DataSet, createNewDataPipeFrom } from "vis-data/esnext";

import moment from "moment";

Expand Down
Loading

0 comments on commit 479334a

Please sign in to comment.