201 lines
7.3 KiB
JSON
201 lines
7.3 KiB
JSON
{
|
|
"name": "@woocommerce/block-library",
|
|
"title": "WooCommerce Blocks",
|
|
"author": "Automattic",
|
|
"version": "3.5.0-dev",
|
|
"description": "WooCommerce blocks for the Gutenberg editor.",
|
|
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
|
|
"keywords": [
|
|
"woocommerce",
|
|
"wordpress",
|
|
"blocks"
|
|
],
|
|
"sideEffects": [
|
|
"*.css",
|
|
"*.scss",
|
|
"./assets/js/atomic/blocks/**",
|
|
"./assets/js/filters/**",
|
|
"./assets/js/settings/blocks/**",
|
|
"./assets/js/middleware/**"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com:woocommerce/woocommerce-gutenberg-products-block.git"
|
|
},
|
|
"license": "GPL-3.0+",
|
|
"scripts": {
|
|
"build": "rimraf build/* && cross-env BABEL_ENV=default NODE_ENV=production webpack",
|
|
"build:deploy": "cross-env WOOCOMMERCE_BLOCKS_PHASE=2 composer install --no-dev && WOOCOMMERCE_BLOCKS_PHASE=2 npm run build --loglevel error",
|
|
"build:e2e-test": "npm run build",
|
|
"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'",
|
|
"deploy": "npm run build:deploy && sh ./bin/github-deploy.sh",
|
|
"dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
|
|
"explore": "source-map-explorer",
|
|
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
|
|
"lint:ci": "npm run lint:js && npm run lint:css",
|
|
"lint:css": "stylelint 'assets/**/*.scss'",
|
|
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
|
|
"lint:js": "wp-scripts lint-js",
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx --fix",
|
|
"lint:php": "composer run-script phpcs ./src",
|
|
"package-plugin": "./bin/build-plugin-zip.sh",
|
|
"package-plugin:dev": "./bin/build-plugin-zip.sh -d",
|
|
"package-plugin:zip-only": "./bin/build-plugin-zip.sh -z",
|
|
"package-plugin:deploy": "npm run build:deploy && npm run package-plugin:zip-only",
|
|
"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",
|
|
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
|
|
"release": "sh ./bin/wordpress-deploy.sh",
|
|
"start": "rimraf build/* && 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",
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
|
"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",
|
|
"test:help": "wp-scripts test-unit-js --help",
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
|
"test:watch": "npm run test -- --watch",
|
|
"wp-env": "wp-env",
|
|
"wp-env:config": "./bin/wp-env-pre-config.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "7.11.6",
|
|
"@babel/core": "7.11.6",
|
|
"@babel/plugin-proposal-class-properties": "7.10.4",
|
|
"@babel/polyfill": "7.11.5",
|
|
"@babel/preset-env": "7.11.5",
|
|
"@octokit/graphql": "4.5.6",
|
|
"@storybook/addon-a11y": "6.0.21",
|
|
"@storybook/addon-actions": "6.0.21",
|
|
"@storybook/addon-docs": "6.0.21",
|
|
"@storybook/addon-knobs": "6.0.21",
|
|
"@storybook/addon-links": "6.0.21",
|
|
"@storybook/addon-storysource": "6.0.21",
|
|
"@storybook/addon-viewport": "6.0.21",
|
|
"@storybook/addons": "6.0.21",
|
|
"@storybook/react": "6.0.21",
|
|
"@testing-library/jest-dom": "5.11.4",
|
|
"@testing-library/react": "11.0.4",
|
|
"@types/jest": "26.0.14",
|
|
"@types/react": "16.9.49",
|
|
"@types/wordpress__data": "4.6.8",
|
|
"@types/wordpress__element": "2.4.1",
|
|
"@woocommerce/eslint-plugin": "1.0.0-beta.0",
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
|
"@wordpress/babel-preset-default": "4.18.1",
|
|
"@wordpress/base-styles": "1.4.0",
|
|
"@wordpress/blocks": "6.22.0",
|
|
"@wordpress/browserslist-config": "2.7.0",
|
|
"@wordpress/components": "8.5.0",
|
|
"@wordpress/data-controls": "1.17.1",
|
|
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
|
|
"@wordpress/e2e-test-utils": "4.3.1",
|
|
"@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",
|
|
"autoprefixer": "9.8.6",
|
|
"axios": "0.20.0",
|
|
"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",
|
|
"chalk": "3.0.0",
|
|
"commander": "4.1.1",
|
|
"core-js": "3.6.5",
|
|
"create-file-webpack": "1.0.2",
|
|
"cross-env": "6.0.3",
|
|
"cssnano": "4.1.10",
|
|
"deep-freeze": "0.0.1",
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
|
"fs-extra": "9.0.1",
|
|
"glob": "7.1.6",
|
|
"glob-promise": "3.4.0",
|
|
"husky": "2.4.1",
|
|
"ignore-loader": "0.1.2",
|
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
|
"jest-fetch-mock": "3.0.3",
|
|
"lint-staged": "9.5.0",
|
|
"merge-config": "2.0.0",
|
|
"mini-css-extract-plugin": "0.11.2",
|
|
"prettier": "npm:wp-prettier@2.0.5",
|
|
"progress-bar-webpack-plugin": "2.1.0",
|
|
"promptly": "3.0.3",
|
|
"react-test-renderer": "16.13.1",
|
|
"request-promise": "4.2.6",
|
|
"rimraf": "3.0.2",
|
|
"sass-loader": "7.3.1",
|
|
"source-map-explorer": "2.5.0",
|
|
"typescript": "3.9.7",
|
|
"webpack": "4.44.1",
|
|
"webpack-cli": "3.3.12",
|
|
"webpack-rtl-plugin": "2.0.0",
|
|
"woocommerce": "git+https://github.com/woocommerce/woocommerce.git#release/4.4",
|
|
"zenhub-api": "0.2.0"
|
|
},
|
|
"engines": {
|
|
"node": "12.18.4",
|
|
"npm": "6.14.8"
|
|
},
|
|
"dependencies": {
|
|
"@stripe/react-stripe-js": "1.1.2",
|
|
"@stripe/stripe-js": "1.9.0",
|
|
"@woocommerce/components": "4.0.0",
|
|
"@wordpress/autop": "2.9.0",
|
|
"@wordpress/deprecated": "2.9.0",
|
|
"@wordpress/notices": "2.9.1",
|
|
"@wordpress/wordcount": "2.11.0",
|
|
"classnames": "2.2.6",
|
|
"compare-versions": "3.6.0",
|
|
"config": "3.3.1",
|
|
"dinero.js": "1.8.1",
|
|
"downshift": "4.1.0",
|
|
"html-react-parser": "0.14.0",
|
|
"react-number-format": "4.4.1",
|
|
"reakit": "1.2.5",
|
|
"trim-html": "0.1.9",
|
|
"use-debounce": "3.4.3",
|
|
"wordpress-components": "npm:@wordpress/components@8.5.0",
|
|
"wordpress-compose": "npm:@wordpress/compose@3.20.1",
|
|
"wordpress-element": "npm:@wordpress/element@2.17.1"
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"changelog": {
|
|
"labelPrefix": "type:",
|
|
"skipLabel": "skip-changelog",
|
|
"defaultPrefix": "dev",
|
|
"repo": "woocommerce/woocommerce-gutenberg-products-block"
|
|
},
|
|
"files": [
|
|
"assets/**/*.{js,scss,php}",
|
|
"build/**/*.{js,json,css}",
|
|
"includes/**/*.php",
|
|
"languages/**/*.json",
|
|
"license.txt",
|
|
"woocommerce-gutenberg-products-block.php"
|
|
]
|
|
}
|