chore: upgrade open-wc/demoing-storybook rollup versions

This commit is contained in:
qa46hx 2020-04-29 16:05:45 +02:00 committed by Joren Broekema
parent e6a3ade004
commit ec057e3fef
6 changed files with 565 additions and 289 deletions

1
.gitignore vendored
View file

@ -23,6 +23,7 @@ yarn-error.log
## temp folders ## temp folders
/.tmp/ /.tmp/
/coverage/ /coverage/
/storybook-static/
## temp files ## temp files
local.log local.log

View file

@ -7,17 +7,25 @@ module.exports = {
'../packages/helpers/*/stories/*.stories.{js,mdx}', '../packages/helpers/*/stories/*.stories.{js,mdx}',
'../demo/stories/*.stories.{js,mdx}', '../demo/stories/*.stories.{js,mdx}',
], ],
addons: [
'storybook-prebuilt/addon-docs/register.js',
'storybook-prebuilt/addon-actions/register.js',
'storybook-prebuilt/addon-knobs/register.js',
'storybook-prebuilt/addon-a11y/register.js',
'storybook-prebuilt/addon-backgrounds/register.js',
'storybook-prebuilt/addon-links/register.js',
'storybook-prebuilt/addon-viewport/register.js',
],
esDevServer: { esDevServer: {
nodeResolve: true, nodeResolve: true,
watch: true, watch: true,
open: true, open: true,
}, },
rollup: configs => { rollup: config => {
// temporarily hard copy all needed global files as all tested rollup plugins flatten the // temporarily hard copy all needed global files as all tested rollup plugins flatten the
// directory structure // directory structure
// `rollup-plugin-copy` might work if issue 37 is resolved // `rollup-plugin-copy` might work if issue 37 is resolved
// https://github.com/vladshcherbin/rollup-plugin-copy/issues/37 // https://github.com/vladshcherbin/rollup-plugin-copy/issues/37
for (const config of configs) {
config.plugins.push({ config.plugins.push({
generateBundle() { generateBundle() {
this.emitFile({ this.emitFile({
@ -43,6 +51,5 @@ module.exports = {
}); });
}, },
}); });
}
}, },
}; };

View file

@ -1,12 +1,11 @@
import createDefaultConfig from '@open-wc/building-rollup/modern-config'; import { createBasicConfig } from '@open-wc/building-rollup';
export default ['core', 'all'].map(name => { export default ['core', 'all'].map(name => {
const config = createDefaultConfig({ const config = createBasicConfig();
input: `bundlesize/${name}.js`,
});
return { return {
...config, ...config,
input: `bundlesize/${name}.js`,
treeshake: false, treeshake: false,
output: { output: {
...config.output, ...config.output,

View file

@ -6,9 +6,10 @@
"packages/*" "packages/*"
], ],
"devDependencies": { "devDependencies": {
"@open-wc/building-rollup": "^1.2.1",
"@commitlint/cli": "^7.0.0", "@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.0", "@commitlint/config-conventional": "^7.0.0",
"@open-wc/demoing-storybook": "^1.10.4", "@open-wc/demoing-storybook": "^2.0.0",
"@open-wc/eslint-config": "^1.0.0", "@open-wc/eslint-config": "^1.0.0",
"@open-wc/testing": "^2.5.0", "@open-wc/testing": "^2.5.0",
"@open-wc/testing-helpers": "^1.0.0", "@open-wc/testing-helpers": "^1.0.0",
@ -32,7 +33,7 @@
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^2.0.5", "prettier": "^2.0.5",
"rimraf": "^2.6.3", "rimraf": "^2.6.3",
"rollup": "^1.27.8", "rollup": "^2.0.0",
"sinon": "^7.2.2", "sinon": "^7.2.2",
"webpack-merge": "^4.1.5", "webpack-merge": "^4.1.5",
"whatwg-fetch": "^3.0.0" "whatwg-fetch": "^3.0.0"
@ -41,6 +42,7 @@
"start": "npm run storybook", "start": "npm run storybook",
"storybook": "start-storybook -p 9001", "storybook": "start-storybook -p 9001",
"storybook:build": "build-storybook", "storybook:build": "build-storybook",
"storybook:build:start": "es-dev-server --root-dir storybook-static --open",
"test": "run-p test:browser test:node", "test": "run-p test:browser test:node",
"test:browser": "karma start --coverage", "test:browser": "karma start --coverage",
"test:node": "lerna run test:node", "test:node": "lerna run test:node",
@ -80,11 +82,11 @@
}, },
"bundlesize": [ "bundlesize": [
{ {
"path": "./bundlesize/dist/core/core-*.js", "path": "./bundlesize/dist/core/*.js",
"maxSize": "11 kB" "maxSize": "11 kB"
}, },
{ {
"path": "./bundlesize/dist/all/all-*.js", "path": "./bundlesize/dist/all/*.js",
"maxSize": "45 kB" "maxSize": "45 kB"
} }
], ],

View file

@ -1 +1 @@
// empty file // empty file for node.resolve

771
yarn.lock

File diff suppressed because it is too large Load diff