2018-02-13 19:03:53 +00:00
|
|
|
{
|
2019-09-05 15:09:31 +00:00
|
|
|
"name": "@woocommerce/block-library",
|
|
|
|
"title": "WooCommerce Blocks",
|
|
|
|
"author": "Automattic",
|
2022-01-20 13:39:19 +00:00
|
|
|
"version": "6.9.0-dev",
|
2019-09-05 15:09:31 +00:00
|
|
|
"description": "WooCommerce blocks for the Gutenberg editor.",
|
|
|
|
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
|
|
|
|
"keywords": [
|
|
|
|
"woocommerce",
|
|
|
|
"wordpress",
|
|
|
|
"blocks"
|
|
|
|
],
|
2019-12-11 14:58:49 +00:00
|
|
|
"sideEffects": [
|
|
|
|
"*.css",
|
2019-12-17 17:32:08 +00:00
|
|
|
"*.scss",
|
2020-06-05 12:18:16 +00:00
|
|
|
"./assets/js/atomic/blocks/**",
|
2020-03-27 20:56:48 +00:00
|
|
|
"./assets/js/filters/**",
|
2021-07-22 11:03:00 +00:00
|
|
|
"./assets/js/middleware/**",
|
2021-09-16 12:16:21 +00:00
|
|
|
"./assets/js/blocks/cart-checkout/checkout/inner-blocks/**/index.tsx",
|
2021-09-17 15:29:58 +00:00
|
|
|
"./assets/js/blocks/cart-checkout/checkout/inner-blocks/register-components.ts",
|
2021-10-25 14:46:34 +00:00
|
|
|
"./assets/js/blocks/cart-checkout/cart/inner-blocks/**/index.tsx",
|
|
|
|
"./assets/js/blocks/cart-checkout/cart/inner-blocks/register-components.ts"
|
2019-12-11 14:58:49 +00:00
|
|
|
],
|
2019-09-05 15:09:31 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com:woocommerce/woocommerce-gutenberg-products-block.git"
|
|
|
|
},
|
|
|
|
"license": "GPL-3.0+",
|
|
|
|
"scripts": {
|
2020-07-07 09:05:06 +00:00
|
|
|
"build": "rimraf build/* && cross-env BABEL_ENV=default NODE_ENV=production webpack",
|
2020-11-25 20:33:23 +00:00
|
|
|
"build:deploy": "rimraf vendor/* && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 composer install --no-dev && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 npm run build --loglevel error",
|
2020-02-11 17:23:23 +00:00
|
|
|
"build:e2e-test": "npm run build",
|
2020-04-06 09:00:47 +00:00
|
|
|
"build:map": "cross-env BABEL_ENV=default NODE_ENV=production FORCE_MAP=true webpack",
|
2021-10-13 09:45:59 +00:00
|
|
|
"build:docs": "./vendor/bin/wp-hooks-generator --input=src --output=bin/hook-docs/data && node ./bin/hook-docs",
|
2020-04-06 09:00:47 +00:00
|
|
|
"changelog": "node ./bin/changelog",
|
|
|
|
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
|
2020-07-22 16:36:55 +00:00
|
|
|
"deploy": "npm run build:deploy && sh ./bin/github-deploy.sh",
|
2021-06-21 09:58:57 +00:00
|
|
|
"postdeploy": "npm run storybook:deploy",
|
2020-07-07 09:05:06 +00:00
|
|
|
"dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
|
2020-04-06 09:00:47 +00:00
|
|
|
"explore": "source-map-explorer",
|
2020-11-27 20:41:36 +00:00
|
|
|
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/woocommerce-gutenberg-products-block",
|
|
|
|
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/woocommerce-gutenberg-products-block",
|
2020-12-28 10:41:46 +00:00
|
|
|
"fix-package-lock": "./bin/fix-package-lock.sh",
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
|
2020-04-06 09:00:47 +00:00
|
|
|
"lint:ci": "npm run lint:js && npm run lint:css",
|
2021-12-03 09:07:51 +00:00
|
|
|
"lint:css": "stylelint '**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint '**/*.scss' --fix",
|
2021-02-24 01:36:24 +00:00
|
|
|
"lint:js": "wp-scripts lint-js --ext=js,ts,tsx",
|
|
|
|
"lint:js:report": "npm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
|
|
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",
|
2020-04-06 09:00:47 +00:00
|
|
|
"lint:php": "composer run-script phpcs ./src",
|
2021-11-22 09:43:13 +00:00
|
|
|
"lint:php-fix": "composer run-script phpcbf ./src",
|
2020-11-25 20:33:23 +00:00
|
|
|
"package-plugin": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh",
|
|
|
|
"package-plugin:dev": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh -d",
|
|
|
|
"package-plugin:zip-only": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh -z",
|
2020-07-22 16:36:55 +00:00
|
|
|
"package-plugin:deploy": "npm run build:deploy && npm run package-plugin:zip-only",
|
2021-08-12 16:30:42 +00:00
|
|
|
"postinstall": "patch-package",
|
2019-09-05 15:09:31 +00:00
|
|
|
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
|
2020-04-06 09:00:47 +00:00
|
|
|
"release": "sh ./bin/wordpress-deploy.sh",
|
2021-04-08 12:31:12 +00:00
|
|
|
"start": "rimraf build/* && cross-env BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch --info-verbosity none",
|
2020-04-06 09:00:47 +00:00
|
|
|
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
|
2021-12-01 11:28:27 +00:00
|
|
|
"storybook:build": "BABEL_ENV=development build-storybook -c ./storybook -o ./storybook/dist",
|
2021-06-21 09:58:57 +00:00
|
|
|
"storybook:deploy": "rimraf ./storybook/dist/* && npm run storybook:build && gh-pages -d ./storybook/dist",
|
2019-09-05 15:09:31 +00:00
|
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
2020-09-07 17:31:10 +00:00
|
|
|
"test:e2e": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js",
|
|
|
|
"test:e2e-dev": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js --puppeteer-interactive",
|
|
|
|
"test:e2e:update": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js --updateSnapshot",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
2021-08-20 13:58:32 +00:00
|
|
|
"test:php": "npm run wp-env:phpunit-config",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
2020-06-17 20:28:11 +00:00
|
|
|
"test:watch": "npm run test -- --watch",
|
2021-02-24 01:36:24 +00:00
|
|
|
"ts:check": "tsc --build",
|
2020-06-17 20:28:11 +00:00
|
|
|
"wp-env": "wp-env",
|
2021-08-20 13:58:32 +00:00
|
|
|
"wp-env:config": "./bin/wp-env-pre-config.sh",
|
|
|
|
"wp-env:phpunit-config": "./bin/wp-env-phpunit-pre-config.sh"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-03-17 21:51:28 +00:00
|
|
|
"@automattic/color-studio": "2.5.0",
|
2022-01-12 03:27:51 +00:00
|
|
|
"@babel/cli": "7.16.8",
|
2022-01-26 02:21:51 +00:00
|
|
|
"@babel/core": "7.16.12",
|
2022-01-05 04:06:56 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
|
|
"@babel/plugin-syntax-jsx": "7.16.7",
|
2020-10-21 13:30:00 +00:00
|
|
|
"@babel/polyfill": "7.12.1",
|
2022-01-05 04:06:56 +00:00
|
|
|
"@babel/preset-typescript": "7.16.7",
|
2021-11-24 04:49:55 +00:00
|
|
|
"@octokit/graphql": "4.8.0",
|
2021-12-21 17:08:57 +00:00
|
|
|
"@storybook/addon-a11y": "6.4.9",
|
|
|
|
"@storybook/addon-essentials": "6.4.9",
|
|
|
|
"@storybook/addon-links": "6.4.9",
|
|
|
|
"@storybook/addon-storysource": "6.4.9",
|
|
|
|
"@storybook/addons": "6.4.9",
|
|
|
|
"@storybook/client-api": "6.4.9",
|
2022-01-21 12:09:07 +00:00
|
|
|
"@storybook/react": "6.4.13",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@testing-library/jest-dom": "5.15.1",
|
|
|
|
"@testing-library/react": "12.1.2",
|
|
|
|
"@testing-library/react-hooks": "7.0.2",
|
|
|
|
"@testing-library/user-event": "13.5.0",
|
2021-06-30 05:07:59 +00:00
|
|
|
"@types/classnames": "2.3.0",
|
2021-10-29 18:42:18 +00:00
|
|
|
"@types/dinero.js": "1.9.0",
|
2021-11-11 16:47:41 +00:00
|
|
|
"@types/gtag.js": "0.0.8",
|
2021-07-07 03:53:09 +00:00
|
|
|
"@types/jest": "26.0.24",
|
2022-01-19 17:05:05 +00:00
|
|
|
"@types/jquery": "3.5.13",
|
2021-12-29 04:05:36 +00:00
|
|
|
"@types/lodash": "4.14.178",
|
2021-11-17 04:41:35 +00:00
|
|
|
"@types/react": "16.14.21",
|
2022-01-26 02:32:45 +00:00
|
|
|
"@types/wordpress__block-editor": "6.0.5",
|
2021-12-08 05:51:31 +00:00
|
|
|
"@types/wordpress__compose": "4.0.1",
|
2021-07-26 14:05:09 +00:00
|
|
|
"@types/wordpress__data": "4.6.10",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@types/wordpress__data-controls": "2.2.0",
|
2021-07-27 17:25:35 +00:00
|
|
|
"@types/wordpress__deprecated": "2.4.3",
|
2021-04-28 02:58:03 +00:00
|
|
|
"@types/wordpress__keycodes": "2.3.1",
|
2021-02-24 04:45:58 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "4.14.1",
|
|
|
|
"@typescript-eslint/parser": "4.14.1",
|
2021-06-30 02:19:14 +00:00
|
|
|
"@woocommerce/api": "0.2.0",
|
2021-10-20 03:04:30 +00:00
|
|
|
"@woocommerce/e2e-utils": "0.1.6",
|
2021-06-30 02:22:03 +00:00
|
|
|
"@woocommerce/eslint-plugin": "1.2.0",
|
2020-06-05 16:49:07 +00:00
|
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
2021-12-15 03:18:45 +00:00
|
|
|
"@wordpress/api-fetch": "5.2.6",
|
2021-11-23 14:49:35 +00:00
|
|
|
"@wordpress/babel-preset-default": "6.4.1",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/base-styles": "4.0.4",
|
2022-01-21 12:09:07 +00:00
|
|
|
"@wordpress/blocks": "11.1.5",
|
2021-11-23 14:49:35 +00:00
|
|
|
"@wordpress/browserslist-config": "4.1.0",
|
2021-12-15 03:18:45 +00:00
|
|
|
"@wordpress/components": "19.1.5",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/data-controls": "2.2.7",
|
2021-08-05 09:26:00 +00:00
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "3.2.1",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/dom": "3.2.7",
|
2021-12-15 03:18:45 +00:00
|
|
|
"@wordpress/e2e-test-utils": "5.4.10",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/element": "4.0.4",
|
|
|
|
"@wordpress/env": "4.1.3",
|
|
|
|
"@wordpress/html-entities": "3.2.3",
|
|
|
|
"@wordpress/i18n": "4.2.4",
|
|
|
|
"@wordpress/is-shallow-equal": "4.2.1",
|
2021-12-10 16:44:03 +00:00
|
|
|
"@wordpress/scripts": "17.1.0",
|
2021-10-06 02:45:44 +00:00
|
|
|
"autoprefixer": "10.3.7",
|
2021-09-15 03:15:28 +00:00
|
|
|
"axios": "0.21.4",
|
2021-12-08 03:25:48 +00:00
|
|
|
"babel-plugin-react-docgen": "4.2.1",
|
2021-12-01 11:28:27 +00:00
|
|
|
"babel-plugin-transform-async-generator-functions": "6.24.1",
|
|
|
|
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
|
|
|
"babel-plugin-transform-react-jsx": "6.24.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
2021-08-04 02:38:44 +00:00
|
|
|
"chalk": "4.1.2",
|
2021-04-18 21:29:11 +00:00
|
|
|
"circular-dependency-plugin": "5.2.2",
|
2020-12-16 15:09:11 +00:00
|
|
|
"commander": "6.2.1",
|
2021-08-18 04:21:35 +00:00
|
|
|
"core-js": "3.16.2",
|
2020-02-24 12:52:24 +00:00
|
|
|
"create-file-webpack": "1.0.2",
|
2020-02-11 16:13:20 +00:00
|
|
|
"cross-env": "6.0.3",
|
2021-05-13 08:15:35 +00:00
|
|
|
"cssnano": "4.1.11",
|
2019-10-28 13:53:09 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2021-12-15 05:04:26 +00:00
|
|
|
"eslint-import-resolver-typescript": "2.5.0",
|
2021-11-09 14:27:57 +00:00
|
|
|
"eslint-import-resolver-webpack": "0.13.2",
|
2022-01-05 04:08:56 +00:00
|
|
|
"eslint-plugin-import": "2.25.4",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2022-01-21 12:09:07 +00:00
|
|
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
2021-12-29 02:41:54 +00:00
|
|
|
"expect-puppeteer": "6.0.2",
|
2022-01-21 12:09:07 +00:00
|
|
|
"follow-redirects": "1.14.7",
|
2021-01-20 07:43:44 +00:00
|
|
|
"fs-extra": "9.1.0",
|
2021-06-23 03:15:19 +00:00
|
|
|
"gh-pages": "3.2.3",
|
2022-01-21 12:09:07 +00:00
|
|
|
"github-label-sync": "2.0.2",
|
2021-06-09 02:02:49 +00:00
|
|
|
"glob": "7.1.7",
|
2020-06-17 13:11:13 +00:00
|
|
|
"glob-promise": "3.4.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"husky": "2.4.1",
|
|
|
|
"ignore-loader": "0.1.2",
|
2021-10-13 03:58:17 +00:00
|
|
|
"jest-circus": "27.2.4",
|
2020-09-07 17:31:10 +00:00
|
|
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
2021-12-29 04:07:31 +00:00
|
|
|
"jest-environment-puppeteer": "6.0.3",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-fetch-mock": "3.0.3",
|
2022-01-26 02:42:57 +00:00
|
|
|
"jest-html-reporters": "2.1.7",
|
2021-10-20 03:04:30 +00:00
|
|
|
"json2md": "1.12.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"lint-staged": "9.5.0",
|
2021-05-12 12:04:44 +00:00
|
|
|
"lodash": "4.17.21",
|
2022-01-21 12:09:07 +00:00
|
|
|
"markdown-it": "12.3.2",
|
2020-01-30 10:53:22 +00:00
|
|
|
"merge-config": "2.0.0",
|
2021-02-10 03:22:45 +00:00
|
|
|
"mini-css-extract-plugin": "1.3.6",
|
2021-08-18 02:22:59 +00:00
|
|
|
"patch-package": "6.4.7",
|
2022-01-12 13:11:30 +00:00
|
|
|
"postcss": "8.2.13",
|
2021-04-21 13:24:11 +00:00
|
|
|
"postcss-loader": "4.2.0",
|
2020-09-07 17:31:10 +00:00
|
|
|
"prettier": "npm:wp-prettier@2.0.5",
|
2020-07-07 09:05:06 +00:00
|
|
|
"progress-bar-webpack-plugin": "2.1.0",
|
2020-11-11 18:02:29 +00:00
|
|
|
"promptly": "3.2.0",
|
2021-12-08 03:25:48 +00:00
|
|
|
"react-docgen": "5.4.0",
|
2021-06-09 02:11:20 +00:00
|
|
|
"react-test-renderer": "17.0.2",
|
2020-07-23 13:42:26 +00:00
|
|
|
"request-promise": "4.2.6",
|
2020-07-08 01:10:23 +00:00
|
|
|
"rimraf": "3.0.2",
|
2021-01-07 12:40:00 +00:00
|
|
|
"sass-loader": "10.1.0",
|
2021-06-09 03:20:56 +00:00
|
|
|
"source-map-explorer": "2.5.2",
|
2021-12-08 03:25:48 +00:00
|
|
|
"storybook-addon-react-docgen": "1.2.42",
|
2021-06-29 11:18:29 +00:00
|
|
|
"terser-webpack-plugin": "3.0.3",
|
2021-02-24 04:45:58 +00:00
|
|
|
"typescript": "4.1.3",
|
2021-12-07 15:47:50 +00:00
|
|
|
"utility-types": "3.10.0",
|
2020-09-26 15:30:43 +00:00
|
|
|
"webpack": "4.44.2",
|
2020-08-24 08:33:41 +00:00
|
|
|
"webpack-cli": "3.3.12",
|
2019-09-05 15:09:31 +00:00
|
|
|
"webpack-rtl-plugin": "2.0.0",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2021-12-16 11:19:30 +00:00
|
|
|
"node": "^16.13.0",
|
|
|
|
"npm": "^8.0.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/autop": "3.2.3",
|
|
|
|
"@wordpress/deprecated": "3.2.3",
|
|
|
|
"@wordpress/icons": "6.1.1",
|
2022-01-21 12:09:07 +00:00
|
|
|
"@wordpress/notices": "3.2.8",
|
|
|
|
"@wordpress/plugins": "4.0.7",
|
|
|
|
"@wordpress/server-side-render": "3.0.17",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/wordcount": "3.2.3",
|
2021-06-30 05:07:59 +00:00
|
|
|
"classnames": "2.3.1",
|
2020-02-19 16:36:06 +00:00
|
|
|
"compare-versions": "3.6.0",
|
2022-01-19 03:53:40 +00:00
|
|
|
"config": "3.3.7",
|
2021-04-21 02:48:01 +00:00
|
|
|
"dataloader": "2.0.0",
|
2021-10-29 18:42:18 +00:00
|
|
|
"dinero.js": "1.9.1",
|
2021-09-22 04:00:47 +00:00
|
|
|
"downshift": "6.1.7",
|
2021-01-06 16:21:54 +00:00
|
|
|
"html-react-parser": "0.14.3",
|
2021-01-06 14:23:21 +00:00
|
|
|
"react-number-format": "4.4.3",
|
2021-11-24 02:14:41 +00:00
|
|
|
"reakit": "1.3.11",
|
2021-12-22 02:48:41 +00:00
|
|
|
"snakecase-keys": "5.1.2",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2021-11-26 14:47:37 +00:00
|
|
|
"use-debounce": "7.0.1",
|
2021-12-07 15:47:50 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@14.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.scss": [
|
|
|
|
"npm run lint:css"
|
|
|
|
],
|
2021-02-24 01:36:24 +00:00
|
|
|
"*.{js,ts,tsx}": [
|
2019-09-05 15:09:31 +00:00
|
|
|
"prettier --write",
|
|
|
|
"npm run lint:js"
|
|
|
|
],
|
|
|
|
"*.php": [
|
|
|
|
"php -d display_errors=1 -l",
|
|
|
|
"composer run-script phpcs"
|
|
|
|
]
|
|
|
|
},
|
2020-01-13 15:06:32 +00:00
|
|
|
"changelog": {
|
|
|
|
"labelPrefix": "type:",
|
|
|
|
"skipLabel": "skip-changelog",
|
|
|
|
"defaultPrefix": "dev",
|
2020-01-28 13:47:26 +00:00
|
|
|
"repo": "woocommerce/woocommerce-gutenberg-products-block"
|
2020-01-13 15:06:32 +00:00
|
|
|
},
|
2019-09-05 15:09:31 +00:00
|
|
|
"files": [
|
|
|
|
"assets/**/*.{js,scss,php}",
|
|
|
|
"build/**/*.{js,json,css}",
|
|
|
|
"includes/**/*.php",
|
|
|
|
"languages/**/*.json",
|
|
|
|
"license.txt",
|
|
|
|
"woocommerce-gutenberg-products-block.php"
|
|
|
|
]
|
2020-06-17 13:10:46 +00:00
|
|
|
}
|