woocommerce/plugins/woocommerce-admin/package.json

233 lines
8.9 KiB
JSON

{
"name": "@woocommerce/admin-library",
"version": "1.6.0-dev",
"homepage": "https://woocommerce.github.io/woocommerce-admin/",
"repository": {
"type": "git",
"url": "https://github.com:woocommerce/woocommerce-admin.git"
},
"license": "GPL-3.0-or-later",
"author": "Automattic",
"files": [
"dist/**/*.css",
"dist/**/*.js",
"dist/feature-config-core.php",
"includes/class-wc-admin-loader.php",
"includes/features/**/*.php",
"languages/**/*.json",
"license.txt"
],
"scripts": {
"prebuild": "npm run -s install-if-deps-outdated",
"build": "npm run build:feature-config && npm run build:packages && cross-env NODE_ENV=production webpack",
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
"postbuild": "npm run -s i18n:pot && npm run -s i18n:build",
"build:feature-config": "php bin/generate-feature-config.php",
"build:packages": "node ./bin/packages/build.js",
"build:release": "./bin/build-plugin-zip.sh",
"clean": "rimraf ./dist ./packages/*/build ./packages/*/build-module ./packages/*/build-style",
"predev": "npm run -s install-if-deps-outdated && php ./bin/update-version.php",
"dev": "cross-env WC_ADMIN_PHASE=development npm run build:feature-config && cross-env WC_ADMIN_PHASE=development npm run build:packages && cross-env WC_ADMIN_PHASE=development webpack",
"docs": "node ./bin/generate-docs",
"i18n": "npm run -s i18n:js && npm run -s i18n:check && npm run -s i18n:pot && npm run -s i18n:build",
"i18n:build": "php bin/combine-pot-files.php languages/woocommerce-admin.po languages/woocommerce-admin.pot",
"i18n:check": "grunt checktextdomain",
"i18n:js": "npm run clean && cross-env NODE_ENV=production babel client packages -o /dev/null",
"i18n:json": "./bin/make-i18n-json.sh",
"i18n:pot": "grunt makepot",
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
"install-if-no-packages": "node bin/install-if-no-packages.js",
"jest:update": "jest -u --config=tests/js/jest.config.json",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint '**/*.scss'",
"lint:css-fix": "stylelint '**/*.scss' --fix",
"lint:js": "wp-scripts lint-js ./packages ./client",
"lint:js:packages": "wp-scripts lint-js ./packages",
"lint:js:client": "wp-scripts lint-js ./client",
"lint:js-fix": "npm run lint:js -- --fix",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"reformat-files": "wp-scripts format-js -- --ignore-path .eslintignore",
"prepack": "npm install && npm run lint && npm run test && cross-env WC_ADMIN_PHASE=core npm run build",
"publish-packages:check": "npm run build:packages && lerna updated",
"publish-packages:dev": "npm run build:packages && lerna publish from-package --npm-tag next",
"publish-packages:prod": "npm run build:packages && lerna publish from-package",
"prestart": "npm run -s install-if-deps-outdated",
"start": "cross-env WC_ADMIN_PHASE=development npm run build:packages && cross-env WC_ADMIN_PHASE=development npm run build:feature-config && concurrently \"cross-env WC_ADMIN_PHASE=development webpack --watch\" \"node ./bin/packages/watch.js\"",
"pretest": "npm run -s install-if-no-packages",
"test": "./node_modules/jest-24.9.0/bin/jest.js --config tests/js/jest.config.json",
"test:help": "wp-scripts test-unit-js --help",
"test:update-snapshots": "jest --updateSnapshot --config tests/js/jest.config.json",
"test:watch": "npm run test -- --watch",
"test:zip": "./bin/build-test-zip.sh",
"example": "webpack --config docs/examples/extensions/examples.config.js --watch",
"pre-release": "./bin/pre-release.sh",
"create-wc-extension": "node ./bin/starter-pack/starter-pack.js",
"storybook": "start-storybook -c ./storybook -p 6007 --ci",
"build-storybook": "build-storybook -c ./storybook",
"changelog": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
"bump-version": "npm run -s install-if-deps-outdated && php ./bin/update-version.php"
},
"changelog": {
"labelPrefix": "[Type]",
"skipLabel": "skip-changelog",
"defaultPrefix": "dev",
"repo": "woocommerce/woocommerce-admin"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test && npm run -s install-if-no-packages && node bin/pre-push-hook.js"
}
},
"lint-staged": {
"*.scss": [
"npm run lint:css"
],
"*.js": [
"wp-scripts format-js",
"npm run lint:js"
],
"*.php": [
"php -d display_errors=1 -l",
"composer run-script phpcs"
]
},
"dependencies": {
"@fresh-data/framework": "0.6.1",
"@wordpress/api-fetch": "2.2.8",
"@wordpress/base-styles": "2.0.0",
"@wordpress/components": "10.0.0",
"@wordpress/data": "4.16.1",
"@wordpress/data-controls": "1.10.1",
"@wordpress/date": "3.9.0",
"@wordpress/dom": "2.9.0",
"@wordpress/element": "2.13.1",
"@wordpress/hooks": "2.8.0",
"@wordpress/html-entities": "2.7.0",
"@wordpress/i18n": "3.11.0",
"@wordpress/icons": "2.0.0",
"@wordpress/keycodes": "2.11.0",
"@wordpress/notices": "1.12.0",
"@wordpress/url": "2.13.0",
"@wordpress/viewport": "2.15.1",
"classnames": "2.2.6",
"core-js": "2.6.11",
"debug": "4.1.1",
"dompurify": "2.0.12",
"gridicons": "3.3.1",
"interpolate-components": "1.1.1",
"marked": "0.8.2",
"memize": "1.1.0",
"memoize-one": "5.1.1",
"prismjs": "1.21.0",
"qs": "6.9.4",
"react-click-outside": "3.0.1",
"react-dates": "17.2.0",
"react-router-dom": "5.1.2",
"react-transition-group": "4.3.0",
"react-visibility-sensor": "5.1.1",
"redux": "4.0.5"
},
"devDependencies": {
"@automattic/color-studio": "2.3.1",
"@automattic/mini-css-extract-plugin-with-rtl": "0.8.0",
"@babel/cli": "7.10.5",
"@babel/core": "7.11.1",
"@babel/plugin-transform-async-to-generator": "7.10.4",
"@babel/plugin-transform-react-jsx": "7.10.4",
"@babel/runtime-corejs2": "7.11.2",
"@octokit/graphql": "4.5.3",
"@storybook/addon-a11y": "5.3.18",
"@storybook/addon-actions": "5.3.18",
"@storybook/addon-console": "1.2.1",
"@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",
"@testing-library/jest-dom": "5.11.3",
"@testing-library/react": "10.4.8",
"@testing-library/react-hooks": "3.4.1",
"@testing-library/user-event": "10.4.1",
"@woocommerce/components": "file:packages/components",
"@woocommerce/csv-export": "file:packages/csv-export",
"@woocommerce/currency": "file:packages/currency",
"@woocommerce/data": "file:packages/data",
"@woocommerce/date": "file:packages/date",
"@woocommerce/eslint-plugin": "file:packages/eslint-plugin",
"@woocommerce/navigation": "file:packages/navigation",
"@woocommerce/number": "file:packages/number",
"@wordpress/babel-plugin-makepot": "2.1.3",
"@wordpress/babel-preset-default": "4.10.0",
"@wordpress/browserslist-config": "2.6.0",
"@wordpress/custom-templated-path-webpack-plugin": "1.6.0",
"@wordpress/postcss-plugins-preset": "1.3.0",
"@wordpress/postcss-themes": "1.0.5",
"@wordpress/prettier-config": "0.3.0",
"@wordpress/scripts": "12.0.0",
"ast-types": "0.13.3",
"autoprefixer": "9.8.6",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "26.2.2",
"babel-loader": "8.1.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-es2015-template-literals": "6.22.0",
"chalk": "4.1.0",
"concurrently": "5.3.0",
"copy-webpack-plugin": "5.1.1",
"cross-env": "7.0.2",
"css-loader": "3.6.0",
"deasync": "0.1.20",
"deep-freeze": "0.0.1",
"docsify-cli": "4.4.1",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2",
"enzyme-to-json": "3.5.0",
"fs-extra": "8.1.0",
"grunt": "1.2.1",
"grunt-checktextdomain": "1.0.1",
"grunt-wp-i18n": "1.0.3",
"husky": "4.2.5",
"jest-24.9.0": "npm:jest@24.9.0",
"jest-environment-jsdom-sixteen": "1.0.3",
"lerna": "3.22.1",
"lint-staged": "10.2.11",
"merge-config": "2.0.0",
"moment-timezone-data-webpack-plugin": "1.2.0",
"node-sass": "4.14.1",
"node-watch": "0.6.4",
"postcss-color-function": "4.1.0",
"postcss-loader": "3.0.0",
"prettier": "npm:wp-prettier@2.0.5",
"promptly": "3.0.3",
"prop-types": "15.7.2",
"raw-loader": "4.0.1",
"react-docgen": "5.3.0",
"readline-sync": "1.4.10",
"recast": "0.19.0",
"replace": "1.1.5",
"request-promise": "4.2.5",
"rimraf": "3.0.2",
"rtlcss": "2.5.0",
"sass-loader": "8.0.2",
"style-loader": "0.23.1",
"stylelint": "9.10.1",
"stylelint-config-wordpress": "13.1.0",
"terser-webpack-plugin": "2.3.5",
"url-loader": "1.1.2",
"webpack": "4.43.0",
"webpack-bundle-analyzer": "3.6.1",
"webpack-cli": "3.3.11",
"webpack-fix-style-only-entries": "0.4.0",
"webpack-rtl-plugin": "2.0.0",
"zenhub-api": "0.2.0"
},
"engines": {
"node": ">=8.0.0",
"npm": ">=6.14.2"
}
}