2018-04-17 21:03:14 +00:00
|
|
|
{
|
2018-07-10 12:48:06 +00:00
|
|
|
"name": "wc-admin",
|
2019-02-14 17:24:02 +00:00
|
|
|
"version": "0.7.0",
|
2018-04-17 23:51:48 +00:00
|
|
|
"main": "js/index.js",
|
2018-04-17 21:38:56 +00:00
|
|
|
"author": "Automattic",
|
2018-04-17 23:51:48 +00:00
|
|
|
"license": "GPL-2.0-or-later",
|
|
|
|
"repository": "",
|
2018-04-17 21:38:56 +00:00
|
|
|
"engines": {
|
2018-09-18 21:37:57 +00:00
|
|
|
"node": ">=8.0.0",
|
|
|
|
"npm": ">=6.0.0"
|
2018-04-17 21:38:56 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2018-05-10 19:17:28 +00:00
|
|
|
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
|
|
|
|
"install-if-no-packages": "node bin/install-if-no-packages.js",
|
2018-10-30 18:57:48 +00:00
|
|
|
"clean": "rimraf ./dist ./packages/*/build ./packages/*/build-module ./packages/*/build-style",
|
2018-05-10 19:17:28 +00:00
|
|
|
"prebuild": "npm run -s install-if-deps-outdated",
|
2018-10-30 18:57:48 +00:00
|
|
|
"build:packages": "node ./bin/packages/build.js",
|
|
|
|
"build:core": "cross-env NODE_ENV=production webpack",
|
2019-02-13 14:27:35 +00:00
|
|
|
"build": "npm run build:feature-config && npm run build:packages && npm run build:core",
|
2019-02-12 20:02:02 +00:00
|
|
|
"build:release": "cross-env WC_ADMIN_PHASE=plugin ./bin/build-plugin-zip.sh",
|
|
|
|
"build:feature-config": "php bin/generate-feature-config.php",
|
2018-09-26 14:23:55 +00:00
|
|
|
"postbuild": "npm run -s i18n:php && npm run -s i18n:pot",
|
2018-12-18 15:00:41 +00:00
|
|
|
"postshrinkwrap": "replace --silent 'http://' 'https://' ./package-lock.json",
|
2018-05-10 19:17:28 +00:00
|
|
|
"prestart": "npm run -s install-if-deps-outdated",
|
2018-10-30 18:57:48 +00:00
|
|
|
"dev:packages": "node ./bin/packages/watch.js",
|
2019-02-12 20:02:02 +00:00
|
|
|
"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\" \"npm run dev:packages\"",
|
2018-09-26 14:23:55 +00:00
|
|
|
"i18n:js": "cross-env NODE_ENV=production babel client -o /dev/null",
|
|
|
|
"i18n:php": "pot-to-php ./languages/wc-admin.pot ./languages/wc-admin.php wc-admin",
|
|
|
|
"i18n:pot": "grunt makepot",
|
2018-09-28 15:26:30 +00:00
|
|
|
"i18n:check": "grunt checktextdomain",
|
2018-09-28 15:30:06 +00:00
|
|
|
"i18n": "npm run -s i18n:js && npm run -s i18n:php && npm run -s i18n:check && npm run -s i18n:pot",
|
2018-11-02 19:48:16 +00:00
|
|
|
"lint": "npm run lint:js && npm run lint:css",
|
2018-10-30 12:56:22 +00:00
|
|
|
"lint:css": "stylelint '**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint '**/*.scss' --fix",
|
2018-10-22 16:34:28 +00:00
|
|
|
"lint:js": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx",
|
|
|
|
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
|
2018-10-30 12:53:43 +00:00
|
|
|
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
|
2018-05-16 14:59:03 +00:00
|
|
|
"pretest": "npm run -s install-if-no-packages",
|
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
|
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
2018-08-31 20:13:20 +00:00
|
|
|
"test:watch": "npm run test -- --watch",
|
2018-11-01 12:39:41 +00:00
|
|
|
"test:update-snapshots": "jest --updateSnapshot --config tests/js/jest.config.json",
|
2019-01-04 01:26:55 +00:00
|
|
|
"jest:update": "jest -u --config=tests/js/jest.config.json",
|
2018-10-30 18:57:48 +00:00
|
|
|
"docs": "node ./bin/generate-docs",
|
|
|
|
"publish:check": "npm run build:packages && lerna updated",
|
2018-12-19 01:25:26 +00:00
|
|
|
"publish:dev": "npm run build:packages && lerna publish from-package --npm-tag next",
|
|
|
|
"publish:prod": "npm run build:packages && lerna publish from-package"
|
2018-04-17 21:38:56 +00:00
|
|
|
},
|
2018-04-17 21:03:14 +00:00
|
|
|
"devDependencies": {
|
2018-12-20 15:56:02 +00:00
|
|
|
"@babel/cli": "7.2.3",
|
2019-02-22 12:48:49 +00:00
|
|
|
"@babel/core": "7.3.3",
|
2018-12-13 04:55:20 +00:00
|
|
|
"@babel/plugin-transform-async-to-generator": "7.2.0",
|
2019-01-30 20:46:29 +00:00
|
|
|
"@babel/plugin-transform-react-jsx": "7.3.0",
|
|
|
|
"@babel/runtime-corejs2": "7.3.1",
|
2018-11-06 21:53:22 +00:00
|
|
|
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.2",
|
|
|
|
"@wordpress/babel-plugin-makepot": "2.1.2",
|
2019-01-03 10:45:22 +00:00
|
|
|
"@wordpress/babel-preset-default": "3.0.1",
|
2018-11-06 21:53:22 +00:00
|
|
|
"@wordpress/browserslist-config": "2.2.2",
|
2018-11-07 17:25:48 +00:00
|
|
|
"@wordpress/custom-templated-path-webpack-plugin": "1.1.5",
|
2019-01-03 10:45:22 +00:00
|
|
|
"@wordpress/jest-preset-default": "3.0.3",
|
2018-11-15 19:59:34 +00:00
|
|
|
"@wordpress/postcss-themes": "1.0.4",
|
2019-02-22 12:16:35 +00:00
|
|
|
"ast-types": "0.12.2",
|
2019-02-22 13:00:21 +00:00
|
|
|
"autoprefixer": "9.4.8",
|
2018-10-18 16:57:29 +00:00
|
|
|
"babel-core": "7.0.0-bridge.0",
|
2018-10-19 17:24:50 +00:00
|
|
|
"babel-eslint": "10.0.1",
|
2019-01-14 10:45:23 +00:00
|
|
|
"babel-loader": "8.0.5",
|
2018-10-18 16:57:29 +00:00
|
|
|
"babel-plugin-transform-class-properties": "6.24.1",
|
2018-12-26 07:21:54 +00:00
|
|
|
"babel-plugin-transform-es2015-template-literals": "6.22.0",
|
2019-01-14 10:47:28 +00:00
|
|
|
"chalk": "2.4.2",
|
2018-11-19 14:38:32 +00:00
|
|
|
"concurrently": "4.1.0",
|
2018-11-15 19:59:34 +00:00
|
|
|
"copy-webpack-plugin": "4.6.0",
|
2018-10-18 16:57:29 +00:00
|
|
|
"cross-env": "5.2.0",
|
2018-12-26 05:46:24 +00:00
|
|
|
"css-loader": "2.1.0",
|
2018-11-14 16:55:18 +00:00
|
|
|
"deasync": "0.1.14",
|
2018-10-18 16:57:29 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2018-12-14 05:34:47 +00:00
|
|
|
"docsify-cli": "4.3.0",
|
2019-02-22 11:55:10 +00:00
|
|
|
"eslint": "5.14.1",
|
2018-10-18 16:57:29 +00:00
|
|
|
"eslint-config-wpcalypso": "4.0.1",
|
2019-02-06 10:28:41 +00:00
|
|
|
"eslint-loader": "2.1.2",
|
2019-02-22 12:08:54 +00:00
|
|
|
"eslint-plugin-jest": "22.3.0",
|
2019-02-08 05:11:27 +00:00
|
|
|
"eslint-plugin-jsx-a11y": "6.2.1",
|
2019-01-30 18:59:32 +00:00
|
|
|
"eslint-plugin-react": "7.12.4",
|
2018-10-18 16:57:29 +00:00
|
|
|
"eslint-plugin-wpcalypso": "4.0.2",
|
|
|
|
"grunt": "1.0.3",
|
|
|
|
"grunt-checktextdomain": "1.0.1",
|
2018-12-26 07:21:04 +00:00
|
|
|
"grunt-wp-i18n": "1.0.3",
|
2019-01-03 01:02:24 +00:00
|
|
|
"husky": "1.3.1",
|
2019-02-07 09:36:43 +00:00
|
|
|
"lerna": "3.10.8",
|
2019-01-30 20:13:31 +00:00
|
|
|
"locutus": "2.0.10",
|
2019-01-15 11:09:07 +00:00
|
|
|
"mini-css-extract-plugin": "0.5.0",
|
2018-12-13 07:48:59 +00:00
|
|
|
"node-sass": "4.11.0",
|
2019-01-16 11:55:13 +00:00
|
|
|
"node-watch": "0.6.0",
|
2018-10-18 16:57:29 +00:00
|
|
|
"postcss-color-function": "4.0.1",
|
|
|
|
"postcss-loader": "3.0.0",
|
2018-04-17 21:38:56 +00:00
|
|
|
"prettier": "github:automattic/calypso-prettier#c56b4251",
|
2018-10-18 16:57:29 +00:00
|
|
|
"prop-types": "15.6.2",
|
2018-12-14 05:30:45 +00:00
|
|
|
"raw-loader": "1.0.0",
|
2018-10-18 16:57:29 +00:00
|
|
|
"react-docgen": "2.21.0",
|
|
|
|
"readline-sync": "1.4.9",
|
2019-01-16 12:13:44 +00:00
|
|
|
"recast": "0.16.2",
|
2018-12-19 23:54:33 +00:00
|
|
|
"replace": "1.0.1",
|
2019-02-07 09:40:01 +00:00
|
|
|
"rimraf": "2.6.3",
|
2018-11-15 19:59:34 +00:00
|
|
|
"rtlcss": "2.4.0",
|
2018-10-18 16:57:29 +00:00
|
|
|
"sass-loader": "7.1.0",
|
2018-10-19 16:56:48 +00:00
|
|
|
"style-loader": "0.23.1",
|
2018-12-03 17:30:28 +00:00
|
|
|
"stylelint": "9.9.0",
|
2018-10-30 12:56:22 +00:00
|
|
|
"stylelint-config-wordpress": "13.1.0",
|
2019-01-03 01:06:47 +00:00
|
|
|
"webpack": "4.28.3",
|
2018-10-19 17:00:20 +00:00
|
|
|
"webpack-cli": "3.1.2"
|
2018-04-17 23:51:48 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-12-05 16:52:49 +00:00
|
|
|
"@fresh-data/framework": "^0.5.1",
|
2018-12-18 22:58:05 +00:00
|
|
|
"@wordpress/api-fetch": "2.2.6",
|
2019-01-03 10:45:22 +00:00
|
|
|
"@wordpress/components": "7.0.5",
|
|
|
|
"@wordpress/data": "4.2.0",
|
|
|
|
"@wordpress/date": "3.0.1",
|
2018-12-18 22:58:05 +00:00
|
|
|
"@wordpress/element": "2.1.8",
|
2018-11-02 19:37:28 +00:00
|
|
|
"@wordpress/hooks": "2.0.3",
|
2018-12-18 22:58:05 +00:00
|
|
|
"@wordpress/html-entities": "2.0.4",
|
2019-01-03 10:45:22 +00:00
|
|
|
"@wordpress/i18n": "3.1.0",
|
2018-12-18 22:58:05 +00:00
|
|
|
"@wordpress/keycodes": "2.0.5",
|
|
|
|
"@wordpress/scripts": "2.4.4",
|
2018-11-02 19:37:28 +00:00
|
|
|
"@wordpress/viewport": "^2.0.7",
|
2018-09-03 07:54:45 +00:00
|
|
|
"browser-filesaver": "^1.1.1",
|
2018-05-10 19:23:41 +00:00
|
|
|
"classnames": "^2.2.5",
|
2019-02-22 12:32:30 +00:00
|
|
|
"core-js": "2.6.5",
|
2018-11-12 16:25:54 +00:00
|
|
|
"d3-array": "^2.0.0",
|
2018-09-18 21:37:57 +00:00
|
|
|
"d3-axis": "^1.0.12",
|
|
|
|
"d3-format": "^1.3.2",
|
|
|
|
"d3-scale": "^2.1.2",
|
|
|
|
"d3-scale-chromatic": "^1.3.3",
|
|
|
|
"d3-selection": "^1.3.2",
|
|
|
|
"d3-shape": "^1.2.2",
|
|
|
|
"d3-time-format": "^2.1.3",
|
2019-02-22 12:41:25 +00:00
|
|
|
"dompurify": "1.0.10",
|
2019-01-22 02:18:55 +00:00
|
|
|
"emoji-flags": "^1.2.0",
|
2018-11-02 19:37:28 +00:00
|
|
|
"gfm-code-blocks": "1.0.0",
|
|
|
|
"gridicons": "3.1.1",
|
|
|
|
"history": "4.7.2",
|
2018-12-14 05:28:44 +00:00
|
|
|
"html-to-react": "1.3.4",
|
2018-11-02 19:37:28 +00:00
|
|
|
"interpolate-components": "1.1.1",
|
2018-09-18 21:37:57 +00:00
|
|
|
"lodash": "^4.17.11",
|
2019-01-02 01:47:50 +00:00
|
|
|
"marked": "0.6.0",
|
2018-12-13 21:15:52 +00:00
|
|
|
"prismjs": "^1.15.0",
|
2018-11-05 21:02:04 +00:00
|
|
|
"qs": "^6.5.2",
|
2018-11-02 19:37:28 +00:00
|
|
|
"react-click-outside": "3.0.1",
|
2018-09-18 21:37:57 +00:00
|
|
|
"react-dates": "^18.0.4",
|
2018-11-02 19:37:28 +00:00
|
|
|
"react-live": "1.12.0",
|
|
|
|
"react-router-dom": "4.3.1",
|
2018-07-18 03:00:20 +00:00
|
|
|
"react-slot-fill": "^2.0.1",
|
2018-07-05 03:14:40 +00:00
|
|
|
"react-transition-group": "^2.4.0",
|
2018-11-29 15:57:49 +00:00
|
|
|
"redux": "^4.0.0"
|
2018-11-02 16:48:24 +00:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "npm run -s install-if-no-packages && node bin/pre-commit-hook.js",
|
|
|
|
"pre-push": "npm run -s install-if-no-packages && node bin/pre-push-hook.js"
|
|
|
|
}
|
2018-04-17 21:03:14 +00:00
|
|
|
}
|
|
|
|
}
|