2018-04-17 21:03:14 +00:00
|
|
|
{
|
2020-02-14 02:23:21 +00:00
|
|
|
"name": "@woocommerce/admin-library",
|
2022-03-03 12:41:01 +00:00
|
|
|
"version": "3.4.0-dev",
|
2020-02-14 02:23:21 +00:00
|
|
|
"homepage": "https://woocommerce.github.io/woocommerce-admin/",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com:woocommerce/woocommerce-admin.git"
|
|
|
|
},
|
|
|
|
"license": "GPL-3.0-or-later",
|
|
|
|
"author": "Automattic",
|
|
|
|
"files": [
|
|
|
|
"dist/**/*.css",
|
|
|
|
"dist/**/*.js",
|
|
|
|
"dist/feature-config-core.php",
|
|
|
|
"includes/class-wc-admin-loader.php",
|
|
|
|
"includes/features/**/*.php",
|
|
|
|
"languages/**/*.json",
|
|
|
|
"license.txt"
|
|
|
|
],
|
|
|
|
"scripts": {
|
2022-03-04 04:01:16 +00:00
|
|
|
"preinstall": "npx only-allow pnpm",
|
|
|
|
"prebuild": "pnpm run install-if-deps-outdated",
|
|
|
|
"run:packages": "pnpm run --filter ./packages",
|
|
|
|
"build": "pnpm run build:feature-config && pnpm run build:packages && cross-env NODE_ENV=production webpack",
|
2020-04-29 18:01:27 +00:00
|
|
|
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
|
2022-03-04 04:01:16 +00:00
|
|
|
"postbuild": "pnpm run -s i18n:pot && pnpm run -s i18n:build",
|
2020-02-14 02:23:21 +00:00
|
|
|
"build:feature-config": "php bin/generate-feature-config.php",
|
2022-03-04 04:01:16 +00:00
|
|
|
"build:packages": "cross-env NODE_ENV=production pnpm run:packages -- build",
|
2020-02-14 02:23:21 +00:00
|
|
|
"build:release": "./bin/build-plugin-zip.sh",
|
2022-03-04 04:01:16 +00:00
|
|
|
"clean": "rimraf ./dist && pnpm run:packages -- clean --parallel",
|
|
|
|
"predev": "pnpm run -s install-if-deps-outdated && php ./bin/update-version.php",
|
|
|
|
"dev": "cross-env WC_ADMIN_PHASE=development pnpm run build:feature-config && cross-env WC_ADMIN_PHASE=development pnpm run build:packages && cross-env WC_ADMIN_PHASE=development webpack",
|
2022-03-07 05:39:48 +00:00
|
|
|
"docs": "./bin/import-wp-css-storybook.sh && BABEL_ENV=storybook STORYBOOK=true pnpm exec build-storybook -c storybook/.storybook -o ./docs/components/storybook",
|
2022-03-04 04:01:16 +00:00
|
|
|
"i18n": "pnpm run -s i18n:js && pnpm run -s i18n:check && pnpm run -s i18n:pot && pnpm run -s i18n:build",
|
2020-02-14 02:23:21 +00:00
|
|
|
"i18n:build": "php bin/combine-pot-files.php languages/woocommerce-admin.po languages/woocommerce-admin.pot",
|
|
|
|
"i18n:check": "grunt checktextdomain",
|
2022-03-04 04:01:16 +00:00
|
|
|
"i18n:js": "pnpm run clean && cross-env NODE_ENV=production babel client packages -o /dev/null",
|
2020-02-14 02:23:21 +00:00
|
|
|
"i18n:json": "./bin/make-i18n-json.sh",
|
|
|
|
"i18n:pot": "grunt makepot",
|
|
|
|
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
|
|
|
|
"install-if-no-packages": "node bin/install-if-no-packages.js",
|
2020-12-30 20:36:29 +00:00
|
|
|
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/woocommerce-admin",
|
|
|
|
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/woocommerce-admin",
|
2022-03-04 04:01:16 +00:00
|
|
|
"lint": "pnpm run lint:js && pnpm run lint:css",
|
2020-02-14 02:23:21 +00:00
|
|
|
"lint:css": "stylelint '**/*.scss'",
|
2021-01-22 21:38:55 +00:00
|
|
|
"lint:css-fix": "stylelint '**/*.scss' --fix --ip 'storybook/wordpress'",
|
2021-03-01 03:01:22 +00:00
|
|
|
"lint:js": "wp-scripts lint-js ./packages ./client --ext=js,ts,tsx",
|
|
|
|
"lint:js:packages": "wp-scripts lint-js ./packages --ext=js,ts,tsx",
|
|
|
|
"lint:js:client": "wp-scripts lint-js ./client --ext=js,ts,tsx",
|
2022-03-04 04:01:16 +00:00
|
|
|
"lint:js-fix": "pnpm run lint:js --fix --ext=js,ts,tsx",
|
2020-02-14 02:23:21 +00:00
|
|
|
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
|
|
|
|
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
|
2022-03-01 04:19:07 +00:00
|
|
|
"ts:check": "tsc --build ./tsconfig.json",
|
|
|
|
"ts:check:watch": "npm run ts:check -- --watch",
|
2020-07-28 02:32:58 +00:00
|
|
|
"reformat-files": "wp-scripts format-js -- --ignore-path .eslintignore",
|
2022-03-04 04:01:16 +00:00
|
|
|
"prepack": "pnpm install && pnpm run lint && pnpm run test && cross-env WC_ADMIN_PHASE=core pnpm run build",
|
|
|
|
"publish-packages:check": "pnpm run build:packages && pnpm publish --dry-run --filter ./packages --publish-branch main --report-summary && cat pnpm-publish-summary.json && rm pnpm-publish-summary.json",
|
|
|
|
"publish-packages:dev": "pnpm run build:packages && pnpm publish --filter ./packages --publish-branch main --tag next",
|
|
|
|
"publish-packages:prod": "pnpm run build:packages && pnpm publish --filter ./packages --publish-branch main",
|
|
|
|
"prestart": "pnpm run install-if-deps-outdated",
|
|
|
|
"start": "cross-env WC_ADMIN_PHASE=development pnpm run build:packages && cross-env WC_ADMIN_PHASE=development pnpm run build:feature-config && concurrently \"cross-env WC_ADMIN_PHASE=development webpack --watch\" \"cross-env WC_ADMIN_PHASE=development pnpm run:packages -- start --parallel\"",
|
|
|
|
"start:package": "pnpm run:packages -- start --parallel",
|
|
|
|
"pretest": "pnpm run -s install-if-no-packages",
|
2022-03-01 04:19:07 +00:00
|
|
|
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --config client/jest.config.js --watch --runInBand --no-cache",
|
|
|
|
"test:client": "jest --config client/jest.config.js",
|
2022-03-04 04:01:16 +00:00
|
|
|
"test:packages": "pnpm run:packages -- test",
|
|
|
|
"test": "pnpm run:packages -- build && pnpm run test:client && pnpm run:packages -- test:nobuild",
|
|
|
|
"test:e2e": "pnpm run build && test -z \"$(docker ps | grep woocommerce-admin-e2e)\" || pnpm exec wc-e2e docker:down && pnpm run e2e:docker-up && pnpm exec wc-e2e test:e2e",
|
|
|
|
"e2e:docker-up": "WC_E2E_FOLDER=../../../ pnpm exec wc-e2e docker:up ./tests/e2e/docker/initialize.sh",
|
|
|
|
"test-staged": "pnpm run test:client -- --bail --findRelatedTests",
|
2020-02-14 02:23:21 +00:00
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
2021-02-18 01:06:54 +00:00
|
|
|
"test:php": "docker-compose -f docker/wc-admin-php-test-suite/docker-compose.yml run --rm phpunit",
|
|
|
|
"posttest:php": "docker-compose -f docker/wc-admin-php-test-suite/docker-compose.yml down",
|
2022-03-01 04:19:07 +00:00
|
|
|
"postinstall": "patch-package",
|
2022-03-04 04:01:16 +00:00
|
|
|
"test:update-snapshots": "pnpm run test:client -- --updateSnapshot && pnpm run --filter @woocommerce/components test:update-snapshots",
|
|
|
|
"test:watch": "tsc --build || concurrently \"pnpm run test:client -- --watch\" \"pnpm run:packages -- test:nobuild --parallel -- --watch\"",
|
|
|
|
"test:zip": "pnpm run clean && composer i && ./bin/build-test-zip.sh",
|
2020-02-14 02:23:21 +00:00
|
|
|
"example": "webpack --config docs/examples/extensions/examples.config.js --watch",
|
|
|
|
"pre-release": "./bin/pre-release.sh",
|
2020-02-24 02:25:26 +00:00
|
|
|
"create-wc-extension": "node ./bin/starter-pack/starter-pack.js",
|
2022-03-04 04:01:16 +00:00
|
|
|
"storybook": "./bin/import-wp-css-storybook.sh && BABEL_ENV=storybook STORYBOOK=true start-storybook -c ./storybook/.storybook -p 6007 --ci",
|
|
|
|
"storybook-rtl": "USE_RTL_STYLE=true pnpm run storybook",
|
2021-06-02 03:54:00 +00:00
|
|
|
"build-storybook": "build-storybook -c ./storybook/.storybook",
|
|
|
|
"changelog": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
|
2022-03-04 04:01:16 +00:00
|
|
|
"bump-version": "pnpm run -s install-if-deps-outdated && php ./bin/update-version.php",
|
2021-03-17 00:27:26 +00:00
|
|
|
"wp-env-mysql-port": "node ./docker/wc-admin-wp-env/mysql-port.js",
|
2021-07-09 02:03:51 +00:00
|
|
|
"create-hook-reference": "node ./bin/hook-reference/index.js",
|
2021-08-27 20:47:16 +00:00
|
|
|
"changelogger": "./vendor/bin/changelogger",
|
|
|
|
"test-instruction-logger": "./bin/test-instruction-logger/bin/test-instruction-logger"
|
2020-03-12 21:21:11 +00:00
|
|
|
},
|
2020-02-14 02:23:21 +00:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged",
|
2020-10-02 04:38:13 +00:00
|
|
|
"pre-push": "node bin/pre-push-hook.js"
|
2020-02-14 02:23:21 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-03-08 02:11:12 +00:00
|
|
|
"@automattic/explat-client": "^0.0.3",
|
|
|
|
"@automattic/explat-client-react-helpers": "^0.0.3",
|
|
|
|
"@automattic/interpolate-components": "^1.2.0",
|
|
|
|
"@react-spring/web": "^9.4.3",
|
|
|
|
"@woocommerce/api": "^0.2.0",
|
|
|
|
"@woocommerce/e2e-environment": "^0.3.0",
|
|
|
|
"@woocommerce/e2e-utils": "^0.2.0",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@wordpress/a11y": "^2.15.3",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/api-fetch": "^6.0.1",
|
|
|
|
"@wordpress/base-styles": "^3.6.0",
|
|
|
|
"@wordpress/components": "^19.5.0",
|
|
|
|
"@wordpress/compose": "^5.1.2",
|
|
|
|
"@wordpress/core-data": "^4.1.2",
|
|
|
|
"@wordpress/data": "^6.3.0",
|
|
|
|
"@wordpress/data-controls": "^2.3.2",
|
|
|
|
"@wordpress/date": "^4.3.1",
|
|
|
|
"@wordpress/dom": "^3.3.2",
|
|
|
|
"@wordpress/dom-ready": "^3.3.1",
|
|
|
|
"@wordpress/element": "^4.1.1",
|
|
|
|
"@wordpress/hooks": "^2.12.3",
|
|
|
|
"@wordpress/html-entities": "^3.3.1",
|
|
|
|
"@wordpress/i18n": "^4.3.1",
|
|
|
|
"@wordpress/icons": "^6.3.0",
|
|
|
|
"@wordpress/keycodes": "^3.3.1",
|
|
|
|
"@wordpress/notices": "^3.3.2",
|
|
|
|
"@wordpress/plugins": "^4.1.3",
|
|
|
|
"@wordpress/primitives": "^3.1.1",
|
|
|
|
"@wordpress/url": "^3.4.1",
|
|
|
|
"@wordpress/viewport": "^4.1.2",
|
|
|
|
"@wordpress/warning": "^2.3.1",
|
|
|
|
"classnames": "^2.3.1",
|
|
|
|
"core-js": "^3.21.1",
|
|
|
|
"debug": "^4.3.3",
|
|
|
|
"dompurify": "^2.3.6",
|
|
|
|
"github-label-sync": "^2.0.2",
|
|
|
|
"gridicons": "^3.4.0",
|
2022-03-07 04:09:26 +00:00
|
|
|
"grapheme-splitter": "^1.0.4",
|
2022-03-08 02:11:12 +00:00
|
|
|
"history": "^4.10.1",
|
2022-03-04 04:01:16 +00:00
|
|
|
"lodash": "^4.17.21",
|
2022-03-08 02:11:12 +00:00
|
|
|
"memize": "^1.1.0",
|
|
|
|
"memoize-one": "^5.2.1",
|
|
|
|
"qs": "^6.10.3",
|
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dates": "^17.2.0",
|
|
|
|
"react-dom": "^17.0.2",
|
|
|
|
"react-router-dom": "^5.3.0",
|
|
|
|
"react-transition-group": "^4.4.2",
|
|
|
|
"react-visibility-sensor": "^5.1.1",
|
|
|
|
"redux": "^4.1.2",
|
|
|
|
"typescript": "^4.6.2"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-03-08 02:11:12 +00:00
|
|
|
"@automattic/color-studio": "^2.5.0",
|
|
|
|
"@automattic/mini-css-extract-plugin-with-rtl": "^0.8.0",
|
|
|
|
"@babel/cli": "^7.17.6",
|
|
|
|
"@babel/core": "^7.17.5",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
|
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@babel/plugin-transform-async-to-generator": "^7.16.8",
|
|
|
|
"@babel/plugin-transform-react-jsx": "^7.17.3",
|
|
|
|
"@babel/preset-env": "^7.16.11",
|
|
|
|
"@babel/preset-typescript": "^7.16.7",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@babel/runtime": "^7.17.2",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@octokit/core": "^3.5.1",
|
|
|
|
"@storybook/addon-a11y": "^6.4.19",
|
|
|
|
"@storybook/addon-actions": "^6.4.19",
|
|
|
|
"@storybook/addon-console": "^1.2.3",
|
|
|
|
"@storybook/addon-docs": "^6.4.19",
|
|
|
|
"@storybook/addon-knobs": "^6.4.0",
|
|
|
|
"@storybook/addon-links": "^6.4.19",
|
|
|
|
"@storybook/addon-storysource": "^6.4.19",
|
|
|
|
"@storybook/addon-viewport": "^6.4.19",
|
|
|
|
"@storybook/addons": "^6.4.19",
|
|
|
|
"@storybook/api": "^6.4.19",
|
|
|
|
"@storybook/components": "^6.4.19",
|
|
|
|
"@storybook/core-events": "^6.4.19",
|
|
|
|
"@storybook/react": "^6.4.19",
|
|
|
|
"@storybook/theming": "^6.4.19",
|
|
|
|
"@testing-library/dom": "^8.11.3",
|
|
|
|
"@testing-library/jest-dom": "^5.16.2",
|
|
|
|
"@testing-library/react": "^12.1.3",
|
|
|
|
"@testing-library/react-hooks": "^7.0.2",
|
|
|
|
"@testing-library/user-event": "^13.5.0",
|
|
|
|
"@types/cookie": "^0.4.1",
|
|
|
|
"@types/dompurify": "^2.3.3",
|
|
|
|
"@types/expect-puppeteer": "^4.4.7",
|
|
|
|
"@types/history": "^4.7.11",
|
|
|
|
"@types/jest": "^26.0.24",
|
|
|
|
"@types/lodash": "^4.14.179",
|
|
|
|
"@types/puppeteer": "^4.0.2",
|
|
|
|
"@types/react-router-dom": "^5.3.3",
|
|
|
|
"@types/react-transition-group": "^4.4.4",
|
|
|
|
"@types/wordpress__components": "^19.3.0",
|
|
|
|
"@types/wordpress__data-controls": "^2.2.0",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
|
|
"@typescript-eslint/parser": "^4.33.0",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@woocommerce/admin-e2e-tests": "workspace:*",
|
|
|
|
"@woocommerce/components": "workspace:*",
|
|
|
|
"@woocommerce/csv-export": "workspace:*",
|
|
|
|
"@woocommerce/currency": "workspace:*",
|
|
|
|
"@woocommerce/customer-effort-score": "workspace:*",
|
|
|
|
"@woocommerce/data": "workspace:*",
|
|
|
|
"@woocommerce/date": "workspace:*",
|
|
|
|
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
|
|
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
|
|
|
"@woocommerce/experimental": "workspace:*",
|
|
|
|
"@woocommerce/explat": "workspace:*",
|
|
|
|
"@woocommerce/js-tests": "workspace:*",
|
|
|
|
"@woocommerce/navigation": "workspace:*",
|
|
|
|
"@woocommerce/notices": "workspace:*",
|
|
|
|
"@woocommerce/number": "workspace:*",
|
|
|
|
"@woocommerce/onboarding": "workspace:*",
|
|
|
|
"@woocommerce/style-build": "workspace:*",
|
|
|
|
"@woocommerce/tracks": "workspace:*",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/babel-plugin-makepot": "^2.1.3",
|
2022-02-21 02:34:25 +00:00
|
|
|
"@wordpress/babel-preset-default": "^6.5.1",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/browserslist-config": "^4.1.1",
|
|
|
|
"@wordpress/custom-templated-path-webpack-plugin": "^1.7.0",
|
|
|
|
"@wordpress/e2e-test-utils": "^4.16.1",
|
|
|
|
"@wordpress/eslint-plugin": "^8.0.2",
|
|
|
|
"@wordpress/jest-preset-default": "^8.0.1",
|
|
|
|
"@wordpress/postcss-plugins-preset": "^1.6.0",
|
|
|
|
"@wordpress/postcss-themes": "^1.0.5",
|
|
|
|
"@wordpress/prettier-config": "^0.4.0",
|
|
|
|
"@wordpress/scripts": "^12.6.1",
|
|
|
|
"autoprefixer": "^10.4.2",
|
|
|
|
"await-exec": "^0.1.2",
|
|
|
|
"babel-jest": "^26.6.3",
|
|
|
|
"babel-loader": "^8.2.3",
|
|
|
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
|
|
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
|
|
|
|
"chalk": "^4.1.2",
|
|
|
|
"comment-parser": "^1.3.0",
|
|
|
|
"concurrently": "^5.3.0",
|
|
|
|
"config": "^3.3.7",
|
|
|
|
"copy-webpack-plugin": "^5.1.2",
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
"css-loader": "^3.6.0",
|
|
|
|
"docsify-cli": "^4.4.3",
|
2022-03-04 04:01:16 +00:00
|
|
|
"eslint": "^7.32.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
|
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
|
|
"eslint-plugin-import": "^2.25.4",
|
|
|
|
"eslint-plugin-react": "^7.29.2",
|
|
|
|
"fork-ts-checker-webpack-plugin": "^6.5.0",
|
|
|
|
"fs-extra": "^8.1.0",
|
|
|
|
"grunt": "^1.4.1",
|
|
|
|
"grunt-checktextdomain": "^1.0.1",
|
|
|
|
"grunt-wp-i18n": "^1.0.3",
|
|
|
|
"husky": "^4.3.8",
|
|
|
|
"jest": "^27.5.1",
|
|
|
|
"jest-environment-jsdom": "~27.0.6",
|
|
|
|
"jest-environment-node": "^27.5.1",
|
|
|
|
"lint-staged": "^10.5.4",
|
|
|
|
"md5": "^2.3.0",
|
|
|
|
"merge-config": "^2.0.0",
|
|
|
|
"moment": "^2.29.1",
|
|
|
|
"moment-timezone": "^0.5.34",
|
|
|
|
"moment-timezone-data-webpack-plugin": "^1.5.0",
|
|
|
|
"node-watch": "^0.7.3",
|
2022-03-01 04:19:07 +00:00
|
|
|
"patch-package": "^6.4.7",
|
2022-03-08 02:11:12 +00:00
|
|
|
"postcss": "^8.4.7",
|
|
|
|
"postcss-color-function": "^4.1.0",
|
|
|
|
"postcss-loader": "^3.0.0",
|
|
|
|
"prettier": "npm:wp-prettier@^2.2.1-beta-1",
|
|
|
|
"promptly": "^3.2.0",
|
|
|
|
"prop-types": "^15.8.1",
|
|
|
|
"puppeteer": "^2.0.0",
|
|
|
|
"raw-loader": "^4.0.2",
|
|
|
|
"readline-sync": "^1.4.10",
|
|
|
|
"replace": "^1.2.1",
|
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"rtlcss": "^2.6.2",
|
|
|
|
"sass": "^1.49.9",
|
|
|
|
"sass-loader": "^10.2.1",
|
|
|
|
"style-loader": "^0.23.1",
|
|
|
|
"stylelint": "^9.10.1",
|
|
|
|
"stylelint-config-wordpress": "^13.1.0",
|
|
|
|
"terser-webpack-plugin": "^2.3.8",
|
|
|
|
"ts-jest": "^27.1.3",
|
|
|
|
"url-loader": "^1.1.2",
|
|
|
|
"webpack": "^4.46.0",
|
|
|
|
"webpack-bundle-analyzer": "^3.9.0",
|
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
|
"webpack-fix-style-only-entries": "^0.6.1",
|
|
|
|
"webpack-rtl-plugin": "^2.0.0"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2021-06-09 00:55:21 +00:00
|
|
|
"node": ">=12.20.1 <15",
|
2022-03-04 04:01:16 +00:00
|
|
|
"pnpm": "^6.24.2"
|
2020-02-14 02:23:21 +00:00
|
|
|
}
|
2021-02-23 00:09:59 +00:00
|
|
|
}
|