mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
436 lines
14 KiB
JSON
436 lines
14 KiB
JSON
{
|
|
"name": "@storybook/root",
|
|
"version": "7.0.0-alpha.58",
|
|
"private": true,
|
|
"description": "Storybook is an open source tool for developing UI components in isolation for React, Vue and Angular. It makes building stunning UIs organized and efficient.",
|
|
"keywords": [
|
|
"angular",
|
|
"angularjs",
|
|
"au2",
|
|
"aurelia",
|
|
"aurelia2",
|
|
"babel",
|
|
"components",
|
|
"documentation",
|
|
"frontend",
|
|
"jamstack",
|
|
"markup",
|
|
"mdx",
|
|
"react",
|
|
"reactjs",
|
|
"reuseable",
|
|
"storybook",
|
|
"storybookjs",
|
|
"templated",
|
|
"tool",
|
|
"ui",
|
|
"user interface",
|
|
"vue",
|
|
"vuejs"
|
|
],
|
|
"homepage": "https://storybook.js.org/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/storybookjs/storybook.git"
|
|
},
|
|
"funding": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/storybook"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"addons/*",
|
|
"addons/storyshots/*",
|
|
"examples/*",
|
|
"examples-native/*",
|
|
"frameworks/*",
|
|
"lib/*",
|
|
"lib/cli/test/run/*",
|
|
"ui/*",
|
|
"presets/*",
|
|
"renderers/*"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"await-serve-storybooks": "wait-on http://localhost:8001",
|
|
"build": "NODE_ENV=production node ../scripts/build-package.js",
|
|
"changelog": "pr-log --sloppy --cherry-pick",
|
|
"changelog:next": "pr-log --sloppy --since-prerelease",
|
|
"check": "NODE_ENV=production node ../scripts/check-package.js",
|
|
"ci-tests": "yarn task --task check --no-link --start-from=install && yarn lint && yarn test && cd ../scripts && yarn test",
|
|
"coverage": "codecov",
|
|
"danger": "danger",
|
|
"generate-repros": "zx ../scripts/repros-generator/index.mjs",
|
|
"generate-repros-next": "ts-node ../scripts/next-repro-generators/generate-repros.ts",
|
|
"github-release": "github-release-from-changelog",
|
|
"linear-export": "ts-node --project=../scripts/tsconfig.json ../scripts/linear-export.ts",
|
|
"lint": "yarn lint:js && yarn lint:md",
|
|
"lint:ejs": "ejslint **/*.ejs",
|
|
"lint:js": "yarn lint:js:cmd . --quiet",
|
|
"lint:js:cmd": "cross-env NODE_ENV=production eslint --cache --cache-location=../.cache/eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives",
|
|
"lint:md": "remark -q .",
|
|
"lint:other": "prettier --write '**/*.{css,html,json,md,yml}'",
|
|
"lint:package": "sort-package-json",
|
|
"local-registry": "ts-node --project=../scripts/tsconfig.json ../scripts/run-registry.ts --port 6001",
|
|
"publish-repros": "ts-node ../scripts/next-repro-generators/publish.ts",
|
|
"publish:debug": "npm run publish:latest -- --npm-tag=debug --no-push",
|
|
"publish:latest": "lerna publish --exact --concurrency 1 --force-publish",
|
|
"publish:next": "npm run publish:latest -- --npm-tag=next",
|
|
"storybook:blocks": "STORYBOOK_BLOCKS_ONLY=true yarn storybook:ui",
|
|
"storybook:blocks:build": "STORYBOOK_BLOCKS_ONLY=true yarn storybook:ui:build",
|
|
"storybook:blocks:chromatic": "STORYBOOK_BLOCKS_ONLY=true yarn storybook:ui:chromatic --project-token=${CHROMATIC_TOKEN_STORYBOOK_BLOCKS:-MISSING_PROJECT_TOKEN}",
|
|
"storybook:ui": "NODE_OPTIONS=\"--preserve-symlinks --preserve-symlinks-main\" ./lib/cli/bin/index.js dev --port 6006 --config-dir ./ui/.storybook --no-manager-cache",
|
|
"storybook:ui:build": "NODE_OPTIONS=\"--preserve-symlinks --preserve-symlinks-main\" ./lib/cli/bin/index.js build --config-dir ./ui/.storybook",
|
|
"storybook:ui:chromatic": "yarn chromatic --build-script-name storybook:ui:build --storybook-config-dir ./ui/.storybook --storybook-base-dir ./code --project-token=${CHROMATIC_TOKEN_STORYBOOK_UI:-MISSING_PROJECT_TOKEN} --only-changed --exit-zero-on-changes --exit-once-uploaded",
|
|
"task": "cd .. && yarn task",
|
|
"test": "NODE_OPTIONS=--max_old_space_size=4096 jest --config ./jest.config.js",
|
|
"test:cli": "npm --prefix lib/cli run test"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "yarn lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{html,js,json,jsx,mjs,ts,tsx}": [
|
|
"yarn lint:js:cmd --fix"
|
|
],
|
|
"package.json": [
|
|
"yarn lint:package"
|
|
],
|
|
"*.ejs": [
|
|
"ejslint"
|
|
],
|
|
"*.{css,html,json,md,yml}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"browserslist": [
|
|
"defaults"
|
|
],
|
|
"resolutions": {
|
|
"@nrwl/cli": "14.6.1",
|
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
"@typescript-eslint/experimental-utils": "^5.45.0",
|
|
"@typescript-eslint/parser": "^5.45.0",
|
|
"boxen": "^5.1.2",
|
|
"esbuild": "^0.14.48",
|
|
"eslint": "^8.28.0",
|
|
"serialize-javascript": "^3.1.0",
|
|
"webpack": "5"
|
|
},
|
|
"dependencies": {
|
|
"@babel/cli": "^7.19.3",
|
|
"@babel/core": "^7.20.2",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
|
|
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-arrow-functions": "^7.18.6",
|
|
"@babel/plugin-transform-block-scoping": "^7.20.2",
|
|
"@babel/plugin-transform-destructuring": "^7.20.2",
|
|
"@babel/plugin-transform-shorthand-properties": "^7.18.6",
|
|
"@babel/preset-env": "^7.20.2",
|
|
"@babel/preset-flow": "^7.18.6",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/runtime": "^7.20.1",
|
|
"@compodoc/compodoc": "^1.1.18",
|
|
"@emotion/babel-plugin": "^11.10.2",
|
|
"@emotion/jest": "^11.10.0",
|
|
"@jest/globals": "^29.3.1",
|
|
"@linear/sdk": "^1.21.0",
|
|
"@nrwl/cli": "14.6.1",
|
|
"@nrwl/nx-cloud": "14.6.0",
|
|
"@nrwl/workspace": "14.6.1",
|
|
"@playwright/test": "1.28.0",
|
|
"@storybook/addon-a11y": "workspace:*",
|
|
"@storybook/addon-actions": "workspace:*",
|
|
"@storybook/addon-backgrounds": "workspace:*",
|
|
"@storybook/addon-controls": "workspace:*",
|
|
"@storybook/addon-docs": "workspace:*",
|
|
"@storybook/addon-essentials": "workspace:*",
|
|
"@storybook/addon-highlight": "workspace:*",
|
|
"@storybook/addon-interactions": "workspace:*",
|
|
"@storybook/addon-jest": "workspace:*",
|
|
"@storybook/addon-links": "workspace:*",
|
|
"@storybook/addon-measure": "workspace:*",
|
|
"@storybook/addon-outline": "workspace:*",
|
|
"@storybook/addon-storyshots": "workspace:*",
|
|
"@storybook/addon-storyshots-puppeteer": "workspace:*",
|
|
"@storybook/addon-storysource": "workspace:*",
|
|
"@storybook/addon-toolbars": "workspace:*",
|
|
"@storybook/addon-viewport": "workspace:*",
|
|
"@storybook/addons": "workspace:*",
|
|
"@storybook/angular": "workspace:*",
|
|
"@storybook/api": "workspace:*",
|
|
"@storybook/babel-plugin-require-context-hook": "1.0.1",
|
|
"@storybook/blocks": "workspace:*",
|
|
"@storybook/builder-manager": "workspace:*",
|
|
"@storybook/builder-vite": "workspace:*",
|
|
"@storybook/builder-webpack5": "workspace:*",
|
|
"@storybook/channel-postmessage": "workspace:*",
|
|
"@storybook/channel-websocket": "workspace:*",
|
|
"@storybook/channels": "workspace:*",
|
|
"@storybook/cli": "workspace:*",
|
|
"@storybook/client-api": "workspace:*",
|
|
"@storybook/client-logger": "workspace:*",
|
|
"@storybook/codemod": "workspace:*",
|
|
"@storybook/components": "workspace:*",
|
|
"@storybook/core-client": "workspace:*",
|
|
"@storybook/core-common": "workspace:*",
|
|
"@storybook/core-events": "workspace:*",
|
|
"@storybook/core-server": "workspace:*",
|
|
"@storybook/core-webpack": "workspace:*",
|
|
"@storybook/csf": "next",
|
|
"@storybook/csf-plugin": "workspace:*",
|
|
"@storybook/csf-tools": "workspace:*",
|
|
"@storybook/docs-tools": "workspace:*",
|
|
"@storybook/ember": "workspace:*",
|
|
"@storybook/eslint-config-storybook": "^3.1.2",
|
|
"@storybook/html": "workspace:*",
|
|
"@storybook/html-vite": "workspace:*",
|
|
"@storybook/html-webpack5": "workspace:*",
|
|
"@storybook/instrumenter": "workspace:*",
|
|
"@storybook/jest": "^0.0.10",
|
|
"@storybook/linter-config": "^2.5.0",
|
|
"@storybook/manager": "workspace:*",
|
|
"@storybook/manager-api": "workspace:*",
|
|
"@storybook/nextjs": "workspace:*",
|
|
"@storybook/node-logger": "workspace:*",
|
|
"@storybook/postinstall": "workspace:*",
|
|
"@storybook/preact": "workspace:*",
|
|
"@storybook/preact-webpack5": "workspace:*",
|
|
"@storybook/preset-html-webpack": "workspace:*",
|
|
"@storybook/preset-preact-webpack": "workspace:*",
|
|
"@storybook/preset-react-webpack": "workspace:*",
|
|
"@storybook/preset-server-webpack": "workspace:*",
|
|
"@storybook/preset-svelte-webpack": "workspace:*",
|
|
"@storybook/preset-vue-webpack": "workspace:*",
|
|
"@storybook/preset-vue3-webpack": "workspace:*",
|
|
"@storybook/preset-web-components-webpack": "workspace:*",
|
|
"@storybook/preview": "workspace:*",
|
|
"@storybook/preview-api": "workspace:*",
|
|
"@storybook/preview-web": "workspace:*",
|
|
"@storybook/react": "workspace:*",
|
|
"@storybook/react-vite": "workspace:*",
|
|
"@storybook/react-webpack5": "workspace:*",
|
|
"@storybook/router": "workspace:*",
|
|
"@storybook/server": "workspace:*",
|
|
"@storybook/server-webpack5": "workspace:*",
|
|
"@storybook/source-loader": "workspace:*",
|
|
"@storybook/store": "workspace:*",
|
|
"@storybook/svelte": "workspace:*",
|
|
"@storybook/svelte-webpack5": "workspace:*",
|
|
"@storybook/telemetry": "workspace:*",
|
|
"@storybook/testing-library": "0.0.14-next.0",
|
|
"@storybook/theming": "workspace:*",
|
|
"@storybook/types": "workspace:*",
|
|
"@storybook/vue": "workspace:*",
|
|
"@storybook/vue-webpack5": "workspace:*",
|
|
"@storybook/vue3": "workspace:*",
|
|
"@storybook/vue3-vite": "workspace:*",
|
|
"@storybook/vue3-webpack5": "workspace:*",
|
|
"@storybook/web-components": "workspace:*",
|
|
"@storybook/web-components-vite": "workspace:*",
|
|
"@storybook/web-components-webpack5": "workspace:*",
|
|
"@testing-library/dom": "^7.29.4",
|
|
"@testing-library/jest-dom": "^5.11.9",
|
|
"@testing-library/react": "^11.2.2",
|
|
"@testing-library/user-event": "^13.2.1",
|
|
"@types/detect-port": "^1.3.2",
|
|
"@types/doctrine": "^0.0.3",
|
|
"@types/enzyme": "^3.10.8",
|
|
"@types/escodegen": "^0.0.6",
|
|
"@types/express": "^4.17.11",
|
|
"@types/fs-extra": "^9.0.6",
|
|
"@types/js-yaml": "^3.12.6",
|
|
"@types/lodash": "^4.14.167",
|
|
"@types/node": "^16.0.0",
|
|
"@types/node-cleanup": "^2.1.1",
|
|
"@types/prompts": "2.0.11",
|
|
"@types/react": "^16.14.34",
|
|
"@types/react-dom": "^16.9.14",
|
|
"@types/semver": "^7.3.4",
|
|
"@types/serve-static": "^1.13.8",
|
|
"@types/shelljs": "^0.8.7",
|
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
"@types/webpack-dev-middleware": "^5.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
"@typescript-eslint/experimental-utils": "^5.45.0",
|
|
"@typescript-eslint/parser": "^5.45.0",
|
|
"@vitejs/plugin-react": "^2.1.0",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^29.3.1",
|
|
"babel-loader": "^8.3.0",
|
|
"babel-plugin-add-react-displayname": "^0.0.5",
|
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
"babel-plugin-macros": "^3.0.1",
|
|
"chalk": "^4.1.0",
|
|
"chromatic": "6.11.2",
|
|
"codecov": "^3.8.1",
|
|
"commander": "^6.2.1",
|
|
"concurrently": "^5.3.0",
|
|
"cross-env": "^7.0.3",
|
|
"danger": "^10.6.2",
|
|
"detect-port": "^1.3.0",
|
|
"ejs-lint": "^1.2.2",
|
|
"enzyme": "^3.11.0",
|
|
"enzyme-adapter-react-16": "^1.15.5",
|
|
"esbuild": "^0.14.48",
|
|
"esbuild-loader": "^2.19.0",
|
|
"esbuild-plugin-alias": "^0.2.1",
|
|
"eslint": "^8.28.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-react": "^7.31.10",
|
|
"eslint-plugin-storybook": "^0.6.6",
|
|
"esm": "^3.2.25",
|
|
"execa": "^5.0.0",
|
|
"express": "^4.17.1",
|
|
"fs-extra": "^9.0.1",
|
|
"github-release-from-changelog": "^2.1.1",
|
|
"glob": "^7.1.6",
|
|
"global": "^4.4.0",
|
|
"http-server": "^0.12.3",
|
|
"husky": "^4.3.7",
|
|
"jest": "^29.3.1",
|
|
"jest-environment-jsdom": "^29.3.1",
|
|
"jest-image-snapshot": "^6.0.0",
|
|
"jest-junit": "^14.0.1",
|
|
"jest-os-detection": "^1.3.1",
|
|
"jest-serializer-html": "^7.1.0",
|
|
"jest-watch-typeahead": "^2.2.1",
|
|
"js-yaml": "^3.14.1",
|
|
"lerna": "^3.22.1",
|
|
"lint-staged": "^10.5.4",
|
|
"lodash": "^4.17.21",
|
|
"mocha-list-tests": "^1.0.5",
|
|
"node-cleanup": "^2.1.2",
|
|
"node-fetch": "^2.6.1",
|
|
"node-gyp": "^8.4.0",
|
|
"npmlog": "^5.0.1",
|
|
"nx": "14.6.1",
|
|
"p-limit": "^3.1.0",
|
|
"playwright": "1.28.0",
|
|
"prettier": "2.8.0",
|
|
"process": "^0.11.10",
|
|
"prompts": "^2.4.0",
|
|
"raf": "^3.4.1",
|
|
"react": "^16.14.0",
|
|
"read-pkg-up": "^7.0.1",
|
|
"regenerator-runtime": "^0.13.7",
|
|
"remark": "^13.0.0",
|
|
"remark-cli": "^9.0.0",
|
|
"remark-lint": "^8.0.0",
|
|
"remark-preset-lint-recommended": "^5.0.0",
|
|
"semver": "^7.3.7",
|
|
"serve-static": "^1.14.1",
|
|
"shelljs": "^0.8.5",
|
|
"shx": "^0.3.2",
|
|
"sort-package-json": "^1.48.1",
|
|
"terser-webpack-plugin": "^5.3.1",
|
|
"trash": "^7.0.0",
|
|
"ts-dedent": "^2.0.0",
|
|
"ts-node": "^10.4.0",
|
|
"tsup": "^6.2.2",
|
|
"typescript": "^4.9.3",
|
|
"util": "^0.12.4",
|
|
"vite": "^3.1.7",
|
|
"vite-plugin-turbosnap": "^1.0.1",
|
|
"wait-on": "^5.2.1",
|
|
"web-component-analyzer": "^1.1.6",
|
|
"webpack": "5",
|
|
"webpack-dev-middleware": "^5.3.1",
|
|
"window-size": "^1.1.1",
|
|
"zx": "^7.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"eslint-import-resolver-typescript": "^3.5.2",
|
|
"expect-type": "^0.14.2"
|
|
},
|
|
"dependenciesMeta": {
|
|
"@compodoc/compodoc": {
|
|
"built": false
|
|
},
|
|
"ejs": {
|
|
"built": false
|
|
},
|
|
"level": {
|
|
"built": false
|
|
},
|
|
"node-uuid": {
|
|
"built": false,
|
|
"unplugged": false
|
|
},
|
|
"nodemon": {
|
|
"built": false
|
|
},
|
|
"parcel": {
|
|
"built": false
|
|
},
|
|
"preact": {
|
|
"built": false
|
|
},
|
|
"yorkie": {
|
|
"built": false
|
|
}
|
|
},
|
|
"optionalDependencies": {
|
|
"puppeteer": "^2.1.1",
|
|
"ts-loader": "^9.2.8",
|
|
"verdaccio": "^4.10.0",
|
|
"verdaccio-auth-memory": "^9.7.2"
|
|
},
|
|
"packageManager": "yarn@3.3.0",
|
|
"engines": {
|
|
"node": ">=10.13.0",
|
|
"yarn": ">=1.3.2"
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/storybook"
|
|
},
|
|
"pr-log": {
|
|
"skipLabels": [
|
|
"cleanup"
|
|
],
|
|
"validLabels": [
|
|
[
|
|
"BREAKING CHANGE",
|
|
"Breaking Changes"
|
|
],
|
|
[
|
|
"feature request",
|
|
"Features"
|
|
],
|
|
[
|
|
"bug",
|
|
"Bug Fixes"
|
|
],
|
|
[
|
|
"documentation",
|
|
"Documentation"
|
|
],
|
|
[
|
|
"maintenance",
|
|
"Maintenance"
|
|
],
|
|
[
|
|
"build",
|
|
"Build"
|
|
],
|
|
[
|
|
"dependencies",
|
|
"Dependency Upgrades"
|
|
],
|
|
[
|
|
"other",
|
|
"Other"
|
|
]
|
|
]
|
|
}
|
|
}
|