Skip to content

Commit

Permalink
Merge pull request #18201 from storybookjs/future/simplified-frameworks
Browse files Browse the repository at this point in the history
Create frameworks & rename renderers
  • Loading branch information
shilman authored Jun 6, 2022
2 parents c6fd95a + f339e77 commit 9020934
Show file tree
Hide file tree
Showing 309 changed files with 773 additions and 599 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- examples
- node_modules
- addons
- app
- frameworks
- lib
- renderers
- presets
Expand Down
1 change: 0 additions & 1 deletion app/html/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/preact/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/react/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/server/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/svelte/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/vue/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/vue3/src/client/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/web-components/src/client/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion examples/cra-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
breakingChangesV7: true,
},
framework: {
name: '@storybook/react',
name: '@storybook/react-webpack4',
options: { fastRefresh: true },
},
};
1 change: 1 addition & 0 deletions examples/cra-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@storybook/builder-webpack4": "6.5.0-rc.1",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/theming": "6.5.0-rc.1",
"sb": "6.5.0-rc.1",
"webpack": "4"
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-react15/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ module.exports = {
disableTelemetry: true,
},
staticDirs: ['../public'],
framework: '@storybook/react',
framework: '@storybook/react-webpack4',
};
1 change: 1 addition & 0 deletions examples/cra-react15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@storybook/builder-webpack4": "6.5.0-rc.1",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/theming": "6.5.0-rc.1",
"babel-core": "6",
"babel-runtime": "6",
Expand Down
4 changes: 2 additions & 2 deletions examples/cra-ts-essentials/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StorybookConfig } from '@storybook/react/types';
import type { StorybookConfig } from '@storybook/react-webpack4/types';

const path = require('path');

Expand Down Expand Up @@ -34,6 +34,6 @@ const mainConfig: StorybookConfig = {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@storybook/react',
framework: '@storybook/react-webpack4',
};
module.exports = mainConfig;
1 change: 1 addition & 0 deletions examples/cra-ts-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@storybook/builder-webpack4": "6.5.0-rc.1",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/testing-library": "^0.0.9",
"sb": "6.5.0-rc.1",
"webpack": "4"
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-ts-kitchen-sink/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ module.exports = {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@storybook/react',
framework: '@storybook/react-webpack4',
};
1 change: 1 addition & 0 deletions examples/cra-ts-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@storybook/builder-webpack4": "6.5.0-rc.1",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@types/enzyme": "^3.10.8",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.9.1",
Expand Down
1 change: 1 addition & 0 deletions examples/external-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/preview-web": "6.5.0-rc.1",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/store": "6.5.0-rc.1",
"@storybook/theming": "6.5.0-rc.1",
"formik": "^2.2.9",
Expand Down
4 changes: 2 additions & 2 deletions examples/external-docs/src/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StorybookConfig } from '@storybook/react/types';
import type { StorybookConfig } from '@storybook/react-webpack4/types';

