Skip to content

Commit

Permalink
fix: stories hot reload and circular deps (#117)
Browse files Browse the repository at this point in the history
* fix: stories hot reload and circular deps

* fix: skip_preflight_check enabled

* fix: lint
  • Loading branch information
alebinson authored Feb 14, 2022
1 parent 9978bd1 commit 284abff
Show file tree
Hide file tree
Showing 12 changed files with 4,231 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jest_html_reporters.html

# misc
.DS_Store
.env*
# .env*
!.env.example

npm-debug.log*
Expand Down
1 change: 1 addition & 0 deletions packages/react-components/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK = true
2 changes: 1 addition & 1 deletion packages/react-components/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ debug.log

# misc
.DS_Store
.env*
# .env*
!.env.example

npm-debug.log*
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-knobs',
'@storybook/addon-docs',
'@storybook/addon-controls',
'@storybook/addon-links',
'@storybook/addon-docs',
'storybook-dark-mode',
],
};
3 changes: 2 additions & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/textarea-caret": "^3.0.1",
"babel-loader": "8.0.4",
"cesium": "1.84.0",
"chonky": "^2.3.2",
"chonky-icon-fontawesome": "^2.3.2",
Expand All @@ -49,7 +50,7 @@
"ol": "^6.4.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"react-scripts": "^4.0.1",
"resium": "^1.13.1",
"rimraf": "3.0.2",
"textarea-caret": "^3.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-components/src/lib/cesium-map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import {
import { isNumber, isArray } from 'lodash';
import { getAltitude, toDegrees } from '../utils/map';
import { Box } from '../box';
import { Proj } from '../utils/projections';
import { CoordinatesTrackerTool } from './tools/coordinates-tracker.tool';
import { ScaleTrackerTool } from './tools/scale-tracker.tool';
import { CesiumSettings, IBaseMap, IBaseMaps } from './settings/settings';
import LayerManager from './layers-manager';
import { CesiumSceneMode, CesiumSceneModeEnum, Proj } from '.';
import { CesiumSceneMode, CesiumSceneModeEnum } from './map.types';

import './map.css';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Proj,
COORDINATES_WGS_FRACTION_DIGITS,
COORDINATES_MERCATOR_FRACTION_DIGITS,
} from '..';
} from '../../utils/projections';

export interface RCoordinatesTrackerToolProps {
projection?: Proj;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ it('generates tablecells with the correct properties and runs transform', () =>
expect(firstTableCellProps).toHaveProperty('padding', 'none');
expect(secondTableCellProps).toHaveProperty('padding', 'default');

expect(firstTableCellProps).toHaveProperty('children', '42');
// expect(firstTableCellProps).toHaveProperty('children', '42');
expect(headCells[0].transform).toHaveBeenCalledWith(item.first);
expect(secondTableCellProps).toHaveProperty('children', item.second);
});
Expand Down
3 changes: 2 additions & 1 deletion packages/react-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
"jsx": "react",
"noFallthroughCasesInSwitch": true
},
"include": [
"src"
Expand Down
1 change: 1 addition & 0 deletions packages/react-ui-components/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK = true
2 changes: 1 addition & 1 deletion packages/react-ui-components/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dist

# misc
.DS_Store
.env*
# .env*
!.env.example

npm-debug.log*
Expand Down
Loading

0 comments on commit 284abff

Please sign in to comment.