Skip to content

Commit

Permalink
babel/register instead of ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
plesiecki committed Mar 9, 2022
1 parent e3adf0e commit 795774b
Show file tree
Hide file tree
Showing 332 changed files with 1,136 additions and 661 deletions.
3 changes: 2 additions & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const prodConfig = {
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
]
],
stats: 'minimal'
};

const es5Config = {
Expand Down
1,063 changes: 772 additions & 291 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"test:common": "mocha --exit --require ./test/setup/mocha.js src/common/**/*.mocha.{ts,tsx}",
"test:client": "mocha --exit --require ./test/setup/mocha.js src/client/**/*.mocha.{ts,tsx}",
"test:server": "mocha --exit --require ./test/setup/mocha.js src/server/**/*.mocha.ts",
"test:client-types": "npm run tsc -- --noEmit -p src/client/tsconfig.json",
"test:size": "size-limit",
"watch:test:common": "npm run test:common -- --watch --watch-extensions ts,tsx",
"watch:test:client": "npm run test:client -- --watch --watch-extensions ts,tsx",
Expand All @@ -51,7 +52,7 @@
"start:examples": "npm run start -- --examples",
"start:dev:examples": "npm run start:dev -- --examples",
"build:client": "webpack --config config/webpack.prod.js",
"build:server": "npm run tsc -- -p src/server/tsconfig.json ",
"build:server": "npm run tsc -- -p src/server/tsconfig.json",
"build": "npm-run-all -s clean build:server build:client",
"clean": "rimraf build/*",
"tsc": "tsc",
Expand All @@ -76,7 +77,7 @@
"core-js": "2.6.0",
"d3": "4.13.0",
"d3-dsv": "2.0.0",
"express": "4.16.2",
"express": "4.17.3",
"file-saver": "1.3.3",
"fs-promise": "2.0.3",
"helmet": "3.21.2",
Expand All @@ -88,7 +89,7 @@
"moment-timezone": "0.5.27",
"node-spawn-server": "1.0.1",
"nopt": "4.0.1",
"numbro": "2.1.0",
"numbro": "2.3.6",
"plywood": "0.21.2",
"plywood-base-api": "0.2.8",
"plywood-druid-requester": "2.6.1",
Expand All @@ -107,6 +108,7 @@
"@babel/preset-env": "7.16.11",
"@babel/preset-react": "7.16.7",
"@babel/preset-typescript": "7.16.7",
"@babel/register": "7.17.0",
"@babel/runtime": "7.17.2",
"@size-limit/preset-small-lib": "7.0.8",
"@statoscope/webpack-plugin": "5.20.1",
Expand All @@ -117,7 +119,7 @@
"@types/d3": "4.13.12",
"@types/d3-dsv": "2.0.0",
"@types/enzyme": "3.1.11",
"@types/express": "4.11.0",
"@types/express": "4.11.1",
"@types/express-session": "1.15.6",
"@types/file-saver": "1.3.0",
"@types/fs-promise": "1.0.3",
Expand All @@ -143,7 +145,7 @@
"@types/rewire": "2.5.28",
"@types/sinon": "4.1.4",
"@types/superagent": "3.5.6",
"@types/supertest": "2.0.4",
"@types/supertest": "2.0.11",
"@types/webpack": "4.41.0",
"@types/webpack-env": "1.14.1",
"babel-loader": "8.2.3",
Expand All @@ -165,7 +167,7 @@
"memoize-one": "5.1.1",
"mime": "2.3.1",
"mini-css-extract-plugin": "1.6.2",
"mocha": "4.1.0",
"mocha": "9.2.1",
"nock": "11.0.0",
"node-sass": "4.14.1",
"npm-run-all": "4.1.5",
Expand All @@ -187,8 +189,6 @@
"svg-inline-loader": "0.8.0",
"svg-loader": "0.0.2",
"terser-webpack-plugin": "2.3.1",
"ts-loader": "6.2.1",
"ts-node": "4.1.0",
"tslint": "5.10.0",
"tslint-eslint-rules": "5.3.1",
"tslint-no-focused-test": "0.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import { renderIntoDocument } from "../../utils/test-utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { NamedArray } from "immutable-class";
import * as React from "react";
import React from "react";
import { ClientAppSettings } from "../../../common/models/app-settings/app-settings";
import { ClientDataCube } from "../../../common/models/data-cube/data-cube";
import { Essence } from "../../../common/models/essence/essence";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/add-tile/add-tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { Stage } from "../../../common/models/stage/stage";
import { Unary } from "../../../common/utils/functional/functional";
import { BubbleMenu } from "../bubble-menu/bubble-menu";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { Duration, Timezone } from "chronoshift";
import * as React from "react";
import React from "react";
import { ClientDataCube, getMaxTime } from "../../../common/models/data-cube/data-cube";
import { Stage } from "../../../common/models/stage/stage";
import { Timekeeper } from "../../../common/models/timekeeper/timekeeper";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/body-portal/body-portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import { classNames } from "../../utils/dom/dom";
import "./body-portal.scss";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/body-portal/normalize-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { omitFalsyValues } from "../../../common/utils/object/object";

function normalizeDimension(dimension: number | string): string | undefined {
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/bubble-menu/bubble-menu.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { expect } from "chai";
import { shallow } from "enzyme";
import * as React from "react";
import React from "react";
import { StageFixtures } from "../../../common/models/stage/stage.fixtures";
import { BodyPortal } from "../body-portal/body-portal";
import { Shpitz } from "../shpitz/shpitz";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/bubble-menu/bubble-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { Stage } from "../../../common/models/stage/stage";
import { Fn } from "../../../common/utils/general/general";
import { clamp, classNames, escapeKey, isInside, uniqueId } from "../../utils/dom/dom";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/bubble-title/bubble-title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { clamp } from "../../utils/dom/dom";

const PER_LETTER_PIXELS = 8;
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/bucket-marks/bucket-marks.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import { StageFixtures } from "../../../common/models/stage/stage.fixtures";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/bucket-marks/bucket-marks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import * as d3 from "d3";
import { PlywoodValue } from "plywood";
import * as React from "react";
import React from "react";
import { Stage } from "../../../common/models/stage/stage";
import { roundToHalfPx } from "../../utils/dom/dom";
import "./bucket-marks.scss";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/button-group/button-group.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/button-group/button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { Fn } from "../../../common/utils/general/general";
import { classNames } from "../../utils/dom/dom";
import "./button-group.scss";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/button/button.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { classNames } from "../../utils/dom/dom";
import { SvgIcon } from "../svg-icon/svg-icon";
import "./button.scss";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/checkbox/checkbox.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import * as sinon from "sinon";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { classNames } from "../../utils/dom/dom";
import { SvgIcon } from "../svg-icon/svg-icon";
import "./checkbox.scss";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { expect } from "chai";
import { shallow } from "enzyme";
import * as React from "react";
import React from "react";
import { ClearableInput } from "./clearable-input";

describe("ClearableInput", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/clearable-input/clearable-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { SvgIcon } from "../svg-icon/svg-icon";
import "./clearable-input.scss";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/color-legend/color-legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import * as d3 from "d3";
import * as React from "react";
import React from "react";
import { Unary } from "../../../common/utils/functional/functional";
import "./color-legend.scss";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/color-swabs/color-entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { Datum } from "plywood";
import * as React from "react";
import React from "react";
import { ConcreteSeries, SeriesDerivation } from "../../../common/models/series/concrete-series";
import { Delta } from "../delta/delta";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/color-swabs/color-swabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { ColorEntry } from "./color-entry";
import "./color-swabs.scss";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import { renderIntoDocument } from "../../utils/test-utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { Timezone } from "chronoshift";
import * as React from "react";
import React from "react";
import { combineDateAndTimeIntoMoment, formatISODate, formatISOTime, normalizeISODate, normalizeISOTime, validateISODate, validateISOTime } from "../../../common/utils/time/time";
import "./date-range-input.scss";

Expand Down
2 changes: 1 addition & 1 deletion src/client/components/date-range-picker/calendar.mocha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/
import { expect, use } from "chai";
import * as chaiDatetime from "chai-datetime";
import chaiDatetime from "chai-datetime";
import { Timezone } from "chronoshift";
import { tz as getMomentWithTimezone } from "moment-timezone";
import { LOCALES } from "../../../common/models/locale/locale";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { expect } from "chai";
import { Timezone } from "chronoshift";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import { LOCALES } from "../../../common/models/locale/locale";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { day, month, Timezone } from "chronoshift";
import { TimeRange } from "plywood";
import * as React from "react";
import React from "react";
import { Locale } from "../../../common/models/locale/locale";
import { cyclicShift } from "../../../common/utils/functional/functional";
import { datesEqual, formatYearMonth, getDayInMonth } from "../../../common/utils/time/time";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/debug-menu/debug-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { ClientDataCube } from "../../../common/models/data-cube/data-cube";
import { Stage } from "../../../common/models/stage/stage";
import { Fn } from "../../../common/utils/general/general";
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/delta/delta.mocha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { expect } from "chai";
import { shallow } from "enzyme";
import * as React from "react";
import React from "react";
import { Delta, formatDelta } from "./delta";

const formatter = (i: number) => i.toFixed();
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/delta/delta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { format } from "d3";
import * as React from "react";
import React from "react";
import { Unary } from "../../../common/utils/functional/functional";
import { isNil } from "../../../common/utils/general/general";
import "./delta.scss";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { expect } from "chai";
import { mount, shallow } from "enzyme";
import * as React from "react";
import React from "react";
import * as sinon from "sinon";
import { SinonSpy } from "sinon";
import { Dimension } from "../../../common/models/dimension/dimension";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { Clicker } from "../../../common/models/clicker/clicker";
import { Dimension } from "../../../common/models/dimension/dimension";
import { Essence, VisStrategy } from "../../../common/models/essence/essence";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as React from "react";
import React from "react";
import { DragEvent, MouseEvent } from "react";
import { DimensionKind } from "../../../common/models/dimension/dimension";
import { classNames } from "../../utils/dom/dom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { expect } from "chai";
import * as React from "react";
import React from "react";
import * as ReactDOM from "react-dom";
import * as TestUtils from "react-dom/test-utils";
import { EssenceFixtures } from "../../../common/models/essence/essence.fixtures";
Expand Down
Loading

0 comments on commit 795774b

Please sign in to comment.