const config: StorybookConfig = {
stories: [
Expand Down Expand Up @@ -29,6 +29,6 @@ const config: StorybookConfig = {
warnOnLegacyHierarchySeparator: false,
previewMdx2: true,
},
framework: '@storybook/react',
framework: '@storybook/react-webpack4',
};
module.exports = config;
2 changes: 1 addition & 1 deletion examples/html-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ module.exports = {
// // url: 'http://localhost:8080',
// },
// },
framework: '@storybook/html',
framework: '@storybook/html-webpack4',
};
1 change: 1 addition & 0 deletions examples/html-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@storybook/client-api": "6.5.0-rc.1",
"@storybook/core-events": "6.5.0-rc.1",
"@storybook/html": "6.5.0-rc.1",
"@storybook/html-webpack4": "6.5.0-rc.1",
"@storybook/source-loader": "6.5.0-rc.1",
"autoprefixer": "^10.0.1",
"eventemitter3": "^4.0.7",
Expand Down
4 changes: 2 additions & 2 deletions examples/official-storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="node" />
import type { StorybookConfig } from '@storybook/react/types';
import type { StorybookConfig } from '@storybook/react-webpack4/types';

const config: StorybookConfig = {
stories: [
Expand Down Expand Up @@ -54,7 +54,7 @@ const config: StorybookConfig = {
},
],
framework: {
name: '@storybook/react',
name: '@storybook/react-webpack4',
options: {
fastRefresh: true,
strictMode: true,
Expand Down
1 change: 1 addition & 0 deletions examples/official-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@storybook/jest": "^0.0.5",
"@storybook/node-logger": "6.5.0-rc.1",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/router": "6.5.0-rc.1",
"@storybook/source-loader": "6.5.0-rc.1",
"@storybook/testing-library": "^0.0.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ module.exports = {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@storybook/preact',
framework: '@storybook/preact-webpack4',
};
1 change: 1 addition & 0 deletions examples/preact-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@storybook/addon-viewport": "6.5.0-rc.1",
"@storybook/addons": "6.5.0-rc.1",
"@storybook/preact": "6.5.0-rc.1",
"@storybook/preact-webpack4": "6.5.0-rc.1",
"@storybook/source-loader": "6.5.0-rc.1",
"@types/prop-types": "^15.7.3",
"@types/react": "^17",
Expand Down
4 changes: 2 additions & 2 deletions examples/react-ts/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StorybookConfig } from '@storybook/react/types';
import type { StorybookConfig } from '@storybook/react-webpack4/types';

const config: StorybookConfig = {
stories: [
Expand Down Expand Up @@ -45,6 +45,6 @@ const config: StorybookConfig = {
previewMdx2: true,
breakingChangesV7: true,
},
framework: '@storybook/react',
framework: '@storybook/react-webpack4',
};
module.exports = config;
1 change: 1 addition & 0 deletions examples/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@storybook/cli": "6.5.0-rc.1",
"@storybook/components": "6.5.0-rc.1",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"@storybook/theming": "6.5.0-rc.1",
"@testing-library/dom": "^7.31.2",
"@testing-library/react": "12.1.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/server-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module.exports = {
'@storybook/addon-links',
'@storybook/addon-controls',
],
framework: '@storybook/server',
framework: '@storybook/server-webpack4',
};
1 change: 1 addition & 0 deletions examples/server-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@storybook/addon-links": "6.5.0-rc.1",
"@storybook/node-logger": "6.5.0-rc.1",
"@storybook/server": "6.5.0-rc.1",
"@storybook/server-webpack4": "6.5.0-rc.1",
"concurrently": "^5.3.0",
"cors": "^2.8.5",
"express": "~4.17.1",
Expand Down
1 change: 1 addition & 0 deletions examples/standalone-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@storybook/addon-docs": "6.5.0-rc.1",
"@storybook/cli": "6.5.0-rc.1",
"@storybook/react": "6.5.0-rc.1",
"@storybook/react-webpack4": "6.5.0-rc.1",
"cross-env": "^7.0.3",
"parcel": "2.0.1",
"react": "16.14.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/svelte-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ module.exports = {
features: {
breakingChangesV7: true,
},
framework: '@storybook/svelte',
framework: '@storybook/svelte-webpack4',
};
1 change: 1 addition & 0 deletions examples/svelte-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@storybook/jest": "^0.0.5",
"@storybook/source-loader": "6.5.0-rc.1",
"@storybook/svelte": "6.5.0-rc.1",
"@storybook/svelte-webpack4": "6.5.0-rc.1",
"@storybook/testing-library": "^0.0.7",
"sb": "6.5.0-rc.1",
"svelte-jester": "1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-3-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module.exports = {
breakingChangesV7: true,
channelOptions: { allowFunction: false, maxDepth: 10 },
},
framework: '@storybook/vue3',
framework: '@storybook/vue3-webpack4',
};
1 change: 1 addition & 0 deletions examples/vue-3-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@storybook/jest": "^0.0.5",
"@storybook/testing-library": "^0.0.7",
"@storybook/vue3": "6.5.0-rc.1",
"@storybook/vue3-webpack4": "6.5.0-rc.1",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-service": "~4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ module.exports = {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@storybook/vue',
framework: '@storybook/vue-webpack4',
};
1 change: 1 addition & 0 deletions examples/vue-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@storybook/preset-scss": "^1.0.3",
"@storybook/source-loader": "6.5.0-rc.1",
"@storybook/vue": "6.5.0-rc.1",
"@storybook/vue-webpack4": "6.5.0-rc.1",
"@vue/cli-plugin-babel": "~4.3.1",
"@vue/cli-plugin-typescript": "~4.3.1",
"@vue/cli-service": "~4.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ module.exports = {
buildStoriesJson: true,
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
},
framework: '@storybook/vue',
framework: '@storybook/vue-webpack4',
};
1 change: 1 addition & 0 deletions examples/vue-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@storybook/source-loader": "6.5.0-rc.1",
"@storybook/testing-library": "^0.0.7",
"@storybook/vue": "6.5.0-rc.1",
"@storybook/vue-webpack4": "6.5.0-rc.1",
"@vue/babel-preset-jsx": "^1.2.4",
"babel-loader": "^8.0.0",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/web-components-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ module.exports = {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@storybook/web-components',
framework: '@storybook/web-components-webpack4',
};
5 changes: 3 additions & 2 deletions examples/web-components-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
"@storybook/postinstall": "portal:../../lib/postinstall",
"@storybook/preset-web-components-webpack": "portal:../../presets/web-components-webpack",
"@storybook/preview-web": "portal:../../lib/preview-web",
"@storybook/renderer-web-components": "portal:../../renderers/web-components",
"@storybook/router": "portal:../../lib/router",
"@storybook/source-loader": "portal:../../lib/source-loader",
"@storybook/store": "portal:../../lib/store",
"@storybook/telemetry": "portal:../../lib/telemetry",
"@storybook/testing-library": "^0.0.7",
"@storybook/theming": "portal:../../lib/theming",
"@storybook/ui": "portal:../../lib/ui",
"@storybook/web-components": "portal:../../app/web-components",
"@storybook/web-components": "portal:../../renderers/web-components",
"@storybook/web-components-webpack4": "portal:../../frameworks/web-components-webpack4",
"babel-plugin-macros": "3.1.0",
"fork-ts-checker-webpack-plugin": "6.2.13",
"sb": "portal:../../lib/cli-sb",
Expand All @@ -78,6 +78,7 @@
"@storybook/addon-storysource": "*",
"@storybook/addon-viewport": "*",
"@storybook/web-components": "*",
"@storybook/web-components-webpack4": "*",
"global": "^4.4.0",
"jest": "^27.3.1",
"sb": "*",
Expand Down
Loading

0 comments on commit 9020934

Please sign in to comment.