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-11-25 20:36:58 +00:00
|
|
|
"version": "4.0.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": {
|
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",
|
|
|
|
"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",
|
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",
|
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",
|
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",
|
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",
|
2020-07-14 11:35:15 +00:00
|
|
|
"start": "rimraf build/* && cross-env BABEL_ENV=default webpack --watch --info-verbosity none",
|
2020-04-06 09:00:47 +00:00
|
|
|
"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-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",
|
|
|
|
"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-10-22 10:40:32 +00:00
|
|
|
"@automattic/color-studio": "2.3.1",
|
2020-10-21 13:30:00 +00:00
|
|
|
"@babel/cli": "7.12.1",
|
|
|
|
"@babel/core": "7.12.3",
|
|
|
|
"@babel/plugin-proposal-class-properties": "7.12.1",
|
|
|
|
"@babel/polyfill": "7.12.1",
|
|
|
|
"@babel/preset-env": "7.12.1",
|
2020-11-04 10:24:59 +00:00
|
|
|
"@octokit/graphql": "4.5.7",
|
2020-11-04 14:10:06 +00:00
|
|
|
"@storybook/addon-a11y": "6.0.28",
|
|
|
|
"@storybook/addon-actions": "6.0.28",
|
|
|
|
"@storybook/addon-docs": "6.0.28",
|
|
|
|
"@storybook/addon-knobs": "6.0.28",
|
|
|
|
"@storybook/addon-links": "6.0.28",
|
|
|
|
"@storybook/addon-storysource": "6.0.28",
|
|
|
|
"@storybook/addon-viewport": "6.0.28",
|
|
|
|
"@storybook/addons": "6.0.28",
|
|
|
|
"@storybook/react": "6.0.28",
|
2020-11-20 19:24:01 +00:00
|
|
|
"@testing-library/jest-dom": "5.11.6",
|
2020-11-25 15:58:09 +00:00
|
|
|
"@testing-library/react": "11.2.2",
|
2020-10-26 18:26:35 +00:00
|
|
|
"@types/jest": "26.0.15",
|
2020-11-25 16:17:06 +00:00
|
|
|
"@types/react": "16.14.2",
|
2020-09-30 20:14:10 +00:00
|
|
|
"@types/wordpress__data": "4.6.9",
|
2020-04-29 09:23:55 +00:00
|
|
|
"@types/wordpress__element": "2.4.1",
|
2020-09-26 14:10:00 +00:00
|
|
|
"@woocommerce/eslint-plugin": "1.0.0-beta.0",
|
2020-06-05 16:49:07 +00:00
|
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
2020-09-25 18:26:38 +00:00
|
|
|
"@wordpress/babel-preset-default": "4.18.1",
|
2020-09-25 22:40:06 +00:00
|
|
|
"@wordpress/base-styles": "1.4.0",
|
2020-09-25 18:26:38 +00:00
|
|
|
"@wordpress/blocks": "6.22.0",
|
|
|
|
"@wordpress/browserslist-config": "2.7.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"@wordpress/components": "8.5.0",
|
2020-09-25 18:26:38 +00:00
|
|
|
"@wordpress/data-controls": "1.17.1",
|
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
|
2020-06-16 12:18:34 +00:00
|
|
|
"@wordpress/e2e-test-utils": "4.3.1",
|
2020-09-25 18:26:38 +00:00
|
|
|
"@wordpress/editor": "9.22.0",
|
|
|
|
"@wordpress/element": "2.17.1",
|
|
|
|
"@wordpress/env": "1.6.0",
|
|
|
|
"@wordpress/html-entities": "2.8.0",
|
|
|
|
"@wordpress/i18n": "3.15.0",
|
|
|
|
"@wordpress/is-shallow-equal": "1.8.0",
|
|
|
|
"@wordpress/scripts": "12.2.1",
|
2020-08-18 14:51:16 +00:00
|
|
|
"autoprefixer": "9.8.6",
|
2020-10-28 15:29:21 +00:00
|
|
|
"axios": "0.21.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",
|
2020-11-25 15:02:58 +00:00
|
|
|
"chalk": "4.1.0",
|
2020-10-28 16:49:26 +00:00
|
|
|
"commander": "6.2.0",
|
2020-11-11 17:56:27 +00:00
|
|
|
"core-js": "3.7.0",
|
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",
|
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",
|
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",
|
2020-07-30 09:06:49 +00:00
|
|
|
"glob": "7.1.6",
|
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",
|
2020-09-07 17:31:10 +00:00
|
|
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-fetch-mock": "3.0.3",
|
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",
|
2020-11-25 11:30:09 +00:00
|
|
|
"mini-css-extract-plugin": "1.3.1",
|
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",
|
2020-11-11 19:08:29 +00:00
|
|
|
"react-test-renderer": "17.0.1",
|
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",
|
2019-09-05 15:09:31 +00:00
|
|
|
"sass-loader": "7.3.1",
|
2020-09-02 09:08:57 +00:00
|
|
|
"source-map-explorer": "2.5.0",
|
2020-07-23 12:51:25 +00:00
|
|
|
"typescript": "3.9.7",
|
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-09-07 17:31:10 +00:00
|
|
|
"woocommerce": "git+https://github.com/woocommerce/woocommerce.git#release/4.4",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-11-26 11:51:42 +00:00
|
|
|
"node": "12.20.0",
|
2020-09-25 15:12:26 +00:00
|
|
|
"npm": "6.14.8"
|
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-11-04 16:36:45 +00:00
|
|
|
"@stripe/stripe-js": "1.11.0",
|
2019-12-02 19:53:36 +00:00
|
|
|
"@woocommerce/components": "4.0.0",
|
2020-09-25 18:26:38 +00:00
|
|
|
"@wordpress/autop": "2.9.0",
|
|
|
|
"@wordpress/deprecated": "2.9.0",
|
|
|
|
"@wordpress/notices": "2.9.1",
|
|
|
|
"@wordpress/wordcount": "2.11.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-09-30 20:35:05 +00:00
|
|
|
"config": "3.3.2",
|
2020-03-25 16:40:11 +00:00
|
|
|
"dinero.js": "1.8.1",
|
2020-10-15 01:49:00 +00:00
|
|
|
"downshift": "6.0.6",
|
2020-11-04 14:09:55 +00:00
|
|
|
"html-react-parser": "0.14.1",
|
2020-03-04 13:00:29 +00:00
|
|
|
"react-number-format": "4.4.1",
|
2020-11-18 15:38:29 +00:00
|
|
|
"reakit": "1.3.0",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2020-07-22 09:16:09 +00:00
|
|
|
"use-debounce": "3.4.3",
|
2020-02-17 16:31:55 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@8.5.0",
|
2020-10-28 17:32:13 +00:00
|
|
|
"wordpress-compose": "npm:@wordpress/compose@3.22.0",
|
2020-10-14 21:20:05 +00:00
|
|
|
"wordpress-element": "npm:@wordpress/element@2.18.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
|
|
|
}
|