Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.jekyll-metadata
.idea
.DS_Store
/node_modules
node_modules
/ruby
/bower_components
#/js/bundle.js
10 changes: 10 additions & 0 deletions react-ui/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
Empty file added react-ui/.flowconfig
Empty file.
2 changes: 2 additions & 0 deletions react-ui/.storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-storysource/register';
10 changes: 10 additions & 0 deletions react-ui/.storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { configure } from '@storybook/react';
import '@storybook/addon-console';

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

configure(loadStories, module);
21 changes: 21 additions & 0 deletions react-ui/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config

// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.

module.exports = function({ config }) {
config.module.rules.push({
test: /\.stories\.jsx?$/,
loaders: [
{
loader: require.resolve('@storybook/addon-storysource/loader'),
},
],
enforce: 'pre',
});

return config;
};
6 changes: 6 additions & 0 deletions react-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Shared UI component

This lib is shared on https://bit.dev/revinate/react-components

## Setup Bit
Check this tutorial to understand how it works: https://docs.bit.dev/tutorial/react-tutorial.html
1 change: 1 addition & 0 deletions react-ui/dist/index.js

Large diffs are not rendered by default.

Loading