1 Star 0 Fork 0

xhua / wp-calypso

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
package.json 20.46 KB
一键复制 编辑 原始数据 按行查看 历史
{
"name": "wp-calypso-monorepo",
"author": "Automattic Inc.",
"version": "0.17.0",
"description": "A pure REST-API and JS based version of the WordPress.com admin",
"private": true,
"workspaces": {
"packages": [
"client",
"apps/*",
"packages/*",
"test/e2e",
"test/e2e/lib/reporter"
],
"nohoist": [
"**/config",
"**/testarmada-magellan",
"**/testarmada-magellan-*"
]
},
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/wp-calypso.git"
},
"browserslist": {
"defaults": [
"extends @wordpress/browserslist-config"
],
"evergreen": [
"last 2 Chrome versions",
"last 1 ChromeAndroid versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 Edge versions",
"last 2 Opera versions",
"unreleased Chrome versions",
"unreleased ChromeAndroid versions",
"unreleased Firefox versions",
"unreleased FirefoxAndroid versions",
"unreleased Edge versions",
"unreleased Opera versions"
],
"server": [
"current node"
]
},
"engines": {
"node": "^v12.18.0",
"yarn": "^1.22.4"
},
"scripts": {
"analyze-bundles": "check-npm-client && yarn run build-client-stats && webpack-bundle-analyzer client/stats.json public/evergreen -h 127.0.0.1 -p 9898 -s gzip",
"analyze-icfy": "check-npm-client && yarn run build-client-stats && node --max-old-space-size=4096 bin/icfy-analyze.js",
"autoprefixer": "check-npm-client && postcss -u autoprefixer -r --no-map --config packages/calypso-build/postcss.config.js",
"postcss": "check-npm-client && postcss -r --config packages/calypso-build/postcss.config.js",
"prebuild": "check-npm-client && yarn run install-if-deps-outdated",
"build": "check-npm-client && yarn run build-static && yarn run build-packages && yarn run build-css && run-p -s build-devdocs:* && run-p -s build-server build-client-if-prod build-client-if-desktop",
"build-css": "check-npm-client && run-p -s build-css:*",
"build-css:directly": "check-npm-client && node-sass --importer node_modules/node-sass-package-importer/dist/cli.js --include-path client client/assets/stylesheets/directly.scss public/directly.css --output-style compressed && yarn run -s postcss public/directly.css",
"build-css:editor": "check-npm-client && node-sass --importer node_modules/node-sass-package-importer/dist/cli.js --include-path client client/assets/stylesheets/editor.scss public/editor.css --output-style compressed && yarn run -s postcss public/editor.css",
"build-css:reader-mobile": "check-npm-client && node-sass --importer node_modules/node-sass-package-importer/dist/cli.js --include-path client client/assets/stylesheets/reader-mobile.scss public/reader-mobile.css --output-style compressed && yarn run -s postcss public/reader-mobile.css",
"build-devdocs:search-index": "check-npm-client && node bin/generate-devdocs-search-index.js",
"build-desktop": "check-npm-client && run-s build-desktop:source build-desktop:install-app-deps build-desktop:app",
"build-desktop:source": "check-npm-client && run-s build-desktop:config build-desktop:server build-desktop:client",
"build-desktop:config": "check-npm-client && node desktop/bin/build-desktop-config.js",
"build-desktop:server": "check-npm-client && BROWSERSLIST_ENV=server CALYPSO_ENV=desktop webpack --config client/webpack.config.desktop.js --display errors-only",
"build-desktop:client": "check-npm-client && CALYPSO_ENV=desktop DESKTOP_MONOREPO=true yarn run build-client-fallback",
"build-desktop:install-app-deps": "cd desktop && yarn install --frozen-lockfile",
"build-desktop:app": "cd desktop && yarn run build",
"test-desktop:e2e": "node desktop/e2e/run.js",
"build-docker": "check-npm-client && node bin/build-docker.js",
"build-static": "check-npm-client && npx ncp static public",
"prebuild-server": "check-npm-client && mkdirp build",
"build-server": "check-npm-client && BROWSERSLIST_ENV=server webpack --config client/webpack.config.node.js --display errors-only",
"build-client": "check-npm-client && yarn run build-client-evergreen",
"build-client-do": "check-npm-client && node ${NODE_ARGS:---max_old_space_size=8192} ./node_modules/webpack/bin/webpack.js --config client/webpack.config.js --display errors-only && yarn run build-languages-if-enabled",
"build-client-fallback": "check-npm-client && BROWSERSLIST_ENV=defaults yarn run build-client-do",
"postbuild-client-fallback": "check-npm-client && node -e \"process.env.DESKTOP_MONOREPO === 'true' || process.exit(1)\" || yarn run validate-fallback-es5",
"build-client-evergreen": "check-npm-client && BROWSERSLIST_ENV=evergreen yarn run build-client-do",
"build-client-both": "check-npm-client && CONCURRENT_BUILDS=2 concurrently -c cyan -n \"fallback ,evergreen\" \"yarn run build-client-fallback\" \"yarn run build-client-evergreen\"",
"build-client-if-prod": "check-npm-client && node -e \"process.env.CALYPSO_ENV === 'production' && process.exit(1)\" || yarn run build-client-both",
"build-client-if-desktop": "check-npm-client && node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || yarn run build-client-fallback",
"build-client-stats": "check-npm-client && NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=true PROGRESS=true yarn run build-client-evergreen",
"build-packages": "check-npm-client && npx lerna run prepare --stream",
"build-packages:watch": "check-npm-client && node bin/watch-packages-and-rebuild.js",
"build-languages": "check-npm-client && yarn run translate && node bin/build-languages.js",
"build-languages-if-enabled": "check-npm-client && node -e \"(process.env.BUILD_TRANSLATION_CHUNKS === 'true' || process.env.ENABLE_FEATURES === 'use-translation-chunks') && process.exit(1)\" || yarn run build-languages",
"clean": "check-npm-client && yarn run clean:packages && yarn run clean:build && yarn run clean:public && yarn run clean:translations",
"clean:build": "check-npm-client && npx rimraf build client/server/bundler/*.json client/server/devdocs/search-index.js",
"clean:packages": "check-npm-client && npx lerna run clean --stream",
"clean:public": "check-npm-client && npx rimraf public",
"clean:translations": "check-npm-client && npx rimraf calypso-strings.pot chunks-map.*.json",
"distclean": "check-npm-client && yarn run clean && npx rimraf node_modules client/node_modules desktop/node_modules apps/*/node_modules packages/*/node_modules test/e2e/node_modules .tsc-cache vendor",
"docker": "check-npm-client && docker run -it --name wp-calypso --rm -p 80:3000 wp-calypso",
"docker-jetpack-cloud": "check-npm-client && docker run -it --env CALYPSO_ENV=jetpack-cloud-production --name wp-calypso --rm -p 80:3000 wp-calypso",
"eslint-branch": "check-npm-client && node bin/eslint-branch.js",
"install-if-deps-outdated": "check-npm-client && node bin/install-if-deps-outdated.js",
"install-if-no-packages": "check-npm-client && node bin/install-if-no-packages.js",
"postinstall": "check-npm-client && yarn run build-packages",
"lint": "check-npm-client && run-s -s lint:*",
"lint:config-defaults": "check-npm-client && node bin/validate-config-keys.js",
"lint:css": "check-npm-client && stylelint \"**/*.scss\" --syntax scss",
"lint:js": "check-npm-client && yarn run install-if-deps-outdated && eslint --ext .js --ext .jsx --ext .ts --ext .tsx --cache .",
"lint:mixedindent": "check-npm-client && mixedindentlint --ignore-comments \"client/**/*.scss\" \"assets/**/*.scss\" \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.tsx\" \"!build/**\" \"!node_modules/**\" \"!public/**\" \"!client/config/index.js\"",
"lint:package-json": "check-npm-client && npmPkgJsonLint './package.json' './client/package.json' './packages/*/package.json' './apps/*/package.json'",
"prestart": "check-npm-client && npx check-node-version --package && yarn run install-if-deps-outdated && node bin/welcome.js",
"start": "check-npm-client && yarn run -s build",
"poststart": "check-npm-client && run-p -s start-build-if-web start-build-if-desktop build-packages:watch",
"start-fallback": "check-npm-client && DEV_TARGET=fallback yarn run start",
"start-jetpack-cloud": "check-npm-client && CALYPSO_ENV=jetpack-cloud-development yarn start",
"reformat-files": "check-npm-client && ./node_modules/.bin/prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
"start-build-do": "check-npm-client && node ${NODE_ARGS:---max_old_space_size=8192} build/bundle.js",
"start-build-fallback": "check-npm-client && BROWSERSLIST_ENV=defaults yarn run start-build-do",
"start-build-evergreen": "check-npm-client && BROWSERSLIST_ENV=evergreen yarn run start-build-do",
"start-build-if-desktop": "check-npm-client && node -e \"(process.env.CALYPSO_ENV === 'desktop' || process.env.CALYPSO_ENV === 'desktop-development') && process.exit(1)\" || yarn run start-build-fallback",
"start-build-if-web": "check-npm-client && node -e \"(process.env.CALYPSO_ENV !== 'desktop' && process.env.CALYPSO_ENV !== 'desktop-development') && process.exit(1)\" || yarn run start-build-web",
"start-build-web": "check-npm-client && run-p -s start-build-web-if-fallback start-build-web-if-evergreen",
"start-build-web-if-fallback": "check-npm-client && node -e \"process.env.DEV_TARGET === 'fallback' && process.exit(1)\" || yarn run start-build-fallback",
"start-build-web-if-evergreen": "check-npm-client && node -e \"(! process.env.DEV_TARGET || process.env.DEV_TARGET === 'evergreen') && process.exit(1)\" || yarn run start-build-evergreen",
"pretest": "check-npm-client && yarn run install-if-deps-outdated",
"test": "check-npm-client && run-s -s test-client test-packages test-server",
"pretest-client": "check-npm-client && yarn run -s pretest",
"test-client": "check-npm-client && jest -c=test/client/jest.config.js",
"test-client:watch": "check-npm-client && yarn run -s test-client --watch",
"test-e2e": "check-npm-client && cd test/e2e && yarn install --frozen-lockfile --ignore-scripts && yarn run test",
"encrypt-e2e-config": "check-npm-client && openssl enc -md sha1 -aes-256-cbc -pass env:CONFIG_KEY -out ./test/e2e/config/encrypted.enc -in ./test/e2e/config/local-$NODE_ENV.json",
"decrypt-e2e-config": "check-npm-client && openssl enc -md sha1 -aes-256-cbc -d -pass env:CONFIG_KEY -in ./test/e2e/config/encrypted.enc -out ./test/e2e/config/local-$NODE_ENV.json",
"pretest-integration": "check-npm-client && yarn run -s pretest",
"test-integration": "check-npm-client && jest -c=test/integration/jest.config.js",
"test-integration:watch": "check-npm-client && yarn run -s test-integration --watch",
"test-packages": "check-npm-client && jest -c=test/packages/jest.config.js",
"test-packages:watch": "check-npm-client && jest -c=test/packages/jest.config.js --watch",
"pretest-server": "check-npm-client && yarn run -s pretest",
"test-server": "check-npm-client && jest -c=test/server/jest.config.js",
"test-server:coverage": "check-npm-client && yarn run -s test-server --coverage",
"test-server:watch": "check-npm-client && yarn run -s test-server --watch",
"translate": "check-npm-client && i18n-calypso --format pot --output-file ./calypso-strings.pot -k translate,__,_x,_n,_nx -e date '**/*.js' '**/*.jsx' '**/*.ts' '**/*.tsx' '!build/**' '!packages/**/dist/**' '!public/**' '!**/test/**' '!node_modules/**' '!apps/full-site-editing/**' '!**/node_modules/**'",
"tsc": "check-npm-client && NODE_OPTIONS='--max-old-space-size=4096' tsc",
"typecheck": "check-npm-client && yarn run tsc --project client",
"update-deps": "check-npm-client && npx rimraf yarn.lock && yarn run distclean && PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install && replace --silent 'http://' 'https://' . --recursive --include='yarn.lock' && touch -m node_modules",
"validate-fallback-es5": "check-npm-client && npx eslint --parser-options=ecmaVersion:5 --no-eslintrc --no-ignore ./public/fallback/*.js",
"prewhybundled": "check-npm-client && NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run -s build-client-evergreen",
"whybundled": "check-npm-client && whybundled client/stats.json",
"composite-checkout-demo": "check-npm-client && webpack-dev-server --config ./packages/composite-checkout/webpack.config.demo.js --mode development",
"components:storybook:start": "check-npm-client && start-storybook -c packages/components/.storybook",
"media-library:storybook:start": "check-npm-client && start-storybook -c packages/media-library/.storybook -h calypso.localhost -p 3001"
},
"dependencies": {
"@automattic/babel-plugin-i18n-calypso": "^1.1.0",
"@automattic/babel-plugin-transform-wpcalypso-async": "^1.0.1",
"@automattic/calypso-analytics": "^1.0.0-alpha.1",
"@automattic/calypso-build": "^6.1.0",
"@automattic/calypso-color-schemes": "^2.1.1",
"@automattic/calypso-polyfills": "^1.0.0",
"@automattic/color-studio": "^2.3.0",
"@automattic/components": "^1.0.0-alpha.1",
"@automattic/composite-checkout": "^1.0.0",
"@automattic/data-stores": "^1.0.0-alpha.1",
"@automattic/effective-module-tree": "^0.1.0",
"@automattic/format-currency": "^1.0.0-alpha.0",
"@automattic/full-site-editing": "^1.5.0",
"@automattic/load-script": "^1.0.0",
"@automattic/material-design-icons": "^1.0.0",
"@automattic/media-library": "^1.0.0-alpha.0",
"@automattic/notifications": "^1.0.0",
"@automattic/o2-blocks": "^1.0.0",
"@automattic/react-i18n": "^1.0.0-alpha.0",
"@automattic/tree-select": "^1.0.3",
"@automattic/typography": "^1.0.0",
"@automattic/viewport": "^1.0.0",
"@automattic/viewport-react": "^1.0.0",
"@automattic/webpack-config-flag-plugin": "^1.0.0",
"@automattic/webpack-extensive-lodash-replacement-plugin": "^0.0.2",
"@automattic/webpack-inline-constant-exports-plugin": "^0.0.1",
"@automattic/wpcom-block-editor": "^1.0.0-alpha.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/register": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@signal-noise/stylelint-scales": "^1.3.0",
"@storybook/addon-actions": "^5.3.18",
"@storybook/preset-scss": "^1.0.2",
"@storybook/preset-typescript": "^1.2.2",
"@storybook/react": "^5.3.18",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^10.0.5",
"@types/classnames": "^2.2.10",
"@types/cookie": "^0.4.0",
"@types/debug": "^4.1.5",
"@types/fast-json-stable-stringify": "^2.0.0",
"@types/jest": "^25.2.1",
"@types/lodash": "^4.14.150",
"@types/page": "^1.8.0",
"@types/qs": "^6.9.1",
"@types/react": "^16.9.34",
"@types/react-modal": "^3.10.5",
"@types/react-redux": "^7.1.7",
"@types/react-router-dom": "^5.1.5",
"@types/react-transition-group": "^4.2.4",
"@types/uuid": "^8.0.0",
"@types/webpack-env": "^1.15.2",
"@types/wordpress__api-fetch": "^3.2.2",
"@types/wordpress__block-editor": "^2.2.7",
"@types/wordpress__block-library": "^2.6.0",
"@types/wordpress__components": "^8.5.3",
"@types/wordpress__compose": "^3.4.1",
"@types/wordpress__data": "^4.6.7",
"@types/wordpress__data-controls": "^1.0.2",
"@types/wordpress__editor": "^9.4.2",
"@types/wordpress__element": "^2.4.1",
"@types/wordpress__hooks": "^2.4.0",
"@types/wordpress__keycodes": "^2.3.0",
"@typescript-eslint/eslint-plugin": "^2.16.0",
"@typescript-eslint/parser": "^2.16.0",
"@wordpress/a11y": "^2.9.0",
"@wordpress/api-fetch": "^3.15.0",
"@wordpress/babel-plugin-makepot": "^3.5.0",
"@wordpress/base-styles": "^1.8.0",
"@wordpress/block-directory": "^1.9.0",
"@wordpress/block-editor": "^3.11.0",
"@wordpress/block-library": "^2.18.0",
"@wordpress/blocks": "^6.16.0",
"@wordpress/browserslist-config": "^2.6.0",
"@wordpress/components": "^9.6.0",
"@wordpress/compose": "^3.15.0",
"@wordpress/core-data": "^2.16.0",
"@wordpress/data": "^4.18.0",
"@wordpress/data-controls": "^1.12.0",
"@wordpress/dependency-extraction-webpack-plugin": "^2.6.0",
"@wordpress/dom": "^2.9.0",
"@wordpress/dom-ready": "^2.9.0",
"@wordpress/e2e-test-utils": "^4.7.0",
"@wordpress/edit-post": "^3.17.0",
"@wordpress/editor": "^9.16.0",
"@wordpress/element": "^2.14.0",
"@wordpress/env": "1.4.0",
"@wordpress/format-library": "^1.18.0",
"@wordpress/i18n": "^3.12.0",
"@wordpress/icons": "^2.0.0",
"@wordpress/is-shallow-equal": "^2.0.0",
"@wordpress/jest-preset-default": "^6.0.0",
"@wordpress/keyboard-shortcuts": "^1.5.0",
"@wordpress/keycodes": "^2.12.0",
"@wordpress/media-utils": "^1.11.0",
"@wordpress/notices": "^2.4.0",
"@wordpress/npm-package-json-lint-config": "^3.0.0",
"@wordpress/nux": "^3.16.0",
"@wordpress/plugins": "^2.16.0",
"@wordpress/primitives": "^1.5.0",
"@wordpress/priority-queue": "^1.6.0",
"@wordpress/redux-routine": "^3.9.0",
"@wordpress/rich-text": "^3.16.0",
"@wordpress/scripts": "^9.1.0",
"@wordpress/server-side-render": "^1.12.0",
"@wordpress/shortcode": "^2.7.0",
"@wordpress/url": "^2.15.0",
"@wordpress/viewport": "^2.17.0",
"acorn": "^7.1.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^26.0.1",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-dynamic-import-node": "^2.3.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"browserslist": "^4.12.0",
"calypso-codemods": "^0.1.6",
"caniuse-lite": "^1.0.30001041",
"capture-website": "^1.0.0",
"chai": "^4.2.0",
"chai-enzyme": "^1.0.0-beta.1",
"chalk": "^4.0.0",
"check-node-version": "^4.0.2",
"check-npm-client": "^1.1.1",
"chokidar-cli": "^2.1.0",
"chroma-js": "^2.1.0",
"circleci": "^0.3.3",
"circular-dependency-plugin": "^5.2.0",
"concurrently": "^5.1.0",
"cross-env": "^6.0.3",
"debug": "^4.1.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-wpcalypso": "^6.1.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-inclusive-language": "^1.2.0",
"eslint-plugin-jest": "^23.6.0",
"eslint-plugin-jsdoc": "^18.11.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-wpcalypso": "^4.1.0",
"exports-loader": "^0.7.0",
"fake-indexeddb": "^3.1.0",
"fork-ts-checker-webpack-plugin": "^3.1.1",
"gettext-parser": "^4.0.3",
"glob": "^7.1.6",
"globby": "^10.0.1",
"gzip-size": "^5.1.1",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.2.5",
"i18n-calypso": "^5.0.0",
"i18n-calypso-cli": "^1.0.0",
"ignore-loader": "^0.1.2",
"imports-loader": "^0.8.0",
"interpolate-components": "^1.1.1",
"is-number": "^7.0.0",
"jest": "^26.0.1",
"jest-docblock": "^26.0.0",
"jest-emotion": "^10.0.27",
"jest-enzyme": "^7.1.2",
"jest-fetch-mock": "^2.1.2",
"jest-junit": "^9.0.0",
"lerna": "^3.20.2",
"loader-utils": "^1.2.3",
"lodash": "^4.17.15",
"lunr": "^2.3.8",
"md5-file": "^4.0.0",
"micromatch": "^4.0.2",
"mixedindentlint": "^1.2.0",
"mkdirp": "^1.0.4",
"mock-fs": "^4.11.0",
"mockdate": "^2.0.5",
"moment-timezone": "^0.5.16",
"moment-timezone-data-webpack-plugin": "^1.3.0",
"ncp": "^2.0.0",
"nock": "^12.0.3",
"node-sass": "^4.13.0",
"node-sass-package-importer": "^5.3.2",
"npm-merge-driver": "^2.3.5",
"npm-package-json-lint": "^5.0.0",
"npm-run-all": "^4.1.5",
"photon": "^3.0.0",
"postcss-cli": "^6.1.3",
"prettier": "npm:wp-prettier@2.0.5",
"qs": "^6.9.1",
"react": "^16.12.0",
"react-docgen-typescript-loader": "^3.6.0",
"react-dom": "^16.12.0",
"react-test-renderer": "^16.12.0",
"readline-sync": "^1.4.10",
"replace": "^1.1.5",
"request": "^2.88.2",
"rimraf": "^3.0.0",
"sharp": "^0.25.3",
"sinon": "^9.0.2",
"sinon-chai": "^3.5.0",
"socket.io": "^2.3.0",
"source-map": "^0.7.3",
"source-map-loader": "^0.2.4",
"source-map-support": "^0.5.19",
"stackframe": "^1.1.0",
"stacktrace-gps": "^3.0.3",
"stylelint": "^9.10.1",
"supertest": "^4.0.2",
"svgstore-cli": "^1.3.1",
"terser": "^4.6.13",
"ts-loader": "^6.2.1",
"typescript": "^3.8.3",
"vfile-message": "^2.0.4",
"webpack": "^4.42.0",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-cli": "^3.3.11",
"webpack-dev-middleware": "^3.7.2",
"webpack-dev-server": "^3.10.3",
"webpack-hot-middleware": "^2.25.0",
"webpack-node-externals": "^2.1.0",
"whybundled": "^1.4.2",
"wp-calypso": "^0.17.0",
"wp-e2e-tests": "^0.0.1",
"wpcom": "^6.0.0",
"wpcom-proxy-request": "^6.0.0",
"yargs": "^15.3.1"
},
"optionalDependencies": {
"fsevents": "^2.1.2"
},
"husky": {
"hooks": {
"pre-commit": "yarn run -s install-if-no-packages && node bin/pre-commit-hook.js",
"pre-push": "yarn run -s install-if-no-packages && node bin/pre-push-hook.js"
}
}
}
1
https://gitee.com/xhua/wp-calypso.git
git@gitee.com:xhua/wp-calypso.git
xhua
wp-calypso
wp-calypso
master

搜索帮助