Skip to content

Commit

Permalink
move storybook configs and deps out of root
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed May 17, 2024
1 parent 022a233 commit cf17677
Show file tree
Hide file tree
Showing 15 changed files with 327 additions and 403 deletions.
2 changes: 1 addition & 1 deletion apps/storybooks/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rootMain = require('../../../.storybook/main');
const rootMain = require('../../../configs/storybook/main');

module.exports = {
...rootMain,
Expand Down
1 change: 1 addition & 0 deletions apps/storybooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "wireit"
},
"devDependencies": {
"storybook": "8.0.5",
"wireit": "0.14.4"
},
"wireit": {
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions configs/storybook/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@configs/storybook",
"version": "0.1.0",
"private": true,
"type": "module",
"devDependencies": {
"@babel/core": "7.24.0",
"@babel/plugin-transform-typescript": "7.24.5",
"@babel/preset-env": "7.24.0",
"@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@emotion/babel-plugin": "11.11.0",
"@storybook/addon-a11y": "8.0.5",
"@storybook/addon-docs": "8.0.5",
"@storybook/addon-essentials": "8.0.5",
"@storybook/addon-links": "8.0.5",
"@storybook/addon-viewport": "8.0.5",
"@storybook/manager-api": "^8.0.5",
"@storybook/react": "8.0.5",
"@storybook/react-webpack5": "8.0.5",
"@storybook/theming": "8.0.5",
"@types/babel__core": "7.20.5",
"babel-loader": "9.1.3"
}
}
2 changes: 1 addition & 1 deletion libs/@guardian/source-foundations/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rootMain = require('../../../../.storybook/main');
const rootMain = require('../../../../configs/storybook/main');

// To customise your Storybook config for this project, update this file

Expand Down
3 changes: 3 additions & 0 deletions libs/@guardian/source-foundations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.17.2",
"storybook": "8.0.5",
"tslib": "2.6.2",
"tsx": "4.7.1",
"typescript": "5.3.3",
Expand Down Expand Up @@ -79,6 +80,8 @@
"build"
],
"files": [
"../../../../configs/storybook/**",
"./.storybook/**",
"**/*.{ts,tsx,js,json,mdx,md}",
"!storybook-static/**",
"!(jest*)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rootMain = require('../../../../.storybook/main');
const rootMain = require('../../../../configs/storybook/main');

// To customise your Storybook config for this project, update this file

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@types/react": "18.2.11",
"react": "18.2.0",
"rollup": "4.17.2",
"storybook": "8.0.5",
"tslib": "2.6.2",
"typescript": "5.3.3",
"wireit": "0.14.4"
Expand Down Expand Up @@ -83,6 +84,8 @@
"_deps"
],
"files": [
"../../../../configs/storybook/**",
"./.storybook/**",
"**/*.{ts,tsx,js,json,mdx,md}",
"!storybook-static/**",
"!(jest*)"
Expand Down
2 changes: 1 addition & 1 deletion libs/@guardian/source-react-components/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rootMain = require('../../../../.storybook/main');
const rootMain = require('../../../../configs/storybook/main');

// To customise your Storybook config for this project, update this file

Expand Down
3 changes: 3 additions & 0 deletions libs/@guardian/source-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"prettier": "3.2.2",
"react": "18.2.0",
"rollup": "4.17.2",
"storybook": "8.0.5",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"tslib": "2.6.2",
Expand Down Expand Up @@ -94,6 +95,8 @@
"_deps"
],
"files": [
"../../../../configs/storybook/**",
"./.storybook/**",
"**/*.{ts,tsx,js,json,mdx,md}",
"!(dist|storybook-static)/**",
"!(jest*)"
Expand Down
2 changes: 1 addition & 1 deletion libs/@guardian/source/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rootMain = require('../../../../.storybook/main');
const rootMain = require('../../../../configs/storybook/main');

// To customise your Storybook config for this project, update this file

Expand Down
3 changes: 3 additions & 0 deletions libs/@guardian/source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"prettier": "3.2.2",
"react": "18.2.0",
"rollup": "4.17.2",
"storybook": "8.0.5",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"tsx": "4.7.1",
Expand Down Expand Up @@ -104,6 +105,8 @@
"build-storybook": {
"command": "NODE_ENV=production storybook build --webpack-stats-json",
"files": [
"../../../../configs/storybook/**",
"./.storybook/**",
"**/*.{ts,tsx,js,json,mdx,md}",
"!storybook-static/**",
"!jest*"
Expand Down
21 changes: 0 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,18 @@
"test": "./tools/scripts/use-make-instead"
},
"devDependencies": {
"@babel/core": "7.24.0",
"@babel/plugin-transform-typescript": "7.24.5",
"@babel/preset-env": "7.24.0",
"@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@changesets/cli": "2.27.1",
"@emotion/babel-plugin": "11.11.0",
"@guardian/eslint-config": "workspace:*",
"@guardian/eslint-config-typescript": "workspace:*",
"@guardian/prettier": "workspace:*",
"@manypkg/get-packages": "2.2.0",
"@storybook/addon-a11y": "8.0.5",
"@storybook/addon-docs": "8.0.5",
"@storybook/addon-essentials": "8.0.5",
"@storybook/addon-links": "8.0.5",
"@storybook/addon-viewport": "8.0.5",
"@storybook/manager-api": "^8.0.5",
"@storybook/react": "8.0.5",
"@storybook/react-webpack5": "8.0.5",
"@storybook/theming": "8.0.5",
"@swc-node/register": "1.9.0",
"@swc/core": "1.4.0",
"@swc/helpers": "^0.5.2",
"@types/babel__core": "7.20.5",
"@types/jest": "29.5.8",
"@types/node": "20.12.11",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"babel-loader": "9.1.3",
"colorette": "2.0.20",
"eslint": "8.56.0",
"eslint-plugin-eslint-comments": "3.2.0",
Expand All @@ -49,11 +32,7 @@
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.0",
"prettier": "3.2.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"require-from-string": "2.0.2",
"sort-package-json": "2.10.0",
"storybook": "8.0.5",
"ts-jest": "29.1.1",
"typescript": "5.3.3",
"update-section": "0.3.3",
Expand Down

0 comments on commit cf17677

Please sign in to comment.