Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #651 from openlattice/develop
Browse files Browse the repository at this point in the history
Release 2021-02-09
  • Loading branch information
solomontang authored Feb 9, 2021
2 parents c8d19ec + 9eea6d4 commit 66039cc
Show file tree
Hide file tree
Showing 57 changed files with 17,485 additions and 13,513 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
"react/no-did-update-set-state": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/react-in-jsx-scope": "off",
"react/require-default-props": [
"error",
{
Expand Down
3 changes: 3 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
!<PROJECT_ROOT>/node_modules/lattice-ui-kit
!<PROJECT_ROOT>/node_modules/redux-reqseq
.*/node_modules/immutable/.*

[options]
react.runtime=automatic
4 changes: 3 additions & 1 deletion config/babel/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-flow',
'@babel/preset-react',
['@babel/preset-react', {
runtime: 'automatic'
}],
],
};
3 changes: 2 additions & 1 deletion config/jest/test.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '@babel/polyfill';
import 'core-js/stable';
import 'regenerator-runtime/runtime';
3 changes: 0 additions & 3 deletions config/storybook/addons.js

This file was deleted.

8 changes: 8 additions & 0 deletions config/storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
stories: ['../../src/**/*.stories.js'],
addons: [
'@storybook/addon-actions',
'@storybook/addon-docs',
'@storybook/addon-storysource',
]
};
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { addons } from '@storybook/addons';
import { create } from '@storybook/theming';
import { Colors } from 'lattice-ui-kit';

const { NEUTRAL } = Colors;

export default create({
const theme = create({
base: 'light',

// Typography
Expand All @@ -13,3 +14,7 @@ export default create({
// Text color
textColor: `${NEUTRAL.N900}`
});

addons.setConfig({
theme
});
19 changes: 2 additions & 17 deletions config/storybook/config.js → config/storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';

import styled from 'styled-components';
import { addDecorator, addParameters, configure } from '@storybook/react';
import { addDecorator } from '@storybook/react';
import {
Colors,
LatticeLuxonUtils,
Expand All @@ -11,7 +9,7 @@ import {
lightTheme,
} from 'lattice-ui-kit';

import storybookTheme from './storybookTheme';
import storybookTheme from './manager';

const { NEUTRAL } = Colors;

Expand Down Expand Up @@ -53,16 +51,3 @@ addDecorator((StoryFn) => (
</StoryInnerWrapper>
</StoryOuterWrapper>
));

addParameters({
options: {
theme: storybookTheme
},
});
// automatically import all files ending in *.stories.js
const req = require.context('../../src/', true, /\.stories\.js$/);
function loadStories() {
req.keys().forEach((filename) => req(filename));
}

configure(loadStories, module);
2 changes: 1 addition & 1 deletion config/storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Webpack = require('webpack');
module.exports = function({ config, mode }) {
config.module.rules.push({
test: /\.stories.jsx?$/,
loaders: [require.resolve('@storybook/addon-storysource/loader')],
loaders: [require.resolve('@storybook/source-loader')],
enforce: 'pre',
});

Expand Down
2 changes: 1 addition & 1 deletion config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module.exports = (env = {}) => {
extensions: ['.js'],
modules: [
LIB_PATHS.ABS.SOURCE,
LIB_PATHS.ABS.NODE,
'node_modules',
]
},
target: 'web',
Expand Down
Loading

0 comments on commit 66039cc

Please sign in to comment.