|
9 | 9 | "node": ">=14" |
10 | 10 | }, |
11 | 11 | "scripts": { |
12 | | - "build": "npm run build:icon && npm run build:next:icon && npm run build:lib && npm run build:es && npm run build:ts", |
| 12 | + "build": "yarn build:icon && yarn build:next:icon && yarn build:lib && yarn build:es && yarn build:ts", |
13 | 13 | "build:lib": "rm -rf lib && babel src -d lib --extensions .ts,.tsx --ignore .storybook/**/*,src/**/*.test.tsx,src/**/*.test.ts,src/**/*.spec.tsx,src/**/*.spec.ts,src/**/*.stories.tsx", |
14 | 14 | "build:es": "rm -rf es && cross-env BABEL_ENV=es babel src -d es --extensions .ts,.tsx --ignore .storybook/**/*,src/**/*.test.tsx,src/**/*.test.ts,src/**/*.spec.tsx,src/**/*.spec.ts,src/**/*.stories.tsx", |
15 | 15 | "build:ts": "tsc --project tsconfig.declaration.json -d --declarationDir lib && tsc --project tsconfig.declaration.json -d --declarationDir es", |
16 | | - "build:icon": "rm -rf src/General/Icon/components && babel-node --extensions .ts,.tsx src/Utils/Icon/generateIcons.ts && npm run format:icon", |
| 16 | + "build:icon": "rm -rf src/General/Icon/components && babel-node --extensions .ts,.tsx src/Utils/Icon/generateIcons.ts && yarn format:icon", |
17 | 17 | "build:next:icon": "npx @svgr/cli --typescript --out-dir src/@next/Icon/components -- src/@next/Icon/icons", |
18 | 18 | "format:icon": "prettier --write src/General/Icon/components/*.tsx", |
19 | 19 | "imports": "babel-node --extensions .ts scripts/count-imports/index.ts", |
20 | | - "lint": "npm run lint:css && npm run lint:ts", |
| 20 | + "lint": "yarn lint:css && yarn lint:ts", |
21 | 21 | "lint:css": "stylelint '**/*Style.ts'", |
22 | 22 | "lint:ts": "eslint '**/*.{ts,tsx}'", |
23 | 23 | "test:update": "jest --env jsdom -u", |
24 | 24 | "test": "jest --env jsdom", |
25 | 25 | "coverage:src": "jest --coverage --collectCoverageFrom 'src/**/*.tsx' --coveragePathIgnorePatterns 'src/General/Icon/components/' --collectCoverageFrom='!src/**/*.stories.tsx' --collectCoverageFrom='!src/**/*StoryStyle.tsx' --collectCoverageFrom='!src/**/*StoriesHelpers.tsx' --collectCoverageFrom='!src/stories/story-components/**'", |
26 | | - "storybook": "start-storybook -p 6006", |
27 | | - "storybook:build": "rm -rf .out && npm run storybook:build:assets && npm run build:icon && npm run build:next:icon && build-storybook -o .out -s dist/public", |
28 | | - "storybook:build:test": "rm -rf storybook-static && npm run storybook:build:assets && npm run build:icon && npm run build:next:icon && build-storybook -o storybook-static -s dist/public", |
| 26 | + "storybook": "storybook dev -p 6006", |
| 27 | + "storybook:build": "rm -rf .out && yarn storybook:build:assets && yarn build:icon && yarn build:next:icon && sb build -o .out -s dist/public", |
| 28 | + "storybook:build:test": "rm -rf storybook-static && yarn storybook:build:assets && yarn build:icon && yarn build:next:icon && storybook build -o storybook-static -s dist/public", |
29 | 29 | "storybook:build:assets": "webpack", |
30 | 30 | "prepare": "husky install", |
31 | 31 | "check-definition-files": "node checkDefinitionFiles.js" |
|
59 | 59 | "@babel/preset-react": "^7.18.6", |
60 | 60 | "@babel/preset-typescript": "^7.18.6", |
61 | 61 | "@playwright/test": "^1.29.0", |
62 | | - "@storybook/addon-actions": "^6.5.15", |
63 | | - "@storybook/addon-essentials": "^6.5.15", |
64 | | - "@storybook/addon-links": "^6.5.15", |
65 | | - "@storybook/builder-webpack5": "^6.5.15", |
66 | | - "@storybook/manager-webpack5": "^6.5.15", |
67 | | - "@storybook/react": "^6.5.15", |
| 62 | + "@storybook/addon-actions": "^7.0.26", |
| 63 | + "@storybook/addon-essentials": "^7.0.26", |
| 64 | + "@storybook/addon-links": "^7.0.26", |
| 65 | + "@storybook/addon-mdx-gfm": "^7.0.26", |
| 66 | + "@storybook/react": "^7.0.26", |
| 67 | + "@storybook/react-webpack5": "^7.0.26", |
68 | 68 | "@svgr/cli": "^6.5.1", |
69 | 69 | "@testing-library/dom": "^8.11.3", |
70 | 70 | "@testing-library/jest-dom": "^5.16.2", |
|
100 | 100 | "eslint-plugin-prettier": "^3.1.1", |
101 | 101 | "eslint-plugin-react": "^7.27.1", |
102 | 102 | "eslint-plugin-react-hooks": "^4.3.0", |
| 103 | + "eslint-plugin-storybook": "^0.6.12", |
103 | 104 | "file-loader": "^6.2.0", |
104 | 105 | "fork-ts-checker-webpack-plugin": "^1.3.4", |
105 | 106 | "generate-changelog": "^1.7.1", |
|
117 | 118 | "react-is": "^17.0.2", |
118 | 119 | "react-test-renderer": "^17.0.2", |
119 | 120 | "start-server-and-test": "^1.15.2", |
| 121 | + "storybook": "^7.0.26", |
120 | 122 | "styled-components": "^5.1.1", |
121 | 123 | "stylelint": "^10.0.1", |
122 | 124 | "stylelint-config-recommended": "^2.2.0", |
|
0 commit comments