Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobolt committed Aug 26, 2020
2 parents 710ecb6 + 29d4ada commit 2b4ef53
Show file tree
Hide file tree
Showing 7 changed files with 2,941 additions and 1,662 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"plugins": ["flowtype", "jest"],
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-webpack-loader-syntax": 0,
"no-confusing-arrow": ["error", {"allowParens": true}],
"arrow-parens": ["error", "as-needed"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
Expand Down
5 changes: 0 additions & 5 deletions .storybook/addons.js

This file was deleted.

50 changes: 49 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
const stories = require('../stories');

module.exports = {
stories: ['../stories/index.js'],
stories: [
'README.md',
...stories.map(path => `../stories/${path}`),
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
],
// See https://github.com/storybookjs/storybook/blob/master/addons/docs/src/frameworks/common/preset.ts, to configure
webpackFinal: async config => ({
...config,
module: {
...config.module,
rules: [
...config.module.rules.map(rule => {
if (rule.exclude && rule.exclude.test('.stories.mdx')) {
return { ...rule, test: /\.md$/ };
}
if (rule.test.test('.stories.mdx')) {
return { ...rule, test: /\.mdx$/ };
}
if (rule.test.test('.stories.js')) {
return {
...rule,
test: /\.jsx?$/,
include: /stories/,
};
}
return rule;
}),
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'source-map-loader',
enforce: 'pre',
},
{
test: /\.(frag|vert)$/,
exclude: /node_modules/,
use: [
'raw-loader',
'glslify-loader',
],
},
],
},
}),
};
12 changes: 6 additions & 6 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '@storybook/addon-console';
import { addParameters, addDecorator } from '@storybook/react';
import { addReadme } from 'storybook-readme';
import { addDecorator } from '@storybook/react';
import { withConsole } from '@storybook/addon-console';

// workaround for issue: https://github.com/tuchk4/storybook-readme/issues/221
addParameters({ options: { theme: {} } });
addDecorator((storyFn, context) => withConsole()(storyFn)(context));

addDecorator(addReadme);
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
};
41 changes: 0 additions & 41 deletions .storybook/webpack.config.js

This file was deleted.

49 changes: 25 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"codecov": "cross-env BABEL_ENV=commonjs babel-node codecov.js"
},
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/node": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
Expand All @@ -39,58 +39,59 @@
"@babel/plugin-proposal-json-strings": "^7.10.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-numeric-separator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-proposal-throw-expressions": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@babel/preset-flow": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/register": "^7.10.5",
"@lerna/project": "^3.21.0",
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"@storybook/addon-actions": "^5.3.19",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@storybook/addon-actions": "^6.0.16",
"@storybook/addon-console": "^1.2.1",
"@storybook/addon-knobs": "^5.3.19",
"@storybook/addon-links": "^5.3.19",
"@storybook/addon-notes": "^5.3.19",
"@storybook/react": "^5.3.19",
"@storybook/addon-essentials": "^6.0.16",
"@storybook/addon-links": "^6.0.16",
"@storybook/cli": "^6.0.16",
"@storybook/react": "^6.0.16",
"@storybook/theming": "^6.0.16",
"ammonext": "^0.0.3",
"angle-normals": "^1.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "^26.1.0",
"babel-jest": "^26.3.0",
"babel-loader": "^8.1.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-module-resolver": "^4.0.0",
"babel-plugin-styled-components": "^1.10.7",
"babel-plugin-styled-components": "^1.11.1",
"baboon-image": "^2.1.0",
"builtin-modules": "^3.1.0",
"bunny": "^1.0.1",
"canvas-orbit-camera": "^1.0.2",
"cash-true": "^0.0.2",
"codecov": "^3.7.2",
"concurrently": "^5.2.0",
"concurrently": "^5.3.0",
"conway-hart": "^0.1.0",
"cross-env": "^7.0.2",
"cross-spawn": "^7.0.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^7.5.0",
"enzyme-adapter-react-16": "^1.15.3",
"eslint": "^7.6.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-react-app": "^5.2.1",
"eslint-import-resolver-babel-module": "5.1.0",
"eslint-import-resolver-babel-module": "^5.1.2",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.18.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "7.20.3",
"eslint-plugin-react": "7.20.6",
"fbjs": "1.0.0",
"flow-bin": "^0.129.0",
"flow-bin": "^0.132.0",
"flow-typed": "^3.2.1",
"geo-3d-transform-mat4": "^1.0.0",
"getusermedia": "^2.0.1",
Expand All @@ -100,8 +101,8 @@
"gl-vec3": "^1.1.3",
"glslify-loader": "^2.0.0",
"hsv2rgb": "^1.1.0",
"jest": "^26.1.0",
"jest-styled-components": "^7.0.2",
"jest": "^26.4.2",
"jest-styled-components": "^7.0.3",
"lerna": "^3.22.1",
"micromatch": "^4.0.2",
"mouse-change": "^1.4.0",
Expand All @@ -122,12 +123,12 @@
"recompose": "^0.30.0",
"regl": "^1.6.1",
"rimraf": "^3.0.2",
"rollup": "2.22.2",
"rollup": "2.26.5",
"rollup-plugin-glslify": "^1.2.0",
"rollup-plugin-terser": "^6.1.0",
"rollup-plugin-terser": "^7.0.0",
"scheduler": "^0.19.1",
"seedrandom": "^3.0.5",
"source-map-loader": "^1.0.1",
"source-map-loader": "^1.0.2",
"sphere-mesh": "^0.2.2",
"standardized-audio-context": "^24.1.20",
"storybook-readme": "^5.0.8",
Expand Down
Loading

0 comments on commit 2b4ef53

Please sign in to comment.