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",
|
2019-11-19 19:08:55 +00:00
|
|
|
"version": "2.6.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-01-22 16:58:25 +00:00
|
|
|
"./assets/js/atomic/blocks/product/**",
|
2020-03-27 20:56:48 +00:00
|
|
|
"./assets/js/filters/**",
|
|
|
|
"./assets/js/settings/blocks/**"
|
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-01-31 20:04:37 +00:00
|
|
|
"deploy": "cross-env WOOCOMMERCE_BLOCKS_PHASE=stable composer install --no-dev && npm run build --loglevel error && sh ./bin/github-deploy.sh",
|
2019-09-05 15:09:31 +00:00
|
|
|
"release": "sh ./bin/wordpress-deploy.sh",
|
|
|
|
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
|
2020-03-21 16:10:53 +00:00
|
|
|
"lint:ci": "npm run lint:js && npm run lint:css",
|
2020-02-11 17:23:23 +00:00
|
|
|
"build:e2e-test": "npm run build",
|
2020-03-09 01:59:31 +00:00
|
|
|
"dev": "cross-env BABEL_ENV=default webpack",
|
2020-02-11 16:13:20 +00:00
|
|
|
"docker:up": "docker-compose up -d",
|
|
|
|
"docker:up:build": "docker-compose up --build -d",
|
|
|
|
"docker:down": "docker-compose down",
|
|
|
|
"docker:down:reset": "docker-compose down -v",
|
|
|
|
"docker:clear-all": "docker rmi --force $(docker images -q)",
|
|
|
|
"docker:ssh": "docker exec -it woo-blocks_wordpress-www_1 /bin/bash",
|
2019-09-05 15:09:31 +00:00
|
|
|
"start": "cross-env BABEL_ENV=default webpack --watch --info-verbosity none",
|
|
|
|
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
|
2020-02-11 16:13:20 +00:00
|
|
|
"lint:php": "composer run-script phpcs ./src",
|
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",
|
|
|
|
"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}\"",
|
|
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
|
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
2020-02-11 16:13:20 +00:00
|
|
|
"test:e2e": "./tests/bin/e2e-test-integration.js",
|
2020-03-05 09:00:39 +00:00
|
|
|
"test:e2e:update": "./tests/bin/e2e-test-integration.js -- --updateSnapshot",
|
2020-02-11 16:13:20 +00:00
|
|
|
"test:e2e-dev": "./tests/bin/e2e-test-integration.js --dev",
|
2019-09-05 15:09:31 +00:00
|
|
|
"test:watch": "npm run test -- --watch",
|
2020-01-30 20:59:14 +00:00
|
|
|
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
|
2020-03-22 15:40:42 +00:00
|
|
|
"storybook:build": "build-storybook -c ./storybook -o ./storybook/dist",
|
2020-01-28 13:47:26 +00:00
|
|
|
"changelog": "node ./bin/changelog",
|
|
|
|
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-02-12 16:01:30 +00:00
|
|
|
"@babel/cli": "7.8.4",
|
2020-03-12 09:58:47 +00:00
|
|
|
"@babel/core": "7.8.7",
|
2020-01-15 09:19:51 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.8.3",
|
2020-03-12 09:58:47 +00:00
|
|
|
"@babel/polyfill": "7.8.7",
|
|
|
|
"@babel/preset-env": "7.8.7",
|
2020-01-15 15:19:06 +00:00
|
|
|
"@octokit/graphql": "4.3.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-03-12 09:59:33 +00:00
|
|
|
"@types/jest": "25.1.4",
|
2020-03-18 17:02:55 +00:00
|
|
|
"@types/react": "16.9.23",
|
2020-04-02 13:39:33 +00:00
|
|
|
"@types/wordpress__data": "4.6.6",
|
|
|
|
"@types/wordpress__element": "2.4.0",
|
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",
|
|
|
|
"@wordpress/e2e-test-utils": "4.0.0",
|
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",
|
|
|
|
"@wordpress/eslint-plugin": "3.3.0",
|
|
|
|
"@wordpress/html-entities": "2.5.0",
|
|
|
|
"@wordpress/i18n": "3.8.0",
|
|
|
|
"@wordpress/is-shallow-equal": "1.7.0",
|
|
|
|
"@wordpress/jest-preset-default": "5.3.1",
|
2020-01-30 12:16:52 +00:00
|
|
|
"@wordpress/scripts": "6.2.0",
|
2020-01-15 09:19:31 +00:00
|
|
|
"autoprefixer": "9.7.4",
|
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",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-loader": "8.0.6",
|
|
|
|
"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-01-15 09:20:06 +00:00
|
|
|
"css-loader": "3.4.2",
|
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-02 13:38:59 +00:00
|
|
|
"eslint-config-prettier": "6.10.1",
|
2020-03-12 10:00:01 +00:00
|
|
|
"eslint-plugin-jest": "23.8.2",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2019-09-05 15:09:31 +00:00
|
|
|
"husky": "2.4.1",
|
|
|
|
"ignore-loader": "0.1.2",
|
2020-04-02 08:33:47 +00:00
|
|
|
"jest": "25.2.4",
|
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-01-22 10:19:48 +00:00
|
|
|
"node-sass": "4.13.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-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-02-11 16:13:20 +00:00
|
|
|
"woocommerce": "git+https://github.com/woocommerce/woocommerce.git",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-02-19 16:35:04 +00:00
|
|
|
"node": "12.16.1",
|
2020-01-30 10:58:28 +00:00
|
|
|
"npm": "6.13.7"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-04-02 13:39:33 +00:00
|
|
|
"@stripe/react-stripe-js": "1.1.0",
|
|
|
|
"@stripe/stripe-js": "1.2.0",
|
2019-12-02 19:53:36 +00:00
|
|
|
"@woocommerce/components": "4.0.0",
|
2020-03-04 12:59:39 +00:00
|
|
|
"@wordpress/notices": "2.0.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-03-04 13:00:29 +00:00
|
|
|
"react-number-format": "4.4.1",
|
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-03-17 15:34:33 +00:00
|
|
|
"wordpress-compose": "npm:@wordpress/compose@3.11.0",
|
|
|
|
"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"
|
|
|
|
]
|
2018-09-05 18:30:46 +00:00
|
|
|
}
|