Commit e67c05cf by Ari Rizzitano

let's give lerna a shot

parent ccb5986a
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { configure, addDecorator } from '@storybook/react'; import { configure, addDecorator } from '@storybook/react';
import { setOptions } from '@storybook/addon-options'; import { setOptions } from '@storybook/addon-options';
import CssJail from '../src/CssJail'; import CssJail from '../packages/CssJail';
setTimeout(() => setOptions({ setTimeout(() => setOptions({
name: '💎 PARAGON', name: '💎 PARAGON',
...@@ -10,7 +10,7 @@ setTimeout(() => setOptions({ ...@@ -10,7 +10,7 @@ setTimeout(() => setOptions({
showDownPanel: true, showDownPanel: true,
}), 1000); }), 1000);
const req = require.context('../src', true, /\.stories\.jsx$/); const req = require.context('../packages', true, /\.stories\.jsx$/);
addDecorator(story => ( addDecorator(story => (
<CssJail> <CssJail>
......
...@@ -23,8 +23,8 @@ module.exports = { ...@@ -23,8 +23,8 @@ module.exports = {
options: { options: {
data: '@import "paragon-reset";', data: '@import "paragon-reset";',
includePaths: [ includePaths: [
path.join(__dirname, '../src/utils'), path.join(__dirname, '../packages/utils'),
path.join(__dirname, '../node_modules'), path.join(__dirname, '../node_modules'),
], ],
sourceMap: true, sourceMap: true,
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"lerna": "2.1.0",
"packages": [
"packages/Button"
],
"version": "independent"
}
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"name": "paragon", "name": "paragon",
"version": "0.0.1", "version": "0.0.1",
"description": "Accessible, responsive UI component library based on Bootstrap.", "description": "Accessible, responsive UI component library based on Bootstrap.",
"main": "src/index.js",
"author": "arizzitano", "author": "arizzitano",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
...@@ -51,6 +50,7 @@ ...@@ -51,6 +50,7 @@
"husky": "^0.14.1", "husky": "^0.14.1",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^21.0.1", "jest": "^21.0.1",
"lerna": "^2.1.0",
"node-sass": "^4.5.3", "node-sass": "^4.5.3",
"postcss-scss": "^1.0.1", "postcss-scss": "^1.0.1",
"react-router-dom": "^4.1.1", "react-router-dom": "^4.1.1",
......
{
"name": "@edx/button",
"version": "0.0.0",
"description": "Accessible button component from edX's Paragon library",
"license": "MIT",
"dependencies": {
"bootstrap": "4.0.0-alpha.6",
"classnames": "^2.2.5",
"prop-types": "^15.5.8",
"react": "^15.5.4"
}
}
{
"name": "@edx/dropdown",
"version": "0.0.0",
"description": "Accessible dropdown component from edX's Paragon library",
"license": "MIT",
"dependencies": {
"bootstrap": "4.0.0-alpha.6",
"classnames": "^2.2.5",
"prop-types": "^15.5.8",
"react": "^15.5.4"
}
}
import Button from './Button';
import CheckBox from './CheckBox';
import Dropdown from './Dropdown';
import InputSelect from './InputSelect';
import InputText from './InputText';
import Tabs from './Tabs';
export {
Button,
CheckBox,
Dropdown,
InputSelect,
InputText,
Tabs,
};
...@@ -52,7 +52,7 @@ const base = { ...@@ -52,7 +52,7 @@ const base = {
options: { options: {
data: '@import "paragon-reset";', data: '@import "paragon-reset";',
includePaths: [ includePaths: [
path.join(__dirname, './src/utils'), path.join(__dirname, './packages/utils'),
path.join(__dirname, './node_modules'), path.join(__dirname, './node_modules'),
], ],
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment