Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
fix: address PR#392 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Mar 9, 2020
1 parent 2f25555 commit d1d76c9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';
import { mount } from 'enzyme';
import ReactDataTable from '../src/ReactDataTable';
import transformProps from '../src/transformProps';
import * as testData from './test_data';
import testData from './testData';

describe('legacy-table', () => {
// Can test more prop transformation here. Not needed for now.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const basicChartProps = {
/**
* Basic data input
*/
export const basic: ChartProps = {
const basic: ChartProps = {
...basicChartProps,
queryData: {
data: {
Expand All @@ -81,7 +81,7 @@ export const basic: ChartProps = {
* - verbose map
* - metric columns
*/
export const advanced: ChartProps = {
const advanced: ChartProps = {
...basic,
datasource: {
columnFormats: {},
Expand All @@ -101,3 +101,8 @@ export const advanced: ChartProps = {
},
},
};

export default {
basic,
advanced,
};
14 changes: 9 additions & 5 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const { spawnSync, spawn } = require('child_process');

const glob = process.argv[2];
const extraArgs = process.argv.slice(2);

process.env.PATH = `./node_modules/.bin:${process.env.PATH}`;

Expand All @@ -18,11 +19,14 @@ const run = (cmd) => {
};

if (glob) {
run(`nimbus eslint packages/${glob}/{src,test}`);
run(`nimbus prettier --check --workspaces=\"@superset-ui/${glob}"`);
run(`nimbus babel --clean --workspaces=\"@superset-ui/${glob}"`);
run(`nimbus babel --clean --workspaces=\"@superset-ui/${glob}" --esm`);
run(`nimbus typescript --build --workspaces=\"@superset-ui/${glob}"`);
run(`nimbus prettier packages/${glob}/{src,test}/**/*.{js,jsx,ts,tsx,css}"`);
// lint is slow, so not turning it on by default
if (extraArgs.includes('--lint')) {
run(`nimbus eslint packages/${glob}/{src,test}`);
}
run(`nimbus babel --clean --workspaces="@superset-ui/${glob}"`);
run(`nimbus babel --clean --workspaces="@superset-ui/${glob}" --esm`);
run(`nimbus typescript --build --workspaces="@superset-ui/${glob}"`);
require('./buildAssets');
} else {
run('yarn build');
Expand Down

0 comments on commit d1d76c9

Please sign in to comment.