Skip to content

Commit

Permalink
chore: update storybook and little improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
spirit-drive committed Feb 28, 2024
1 parent 1fb32c4 commit 7b261a8
Show file tree
Hide file tree
Showing 16 changed files with 18,241 additions and 24,888 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-scss",
"@storybook/addon-mdx-gfm"
],
framework: {
name: "@storybook/react-webpack5",
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ https://your-account-name.github.io

Для запуска нужно запушить любой коммит в main ветку.

Настройку деплоя смотрите тут .github/workflows/main.yml
Настройку деплоя смотрите тут .github/workflows/main.yml

Используйте [feature sliced design](https://feature-sliced.design/ru/docs/get-started/overview)
43,099 changes: 18,219 additions & 24,880 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
"@babel/preset-env": "^7.22.4",
"@babel/preset-react": "^7.22.3",
"@babel/preset-typescript": "^7.21.5",
"@storybook/addon-essentials": "^7.0.18",
"@storybook/addon-interactions": "^7.0.18",
"@storybook/addon-links": "^7.0.18",
"@storybook/blocks": "^7.0.18",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/addon-mdx-gfm": "^7.6.17",
"@storybook/blocks": "^7.6.17",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.0.18",
"@storybook/react-webpack5": "^7.0.18",
"@storybook/react": "^7.6.17",
"@storybook/react-webpack5": "^7.6.17",
"@storybook/testing-library": "^0.0.14-next.2",
"@types/jest": "^29.5.2",
"@types/node": "^20.2.5",
Expand All @@ -43,6 +44,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.8.0",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"html-webpack-plugin": "^5.5.1",
"husky": "^8.0.0",
Expand All @@ -53,7 +55,7 @@
"prettier": "2.8.8",
"sass": "^1.69.5",
"sass-loader": "^13.3.1",
"storybook": "^7.0.18",
"storybook": "^7.6.17",
"style-loader": "^3.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
Expand Down
1 change: 1 addition & 0 deletions src/entities/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`entities` (сущности) — бизнес-сущности. (например, User, Product, Order)
1 change: 1 addition & 0 deletions src/features/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`features` (фичи) — взаимодействия с пользователем, действия, которые несут бизнес-ценность для пользователя. (например, SendComment, AddToCart, UsersSearch)
2 changes: 2 additions & 0 deletions src/homeworks/ts1/1_base.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Этот блок кода удалить и раскомментировать код ниже
it('remove it', () => {
expect(true).toBe(true);
});

// import { transformCustomers } from './1_base';
//
// describe('all', () => {

Check warning on line 8 in src/homeworks/ts1/1_base.test.js

View workflow job for this annotation

GitHub Actions / build-and-deploy (18.x)

Some tests seem to be commented
Expand Down
1 change: 1 addition & 0 deletions src/homeworks/ts1/3_write.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Этот блок кода удалить и раскомментировать код ниже
it('remove it', () => {
expect(true).toBe(true);
});
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<title>My project</title>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions src/pages/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`pages` (страницы) — композиционный слой для сборки полноценных страниц из сущностей, фич и виджетов.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/shared/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`features` (фичи) — взаимодействия с пользователем, действия, которые несут бизнес-ценность для пользователя. (например, SendComment, AddToCart, UsersSearch)
1 change: 1 addition & 0 deletions src/widgets/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`widgets` (виджеты) — композиционный слой для соединения сущностей и фич в самостоятельные блоки (например, IssuesList, UserProfile).

0 comments on commit 7b261a8

Please sign in to comment.