-
Notifications
You must be signed in to change notification settings - Fork 385
/
package.json
161 lines (161 loc) · 6.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"name": "amp-wp",
"private": true,
"description": "WordPress plugin for adding AMP support.",
"author": "WordPress.com VIP, XWP, Google, and contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"amp",
"amphtml",
"wordpress",
"wordpress-plugin"
],
"homepage": "https://github.com/ampproject/amp-wp",
"repository": {
"type": "git",
"url": "https://github.com/ampproject/amp-wp.git"
},
"bugs": {
"url": "https://github.com/ampproject/amp-wp/issues"
},
"engines": {
"node": ">= 14",
"npm": ">= 6.14 <7"
},
"dependencies": {
"@wordpress/api-fetch": "6.17.0",
"@wordpress/autop": "3.20.0",
"@wordpress/components": "21.3.0",
"@wordpress/compose": "5.18.0",
"@wordpress/date": "4.20.0",
"@wordpress/dom-ready": "3.20.0",
"@wordpress/editor": "12.19.0",
"@wordpress/element": "4.18.0",
"@wordpress/escape-html": "2.20.0",
"@wordpress/html-entities": "3.20.0",
"@wordpress/i18n": "4.20.0",
"@wordpress/icons": "9.11.0",
"@wordpress/is-shallow-equal": "4.20.0",
"@wordpress/url": "3.21.0",
"classnames": "2.3.2",
"clipboard": "2.0.11",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"uuid": "9.0.0"
},
"devDependencies": {
"@actions/github": "5.1.1",
"@babel/core": "7.19.6",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@wordpress/babel-preset-default": "7.4.0",
"@wordpress/block-editor": "10.3.0",
"@wordpress/blocks": "11.19.0",
"@wordpress/browserslist-config": "5.3.0",
"@wordpress/data": "7.4.0",
"@wordpress/dependency-extraction-webpack-plugin": "4.3.0",
"@wordpress/e2e-test-utils": "8.4.0",
"@wordpress/edit-post": "6.17.0",
"@wordpress/env": "5.5.0",
"@wordpress/eslint-plugin": "13.4.0",
"@wordpress/hooks": "3.20.0",
"@wordpress/jest-puppeteer-axe": "5.3.0",
"@wordpress/plugins": "4.18.0",
"@wordpress/scripts": "24.4.0",
"axios": "1.1.3",
"babel-plugin-inline-react-svg": "2.0.1",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"copy-webpack-plugin": "9.0.1",
"cross-env": "7.0.3",
"css-minimizer-webpack-plugin": "4.2.2",
"enzyme": "3.11.0",
"eslint": "8.26.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.1.3",
"eslint-plugin-jsdoc": "39.4.0",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"grunt": "1.5.3",
"grunt-contrib-clean": "2.0.1",
"grunt-contrib-copy": "1.0.0",
"grunt-shell": "4.0.0",
"grunt-wp-deploy": "2.1.2",
"husky": "8.0.1",
"jest-silent-reporter": "0.5.0",
"lint-staged": "13.0.3",
"lodash": "4.17.21",
"moment": "2.29.4",
"npm-run-all": "4.1.5",
"postcss": "8.4.18",
"postcss-import": "15.0.0",
"postcss-loader": "4.3.0",
"postcss-nested": "5.0.1",
"postcss-preset-env": "7.8.2",
"react-test-renderer": "17.0.2",
"rtlcss-webpack-plugin": "4.0.7",
"semver": "7.3.8",
"svgo": "3.0.0",
"webpack-remove-empty-scripts": "1.0.1",
"webpackbar": "5.0.2",
"wporg-api-client": "1.0.1"
},
"scripts": {
"build:dev": "cross-env NODE_ENV=development npm-run-all 'build:!(dev|prod)'",
"build:prod": "cross-env NODE_ENV=production npm-run-all 'build:!(dev|prod)'",
"build:prepare": "grunt clean",
"build:js": "wp-scripts build",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses --production",
"deploy": "grunt deploy",
"dev": "wp-scripts start",
"env:start": "wp-env start --xdebug",
"env:start:ci": "./bin/local-env/start.sh",
"env:stop": "wp-env stop",
"env:stop:ci": "./bin/local-env/stop.sh",
"env:reset-site": "wp-env clean all",
"generate-changelog": "node bin/release-changelog",
"lint": "npm-run-all --parallel lint:*",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:js:report": "npm run lint:js -- --output-file lint-js-report.json --format json .",
"lint:php": "vendor/bin/phpcs",
"lint:php:fix": "./bin/phpcbf.sh",
"lint:plugin-bootstrap": "vendor/bin/phpcs --runtime-set testVersion 5.2- amp.php",
"lint:pkg-json": "wp-scripts lint-pkg-json --ignorePath .gitignore",
"lint:staged": "lint-staged",
"package:dev": "npm-run-all build:dev 'package:!(dev|prod)'",
"package:prod": "npm-run-all build:prod 'package:!(dev|prod)'",
"package:run": "grunt build",
"package:zip": "grunt create-build-zip",
"prepare": "husky install",
"start": "wp-scripts start",
"test": "npm-run-all --parallel test:*",
"test:e2e": "wp-scripts test-e2e --config=tests/e2e/jest.config.js",
"test:e2e:help": "npm run test:e2e -- --help",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:e2e:interactive": "npm run test:e2e -- --puppeteer-interactive",
"test:e2e:ci": "cross-env WP_BASE_URL=http://localhost:8890 wp-scripts test-e2e --config=tests/e2e/jest-ci.config.js --runInBand",
"test:js": "wp-scripts test-unit-js --config=tests/js/jest.config.js",
"test:js:help": "wp-scripts test-unit-js --help",
"test:js:update-snapshots": "npm run test:js -- --updateSnapshot",
"test:js:watch": "npm run test:js -- --watch",
"test:php": "wp-env run phpunit 'env WP_PHPUNIT__TESTS_CONFIG=/wordpress-phpunit/wp-tests-config.php WORDPRESS_TABLE_PREFIX=wptests_ WP_TESTS_DIR=/var/www/wordpress-develop/tests/phpunit /var/www/html/wp-content/plugins/amp/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/amp/phpunit.xml.dist $npm_config_args'",
"test:php:multisite": "wp-env run phpunit 'env WP_MULTISITE=1 WP_PHPUNIT__TESTS_CONFIG=/wordpress-phpunit/wp-tests-config.php WORDPRESS_TABLE_PREFIX=wptests_ WP_TESTS_DIR=/var/www/wordpress-develop/tests/phpunit /var/www/html/wp-content/plugins/amp/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/amp/phpunit.xml.dist $npm_config_args'",
"test:php:xdebug": "wp-env run tests-wordpress 'env PHP_IDE_CONFIG=serverName=localhost WORDPRESS_TABLE_PREFIX=wptests_ WP_TESTS_DIR=/var/www/wordpress-develop/tests/phpunit WP_PHPUNIT__TESTS_CONFIG=/wordpress-phpunit/wp-tests-config.php /var/www/html/wp-content/plugins/amp/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/amp/phpunit.xml.dist $npm_config_args'",
"test:php:help": "npm run test:php --args='--help'",
"update-wordpress-packages": "npm i $(npm outdated --parseable | cut -d':' -f 4 | grep @wordpress)",
"update-analytics-vendors": "node ./bin/update-analytics-vendors.js",
"update-ecosystem-files": "node ./bin/update-extension-files.js",
"wp-env": "wp-env"
},
"npmpackagejsonlint": {
"extends": "@wordpress/npm-package-json-lint-config",
"rules": {
"require-version": "off"
}
},
"title": "AMP for WordPress"
}