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",
|
2020-07-02 13:51:05 +00:00
|
|
|
"version": "2.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/**",
|
2020-05-12 21:46:43 +00:00
|
|
|
"./assets/js/settings/blocks/**",
|
|
|
|
"./assets/js/middleware/**"
|
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": {
|
|
|
|
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
|
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",
|
|
|
|
"changelog": "node ./bin/changelog",
|
|
|
|
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
|
2020-06-05 19:13:51 +00:00
|
|
|
"deploy": "cross-env WOOCOMMERCE_BLOCKS_PHASE=2 composer install --no-dev && npm run build --loglevel error && sh ./bin/github-deploy.sh",
|
2020-03-09 01:59:31 +00:00
|
|
|
"dev": "cross-env BABEL_ENV=default webpack",
|
2020-04-06 09:00:47 +00:00
|
|
|
"explore": "source-map-explorer",
|
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",
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint:css": "stylelint 'assets/**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
|
2020-02-28 21:54:07 +00:00
|
|
|
"lint:js": "wp-scripts lint-js",
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx --fix",
|
2020-04-06 09:00:47 +00:00
|
|
|
"lint:php": "composer run-script phpcs ./src",
|
2019-09-05 15:09:31 +00:00
|
|
|
"package-plugin": "./bin/build-plugin-zip.sh",
|
2020-03-09 01:59:31 +00:00
|
|
|
"package-plugin:dev": "./bin/build-plugin-zip.sh -d",
|
|
|
|
"package-plugin:zip-only": "./bin/build-plugin-zip.sh -z",
|
2020-03-31 10:47:40 +00:00
|
|
|
"phpunit": "docker-compose up -d db && docker-compose up -d --build wordpress-unit-tests && docker exec -it --workdir /var/www/html/wp-content/plugins/woocommerce-gutenberg-products-block wordpress_test php ./vendor/bin/phpunit",
|
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",
|
|
|
|
"start": "cross-env BABEL_ENV=default webpack --watch --info-verbosity none",
|
|
|
|
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
|
|
|
|
"storybook:build": "build-storybook -c ./storybook -o ./storybook/dist",
|
2019-09-05 15:09:31 +00:00
|
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
2020-06-17 20:28:11 +00:00
|
|
|
"test:e2e": "npm run wp-env:config && ./tests/bin/e2e-test-integration.js",
|
|
|
|
"test:e2e-dev": "npm run wp-env:config && ./tests/bin/e2e-test-integration.js --dev",
|
|
|
|
"test:e2e:update": "npm run wp-env:config && ./tests/bin/e2e-test-integration.js -- --updateSnapshot",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
|
|
|
"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",
|
|
|
|
"wp-env": "wp-env",
|
|
|
|
"wp-env:config": "./bin/wp-env-pre-config.sh"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-07-02 05:53:31 +00:00
|
|
|
"@babel/cli": "7.10.4",
|
|
|
|
"@babel/core": "7.10.4",
|
|
|
|
"@babel/plugin-proposal-class-properties": "7.10.4",
|
|
|
|
"@babel/polyfill": "7.10.4",
|
|
|
|
"@babel/preset-env": "7.10.4",
|
2020-06-17 13:11:42 +00:00
|
|
|
"@octokit/graphql": "4.5.1",
|
2020-04-02 13:47:50 +00:00
|
|
|
"@storybook/addon-a11y": "5.3.18",
|
|
|
|
"@storybook/addon-actions": "5.3.18",
|
|
|
|
"@storybook/addon-docs": "5.3.18",
|
|
|
|
"@storybook/addon-knobs": "5.3.18",
|
|
|
|
"@storybook/addon-links": "5.3.18",
|
|
|
|
"@storybook/addon-storysource": "5.3.18",
|
|
|
|
"@storybook/addon-viewport": "5.3.18",
|
|
|
|
"@storybook/addons": "5.3.18",
|
|
|
|
"@storybook/react": "5.3.18",
|
2020-07-02 05:50:43 +00:00
|
|
|
"@testing-library/jest-dom": "5.11.0",
|
2020-06-25 08:46:46 +00:00
|
|
|
"@testing-library/react": "10.4.3",
|
2020-05-20 13:29:11 +00:00
|
|
|
"@types/jest": "25.2.3",
|
2020-07-01 14:10:16 +00:00
|
|
|
"@types/react": "16.9.41",
|
2020-04-29 09:53:21 +00:00
|
|
|
"@types/wordpress__data": "4.6.7",
|
2020-04-29 09:23:55 +00:00
|
|
|
"@types/wordpress__element": "2.4.1",
|
2020-06-05 16:49:07 +00:00
|
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
2020-02-10 22:02:09 +00:00
|
|
|
"@wordpress/babel-preset-default": "4.10.0",
|
|
|
|
"@wordpress/base-styles": "1.4.0",
|
|
|
|
"@wordpress/blocks": "6.12.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"@wordpress/browserslist-config": "2.6.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"@wordpress/components": "8.5.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"@wordpress/data-controls": "1.6.0",
|
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "2.1.0",
|
2020-06-16 12:18:34 +00:00
|
|
|
"@wordpress/e2e-test-utils": "4.3.1",
|
2020-02-24 12:52:24 +00:00
|
|
|
"@wordpress/editor": "9.10.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"@wordpress/element": "2.10.0",
|
2020-06-25 10:28:06 +00:00
|
|
|
"@wordpress/env": "1.5.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"@wordpress/eslint-plugin": "3.3.0",
|
|
|
|
"@wordpress/html-entities": "2.5.0",
|
|
|
|
"@wordpress/i18n": "3.8.0",
|
|
|
|
"@wordpress/is-shallow-equal": "1.7.0",
|
2020-06-25 10:28:06 +00:00
|
|
|
"@wordpress/jest-console": "3.6.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"@wordpress/jest-preset-default": "5.3.1",
|
2020-01-30 12:16:52 +00:00
|
|
|
"@wordpress/scripts": "6.2.0",
|
2020-07-02 05:59:02 +00:00
|
|
|
"autoprefixer": "9.8.4",
|
2020-06-17 13:11:13 +00:00
|
|
|
"axios": "0.19.2",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-core": "7.0.0-bridge.0",
|
2020-02-26 12:46:04 +00:00
|
|
|
"babel-eslint": "10.1.0",
|
2020-04-02 14:10:55 +00:00
|
|
|
"babel-loader": "8.1.0",
|
2019-09-05 15:09:31 +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",
|
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
|
|
"babel-plugin-transform-runtime": "6.23.0",
|
2019-12-10 17:17:46 +00:00
|
|
|
"chalk": "3.0.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"clean-webpack-plugin": "3.0.0",
|
2020-02-12 15:43:36 +00:00
|
|
|
"commander": "4.1.1",
|
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",
|
2020-07-01 14:06:14 +00:00
|
|
|
"css-loader": "3.6.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"cssnano": "4.1.10",
|
2019-10-28 13:53:09 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2019-12-25 11:44:47 +00:00
|
|
|
"eslint": "6.8.0",
|
2020-04-22 10:06:13 +00:00
|
|
|
"eslint-config-prettier": "6.11.0",
|
2020-06-11 20:12:57 +00:00
|
|
|
"eslint-plugin-jest": "23.13.2",
|
2020-05-13 09:30:16 +00:00
|
|
|
"eslint-plugin-react-hooks": "4.0.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2020-06-17 13:11:13 +00:00
|
|
|
"fs-extra": "9.0.1",
|
|
|
|
"glob-promise": "3.4.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"husky": "2.4.1",
|
|
|
|
"ignore-loader": "0.1.2",
|
2020-05-06 09:58:56 +00:00
|
|
|
"jest": "25.5.4",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-fetch-mock": "3.0.3",
|
2020-02-12 15:55:38 +00:00
|
|
|
"jest-puppeteer": "4.4.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"lint-staged": "9.5.0",
|
2020-01-30 10:53:22 +00:00
|
|
|
"merge-config": "2.0.0",
|
2019-12-25 11:44:36 +00:00
|
|
|
"mini-css-extract-plugin": "0.9.0",
|
2020-05-06 09:20:07 +00:00
|
|
|
"node-sass": "4.14.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"postcss-loader": "3.0.0",
|
2019-12-10 17:17:46 +00:00
|
|
|
"prettier": "npm:wp-prettier@1.19.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"progress-bar-webpack-plugin": "1.12.1",
|
|
|
|
"promptly": "3.0.3",
|
2020-02-19 16:36:23 +00:00
|
|
|
"puppeteer": "2.1.1",
|
2020-03-04 12:59:53 +00:00
|
|
|
"react-test-renderer": "16.13.0",
|
2019-11-27 09:36:34 +00:00
|
|
|
"request-promise": "4.2.5",
|
2020-02-19 16:34:39 +00:00
|
|
|
"rimraf": "3.0.2",
|
2019-09-05 15:09:31 +00:00
|
|
|
"sass-loader": "7.3.1",
|
2020-04-08 10:20:22 +00:00
|
|
|
"source-map-explorer": "2.4.2",
|
2020-01-02 08:47:54 +00:00
|
|
|
"stylelint": "12.0.1",
|
2019-12-10 17:17:46 +00:00
|
|
|
"stylelint-config-wordpress": "13.1.0",
|
2020-03-12 10:01:27 +00:00
|
|
|
"typescript": "3.8.3",
|
2020-03-12 10:32:03 +00:00
|
|
|
"webpack": "4.42.0",
|
2020-03-12 10:01:53 +00:00
|
|
|
"webpack-cli": "3.3.11",
|
2019-09-05 15:09:31 +00:00
|
|
|
"webpack-rtl-plugin": "2.0.0",
|
2020-04-26 13:30:31 +00:00
|
|
|
"woocommerce": "git+https://github.com/woocommerce/woocommerce.git#release/4.1",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-07-02 05:50:59 +00:00
|
|
|
"node": "12.18.2",
|
2020-04-03 13:58:32 +00:00
|
|
|
"npm": "6.14.4"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-04-08 10:21:15 +00:00
|
|
|
"@stripe/react-stripe-js": "1.1.2",
|
2020-06-11 20:13:54 +00:00
|
|
|
"@stripe/stripe-js": "1.7.0",
|
2019-12-02 19:53:36 +00:00
|
|
|
"@woocommerce/components": "4.0.0",
|
2020-05-13 09:30:16 +00:00
|
|
|
"@wordpress/autop": "2.7.0",
|
2020-06-25 10:28:06 +00:00
|
|
|
"@wordpress/deprecated": "2.8.0",
|
2020-03-04 12:59:39 +00:00
|
|
|
"@wordpress/notices": "2.0.0",
|
2020-05-13 09:30:16 +00:00
|
|
|
"@wordpress/wordcount": "2.8.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"classnames": "2.2.6",
|
2020-02-19 16:36:06 +00:00
|
|
|
"compare-versions": "3.6.0",
|
2020-04-02 08:36:41 +00:00
|
|
|
"config": "3.3.1",
|
2020-03-25 16:40:11 +00:00
|
|
|
"dinero.js": "1.8.1",
|
2020-02-25 11:36:53 +00:00
|
|
|
"downshift": "4.1.0",
|
2020-06-11 20:14:33 +00:00
|
|
|
"html-react-parser": "0.10.5",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
2020-03-04 13:00:29 +00:00
|
|
|
"react-number-format": "4.4.1",
|
2020-05-21 15:10:11 +00:00
|
|
|
"reakit": "1.0.2",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2020-03-18 17:02:31 +00:00
|
|
|
"use-debounce": "3.4.0",
|
2020-02-17 16:31:55 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@8.5.0",
|
2020-05-05 08:10:02 +00:00
|
|
|
"wordpress-compose": "npm:@wordpress/compose@3.13.1",
|
2020-03-17 15:34:33 +00:00
|
|
|
"wordpress-element": "npm:@wordpress/element@2.11.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.scss": [
|
|
|
|
"npm run lint:css"
|
|
|
|
],
|
|
|
|
"*.js": [
|
|
|
|
"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
|
|
|
}
|