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 2, 2024
1 parent 9af72c2 commit 92de157
Show file tree
Hide file tree
Showing 23 changed files with 130 additions and 6,718 deletions.
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 @@ -105,17 +105,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": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
Expand Down Expand Up @@ -157,7 +146,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 @@ -184,8 +172,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 @@ -203,18 +189,6 @@
"last 1 safari version"
]
},
"eslintConfig": {
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
},
"jest": {
"coverageReporters": [
"text",
Expand Down
239 changes: 0 additions & 239 deletions front/src/stories/IntervalsEditor.stories.tsx

This file was deleted.

Loading

0 comments on commit 92de157

Please sign in to comment.