fix: update storybook and use main.js
This commit is contained in:
parent
bc6958b984
commit
e61e0b938f
38 changed files with 65 additions and 58 deletions
|
|
@ -1,3 +0,0 @@
|
|||
module.exports = {
|
||||
stories: './packages/**/stories/*.stories.{js,mdx}',
|
||||
};
|
||||
11
.storybook/main.js
Normal file
11
.storybook/main.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = {
|
||||
stories: [
|
||||
'../packages/*/stories/*.stories.{js,mdx}',
|
||||
'../packages/helpers/*/stories/*.stories.{js,mdx}',
|
||||
],
|
||||
esDevServer: {
|
||||
nodeResolve: true,
|
||||
watch: true,
|
||||
open: true,
|
||||
},
|
||||
};
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
module.exports = {
|
||||
nodeResolve: true,
|
||||
watch: true,
|
||||
open: true,
|
||||
stories: './packages/**/stories/*.stories.{js,mdx}',
|
||||
};
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
"devDependencies": {
|
||||
"@commitlint/cli": "^7.0.0",
|
||||
"@commitlint/config-conventional": "^7.0.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/eslint-config": "^1.0.0",
|
||||
"@open-wc/prettier-config": "^0.1.0",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
"@lion/core": "0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"@lion/core": "0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"@polymer/iron-test-helpers": "^3.0.1",
|
||||
"sinon": "^7.2.2"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/button": "0.5.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"@lion/checkbox": "0.3.0",
|
||||
"@lion/localize": "0.8.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
"@lion/input": "0.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"devDependencies": {
|
||||
"@lion/input": "0.5.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"lit-html": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
"@lion/overlays": "0.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/localize": "0.8.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/localize": "0.8.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,10 @@
|
|||
"@lion/radio-group": "0.5.0",
|
||||
"@lion/textarea": "0.5.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lion/helpers": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"devDependencies": {
|
||||
"@lion/field": "0.8.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"@lion/core": "0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"@lion/validate": "0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"@lion/validate": "0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/button": "0.5.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"@lion/validate": "0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
"@lion/validate": "0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
"@lion/localize": "0.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"devDependencies": {
|
||||
"@lion/localize": "0.8.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,9 +38,11 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@bundled-es-modules/fetch-mock": "^6.5.2",
|
||||
"@lion/helpers": "0.2.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lion/helpers": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
"@lion/field": "0.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"popper.js": "^1.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"@open-wc/testing-helpers": "^1.0.0",
|
||||
"sinon": "^7.2.2"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"devDependencies": {
|
||||
"@lion/radio": "0.3.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
"@lion/input": "0.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/form": "0.4.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"@lion/core": "0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
"devDependencies": {
|
||||
"@lion/localize": "0.8.0",
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"@lion/core": "0.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@lion/validate": "0.6.0",
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
"@lion/overlays": "0.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"@lion/localize": "0.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@open-wc/demoing-storybook": "^1.6.1",
|
||||
"@open-wc/demoing-storybook": "^1.8.3",
|
||||
"@open-wc/testing": "^2.3.4",
|
||||
"sinon": "^7.2.2"
|
||||
}
|
||||
|
|
|
|||
28
yarn.lock
28
yarn.lock
|
|
@ -2280,10 +2280,10 @@
|
|||
dependencies:
|
||||
"@types/node" ">= 8"
|
||||
|
||||
"@open-wc/building-rollup@^0.19.0":
|
||||
version "0.19.0"
|
||||
resolved "https://registry.yarnpkg.com/@open-wc/building-rollup/-/building-rollup-0.19.0.tgz#3cc6680401af29737d47e069ed3386420f0b081a"
|
||||
integrity sha512-xx8e67pKDaJc+wEZJlk9puKuSjCMj7rqErr2Cjf2ZYJ1xx9j+AuOYP3Q3tODz0vhKGwYHR34pFEL3U3zcje9ug==
|
||||
"@open-wc/building-rollup@^0.19.1":
|
||||
version "0.19.1"
|
||||
resolved "https://registry.yarnpkg.com/@open-wc/building-rollup/-/building-rollup-0.19.1.tgz#89532b02cd72725ee5c61cc07c7d4938e1ac37be"
|
||||
integrity sha512-+08pTPmnd3Imo0p9CjSHvRf88WdCSpxBKIu3NUkac3vqx3lfjaGWEKeNCzW5crX0FH97k7ZpREUxnwj9XeexVg==
|
||||
dependencies:
|
||||
"@babel/core" "^7.7.2"
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.7.4"
|
||||
|
|
@ -2338,21 +2338,21 @@
|
|||
"@open-wc/semantic-dom-diff" "^0.13.16"
|
||||
"@types/chai" "^4.1.7"
|
||||
|
||||
"@open-wc/demoing-storybook@^1.6.1":
|
||||
version "1.6.1"
|
||||
resolved "https://registry.yarnpkg.com/@open-wc/demoing-storybook/-/demoing-storybook-1.6.1.tgz#7d380b9fc6ce2e7410fa2d08f037976277991512"
|
||||
integrity sha512-cQYmV4Qj9bwi6B+WnN5YCLUgjxhgylA/vpndRPloU28V40L8b37aSdOU6eIMXujB35LqYQ3M8YV5CEHMv+/R8w==
|
||||
"@open-wc/demoing-storybook@^1.8.3":
|
||||
version "1.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@open-wc/demoing-storybook/-/demoing-storybook-1.8.3.tgz#0c272a8082124fefb8e8c2e2f6ac8f3bd500e22d"
|
||||
integrity sha512-9hNP89Wl0OJkXytIaNtKdrWrF+SlX2xg69UteGQU4KzqpZmQs3SiAkzl97pSArmFuV/iBWyUUBu4c6/cLMoOlQ==
|
||||
dependencies:
|
||||
"@babel/core" "^7.7.2"
|
||||
"@babel/plugin-transform-react-jsx" "^7.3.0"
|
||||
"@mdx-js/mdx" "^1.5.1"
|
||||
"@open-wc/building-rollup" "^0.19.0"
|
||||
"@open-wc/building-rollup" "^0.19.1"
|
||||
"@open-wc/storybook-prebuilt" "^0.4.0"
|
||||
"@storybook/addon-docs" "5.3.1"
|
||||
command-line-args "^5.0.2"
|
||||
command-line-usage "^6.1.0"
|
||||
deepmerge "^3.2.0"
|
||||
es-dev-server "^1.36.1"
|
||||
es-dev-server "^1.36.2"
|
||||
es-module-lexer "^0.3.13"
|
||||
fs-extra "^8.1.0"
|
||||
glob "^7.1.3"
|
||||
|
|
@ -5982,10 +5982,10 @@ es-dev-server@^1.31.1:
|
|||
useragent "^2.3.0"
|
||||
whatwg-url "^7.0.0"
|
||||
|
||||
es-dev-server@^1.36.1:
|
||||
version "1.36.1"
|
||||
resolved "https://registry.yarnpkg.com/es-dev-server/-/es-dev-server-1.36.1.tgz#98bfbadcbf24ee560bb8b2cfc4995e206e01c533"
|
||||
integrity sha512-v4GdhTheVDz3MS5Zp0PBncuHIr8lccWbwSIdrr+Ds7cH34lNv/XQN/zdoSdBsb7OiCTNRYIHqF+pPdcy/jAqJA==
|
||||
es-dev-server@^1.36.2:
|
||||
version "1.36.2"
|
||||
resolved "https://registry.yarnpkg.com/es-dev-server/-/es-dev-server-1.36.2.tgz#b0cbfbad89f765f4a3bfa0793397f3c362466781"
|
||||
integrity sha512-pWMJcsdUcXXCJPRuqnjI2JNLVSDRfjU4qkBd7EsNG8yn1UnmvJF8wTnHgWzkwyHB3wrg4/b7hQJCAXcYaW2XUw==
|
||||
dependencies:
|
||||
"@babel/core" "^7.7.2"
|
||||
"@babel/plugin-proposal-dynamic-import" "^7.7.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue