Skip to content

Commit

Permalink
Merge pull request #18018 from storybookjs/future/add-frameworks
Browse files Browse the repository at this point in the history
Core: Split webpack presets out of frameworks
  • Loading branch information
shilman authored Jun 6, 2022
2 parents 232d0c0 + 484c914 commit b96cec6
Show file tree
Hide file tree
Showing 166 changed files with 1,405 additions and 655 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
- app
- lib
- renderers
- presets
chromatic:
executor: sb_node_14_browsers
parallelism: 4
Expand Down
3 changes: 1 addition & 2 deletions addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@testing-library/react": "^11.2.2",
"@types/webpack-env": "^1.16.0"
"@testing-library/react": "^11.2.2"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
Expand Down
11 changes: 3 additions & 8 deletions addons/a11y/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"jest"
],
"types": ["jest"],
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -24,4 +19,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 1 addition & 2 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
"uuid-browser": "^3.1.0"
},
"devDependencies": {
"@types/lodash": "^4.14.167",
"@types/webpack-env": "^1.16.0"
"@types/lodash": "^4.14.167"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
Expand Down
11 changes: 3 additions & 8 deletions addons/actions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"jest"
]
"types": ["jest"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -18,4 +13,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 0 additions & 3 deletions addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
"ts-dedent": "^2.0.0",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
11 changes: 3 additions & 8 deletions addons/backgrounds/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env"
]
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -17,4 +12,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
12 changes: 3 additions & 9 deletions addons/controls/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"jest",
"node"
]
"types": ["jest", "node"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -19,4 +13,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
1 change: 0 additions & 1 deletion addons/docs/src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ declare module '@egoist/vue-to-react';
declare module 'remark-slug';
declare module 'remark-external-links';
declare module 'babel-plugin-react-docgen';
declare module 'require-from-string';
declare module 'styled-components';
declare module 'acorn-jsx';
declare module 'vue/dist/vue';
Expand Down
12 changes: 3 additions & 9 deletions addons/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@
"compilerOptions": {
"rootDir": "./src",
"skipLibCheck": true,
"types": [
"webpack-env",
"jest",
"node"
]
"types": ["jest", "node"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/__tests__/**/*",
"src/**/*.stories.*",
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
18 changes: 1 addition & 17 deletions addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/vue": "6.5.0-rc.1",
"@types/jest": "^26.0.16",
"@types/webpack-env": "^1.16.0"
"@types/jest": "^26.0.16"
},
"peerDependencies": {
"@babel/core": "^7.9.6"
Expand All @@ -68,18 +67,6 @@
"@storybook/angular": {
"optional": true
},
"@storybook/builder-manager4": {
"optional": true
},
"@storybook/builder-manager5": {
"optional": true
},
"@storybook/builder-webpack4": {
"optional": true
},
"@storybook/builder-webpack5": {
"optional": true
},
"@storybook/html": {
"optional": true
},
Expand Down Expand Up @@ -112,9 +99,6 @@
},
"vue": {
"optional": true
},
"webpack": {
"optional": true
}
},
"publishConfig": {
Expand Down
12 changes: 3 additions & 9 deletions addons/essentials/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"jest",
"node"
]
"types": ["jest", "node"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -19,4 +13,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
11 changes: 3 additions & 8 deletions addons/interactions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env"
]
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -17,4 +12,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 0 additions & 3 deletions addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
"regenerator-runtime": "^0.13.7",
"upath": "^1.2.0"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
11 changes: 3 additions & 8 deletions addons/jest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"jest"
]
"types": ["jest"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -18,4 +13,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 0 additions & 3 deletions addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
"regenerator-runtime": "^0.13.7",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
11 changes: 3 additions & 8 deletions addons/links/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env",
"@testing-library/jest-dom"
]
"types": ["@testing-library/jest-dom"]
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -18,4 +13,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 0 additions & 3 deletions addons/measure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
"core-js": "^3.8.2",
"global": "^4.4.0"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
11 changes: 3 additions & 8 deletions addons/measure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env"
]
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -17,4 +12,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
3 changes: 0 additions & 3 deletions addons/outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
"regenerator-runtime": "^0.13.7",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
11 changes: 3 additions & 8 deletions addons/outline/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": [
"webpack-env"
]
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"include": ["src/**/*"],
"exclude": [
"src/**/*.test.*",
"src/**/tests/**/*",
Expand All @@ -17,4 +12,4 @@
"src/**/*.mockdata.*",
"src/**/__testfixtures__/**"
]
}
}
Loading

0 comments on commit b96cec6

Please sign in to comment.