Skip to content

Commit f7f6fce

Browse files
authored
Merge pull request #732 from lumapps/chore/isolate-storybook
chore(storybook): update to v6 and isolate storybook dependencies
2 parents f92b90b + d02175c commit f7f6fce

File tree

84 files changed

+13859
-5082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+13859
-5082
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
**/public/*
44
yo-generators/**
55
**/.yarn/**
6+
storybook
67
**/style-dictionary
78
**/*.config.js
89
packages/site-demo/plugins

configs/babel.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
21
module.exports = {
32
cacheDirectory: true,
43
plugins: [
54
['angularjs-annotate', { explicitOnly: true }],
65
'@babel/plugin-proposal-class-properties',
6+
['@babel/plugin-proposal-private-property-in-object', { 'loose': false }],
7+
['@babel/plugin-proposal-private-methods', { 'loose': false }],
78
'@babel/plugin-proposal-export-default-from',
89
'@babel/plugin-proposal-object-rest-spread',
910
'@babel/plugin-proposal-optional-chaining',

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
"scripts": {
6969
"build": "lerna run --stream build",
7070
"build:site": "yarn workspace lumx-site-demo clean && yarn workspace lumx-site-demo build",
71-
"build:storybook": "yarn workspace @lumx/react build:storybook",
7271
"build:react": "yarn workspace @lumx/react build",
7372
"build:core": "yarn workspace @lumx/core build",
7473
"build:angularjs": "yarn workspace @lumx/angularjs build",
74+
"build:storybook": "yarn workspace @lumx/react build:storybook",
7575
"chromatic": "npx chromatic -b build:storybook",
7676
"clean": "rm -rf packages/*/dist && lerna clean --yes && lerna run --stream clean",
7777
"clean:git-hooks": "yarn husky uninstall",
@@ -86,8 +86,9 @@
8686
"scaffold": "yo ./packages/yo-generators --with-tests --with-demo",
8787
"setup:git-hooks": "yarn husky uninstall && yarn husky install || exit 0",
8888
"start": "yarn workspace lumx-site-demo start",
89-
"test": "lerna run --stream test",
89+
"test": "yarn workspace @lumx/react test",
9090
"storybook:react": "yarn workspace @lumx/react storybook",
91+
"storybook": "yarn storybook:react",
9192
"check:not-master": "git symbolic-ref --short -q HEAD | egrep -q '^master$' && echo 'ERROR: You can not release from the master branch.' && exit 1 || true",
9293
"version": "yarn check:not-master && yarn && git add yarn.lock",
9394
"generate:design-tokens": "yarn workspace @lumx/core generate:design-tokens"

packages/lumx-angularjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
4949
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
5050
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
51+
"@babel/plugin-proposal-private-property-in-object": "^7.16.0",
5152
"@babel/preset-env": "^7.8.3",
5253
"@babel/preset-typescript": "^7.12.7",
5354
"babel-plugin-angularjs-annotate": "^0.10.0",

packages/lumx-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
5151
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
5252
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
53+
"@babel/plugin-proposal-private-property-in-object": "^7.16.0",
5354
"@babel/preset-env": "^7.8.3",
5455
"@babel/preset-typescript": "^7.12.7",
5556
"autoprefixer": "^9.7.4",

packages/lumx-react/.storybook/main.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/lumx-react/.storybook/preview.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/lumx-react/.storybook/webpack.config.js

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
action: (name) => (event) => console.log(name, event),
3+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
text: (name, defaultValue) => defaultValue,
3+
number: (name, defaultValue) => defaultValue,
4+
boolean: (name, defaultValue) => defaultValue,
5+
select: (name, options, defaultValue) => defaultValue,
6+
};

0 commit comments

Comments
 (0)