Skip to content

Commit

Permalink
front: nuke storybook
Browse files Browse the repository at this point in the history
This is badly outdated and we never use it in practice. It's easier
to just directly test the components within the app.

Signed-off-by: Simon Ser <contact@emersion.fr>
  • Loading branch information
emersion committed Oct 3, 2024
1 parent 990a4c5 commit 3c75104
Show file tree
Hide file tree
Showing 25 changed files with 178 additions and 6,756 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ updates:
rjsf:
patterns:
- "@rjsf/*"
storybook:
patterns:
- "storybook"
- "@storybook/*"
turf:
patterns:
- "@turf/*"
Expand Down
13 changes: 0 additions & 13 deletions docker/docker-compose.storybook.yml

This file was deleted.

1 change: 0 additions & 1 deletion front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

# production
/build
/storybook-static

# docs
/docs
Expand Down
29 changes: 0 additions & 29 deletions front/.storybook/main.js

This file was deleted.

3 changes: 0 additions & 3 deletions front/.storybook/preview-head.html

This file was deleted.

12 changes: 0 additions & 12 deletions front/.storybook/preview.js

This file was deleted.

1 change: 0 additions & 1 deletion front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ components requiring a specific design.
| main/ | Landing & home pages |
| reducers/ | Redux store |
| `Store.ts` | Redux store config |
| stories/ | Storybook files |
| styles/ | All SCSS code ([see below](#css-srcstyles)) |
| types/ | Typescript types configuration |
| utils/ | Some common generic helpers |
Expand Down
26 changes: 0 additions & 26 deletions front/docker/Dockerfile.storybook

This file was deleted.

26 changes: 0 additions & 26 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@
"@import-meta-env/prepare": "^0.1.13",
"@import-meta-env/unplugin": "^0.5.1",
"@playwright/test": "^1.41.2",
"@storybook/addon-actions": "^7.6.12",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-interactions": "^7.6.12",
"@storybook/addon-links": "^7.6.12",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/node-logger": "^7.6.12",
"@storybook/preset-create-react-app": "^7.6.12",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.6.12",
"@storybook/react-vite": "^7.6.12",
"@storybook/testing-library": "^0.2.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
Expand Down Expand Up @@ -153,7 +142,6 @@
"prettier": "^3.2.5",
"sass": "^1.70.0",
"sass-loader": "^14.1.0",
"storybook": "^7.6.12",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"tsx": "^4.7.1",
Expand All @@ -180,8 +168,6 @@
"lint-fix": "eslint --cache --ext .ts,.tsx,.js,.jsx src --fix",
"test-coverage": "import-meta-env-prepare -x .env.example && vitest run --coverage",
"generate-types": "exec scripts/generate-types.sh",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"generate-licenses": "license-checker-rseidelsohn --json --production --direct --excludePackagesStartingWith '@types' --excludePrivatePackages --customPath src/common/ReleaseInformations/json/licenseCustomFormat.json > src/common/ReleaseInformations/json/licenses.json",
"e2e-tests": "yarn playwright test",
"i18n-api-errors": "tsx ./scripts/i18n-api-errors.ts",
Expand All @@ -199,18 +185,6 @@
"last 1 safari version"
]
},
"eslintConfig": {
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
},
"jest": {
"coverageReporters": [
"text",
Expand Down
Loading

0 comments on commit 3c75104

Please sign in to comment.