forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
267 lines (267 loc) · 12.9 KB
/
Copy pathpackage.json
File metadata and controls
267 lines (267 loc) · 12.9 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
{
"name": "Jetpack",
"version": "9.3.0-alpha",
"private": true,
"description": "[Jetpack](https://jetpack.com/) is a WordPress plugin that supercharges your self-hosted WordPress site with the awesome cloud power of [WordPress.com](https://wordpress.com).",
"homepage": "https://jetpack.com",
"bugs": {
"url": "https://github.com/Automattic/jetpack/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Automattic/jetpack.git"
},
"license": "GPL-2.0-or-later",
"author": "Automattic",
"scripts": {
"add-textdomain": "wpi18n addtextdomain --textdomain=jetpack --glob-pattern='!(docker|node_modules|tests|tools|vendor){*.php,**/*.php}'",
"build": "yarn install-if-deps-outdated && yarn clean && yarn build-client && yarn build-php && yarn build-extensions && yarn build-search && yarn build-packages",
"build-client": "gulp",
"build-color-schemes-wpcom": "GULP_ENV=wpcom gulp sass:color-schemes",
"build-concurrently": "yarn install-if-deps-outdated && yarn clean && yarn concurrently 'yarn build-client' 'yarn build-php' 'yarn build-extensions' 'yarn build-search' 'yarn build-packages'",
"build-extensions": "webpack --config ./webpack.config.extensions.js",
"build-packages": "webpack --config ./webpack.config.packages.js",
"build-php": "composer install --ignore-platform-reqs",
"build-production": "yarn distclean && yarn install --production=false && yarn build-production-client && yarn build-production-php && yarn build-production-extensions && yarn build-production-search && yarn build-production-packages",
"build-production-client": "NODE_ENV=production BABEL_ENV=production yarn build-client && yarn validate-es5 -- ./_inc/build/",
"build-production-concurrently": "yarn distclean && yarn install --production=false && yarn concurrently 'yarn build-production-client' 'yarn build-production-php' 'NODE_ENV=production yarn build-extensions' 'NODE_ENV=production yarn build-search' 'NODE_ENV=production yarn build-packages'",
"build-production-extensions": "NODE_ENV=production BABEL_ENV=production yarn build-extensions",
"build-production-packages": "NODE_ENV=production BABEL_ENV=production yarn build-packages && yarn validate-es5 -- ./packages/lazy-images/",
"build-production-php": "COMPOSER_MIRROR_PATH_REPOS=1 composer install -o --no-dev --classmap-authoritative --prefer-dist",
"build-production-search": "NODE_ENV=production BABEL_ENV=production yarn build-search && yarn validate-es5 -- ./_inc/build/instant-search/",
"build-search": "yarn clean-search && webpack --config ./webpack.config.search.js",
"clean": "yarn clean-client && yarn clean-extensions && yarn clean-composer",
"clean-client": "rm -rf _inc/build/ css/",
"clean-composer": "rm -rf vendor/",
"clean-extensions": "rm -rf _inc/blocks/ ",
"clean-search": "rm -rf _inc/build/instant-search/* ",
"distclean": "rm -rf node_modules && yarn clean",
"docker:build": "docker run -it --rm -v ${PWD}:/usr/src/app -w /usr/src/app node yarn build",
"docker:build-image": "docker build -t automattic/jetpack-wordpress-dev docker",
"docker:clean": "yarn docker:compose down --rmi all -v && rm -rf docker/wordpress/* docker/wordpress/.htaccess docker/wordpress-develop/* docker/logs/* docker/data/mysql/*",
"docker:compose": "yarn docker:env && yarn docker:compose-volumes && yarn docker:compose-extras && docker-compose -f docker/docker-compose.yml -f docker/compose-volumes.built.yml -f docker/compose-extras.yml",
"docker:compose-extras": "[ -f docker/compose-extras.yml ] || cp docker/compose-extras.yml.sample docker/compose-extras.yml",
"docker:compose-volumes": "[ -f docker/compose-volumes.yml ] || cp docker/compose-volumes.yml.sample docker/compose-volumes.yml; bash ./bin/compose-volumes.sh docker/compose-volumes.yml > docker/compose-volumes.built.yml",
"docker:db": "yarn docker:compose exec wordpress bash -c \"mysql --defaults-group-suffix=docker\"",
"docker:down": "yarn docker:compose down",
"docker:env": "node -e \"require('fs').createWriteStream( 'docker/.env', { flags: 'a' } );\"",
"docker:install": "yarn docker:compose exec wordpress bash -c \"/var/scripts/install.sh\"",
"docker:jt-config": "[ -f ./docker/bin/jt/config.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in docker/README.md.'; exit; }; ./docker/bin/jt/config.sh",
"docker:jt-down": "[ -f ./docker/bin/jt/tunnel.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in docker/README.md.'; exit; }; ./docker/bin/jt/tunnel.sh break",
"docker:jt-up": "[ -f ./docker/bin/jt/tunnel.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in docker/README.md.'; exit; }; ./docker/bin/jt/tunnel.sh",
"docker:multisite-convert": "yarn docker:compose exec wordpress bash -c \"/var/scripts/multisite-convert.sh\"",
"docker:ngrok": "yarn docker:compose -f docker/docker-compose-ngrok.yml",
"docker:ngrok-down": "yarn docker:ngrok down",
"docker:ngrok-up": "yarn docker:ngrok up",
"docker:phpunit": "yarn docker:compose exec wordpress phpunit --configuration=/var/www/html/wp-content/plugins/jetpack/phpunit.xml.dist",
"docker:phpunit:multisite": "yarn docker:compose exec wordpress phpunit --configuration=/var/www/html/wp-content/plugins/jetpack/tests/php.multisite.xml",
"docker:phpunit:package": "bash ./tests/package-runner.sh",
"docker:run-extras": "yarn docker:compose exec wordpress bash -c \"chmod +x /var/scripts/run-extras.sh && . /var/scripts/run-extras.sh\"",
"docker:sh": "yarn docker:compose exec wordpress bash",
"docker:stop": "yarn docker:compose stop",
"docker:tail": "yarn docker:compose exec wordpress bash -c \"/var/scripts/tail.sh\"",
"docker:uninstall": "yarn docker:compose exec wordpress bash -c \"/var/scripts/uninstall.sh\"",
"docker:up": "yarn docker:compose up",
"docker:update-core-unit-tests": "yarn docker:compose exec wordpress svn up /tmp/wordpress-develop/tests/phpunit/data/ /tmp/wordpress-develop/tests/phpunit/includes",
"docker:wp": "yarn docker:compose exec wordpress wp --allow-root --path=/var/www/html/",
"install-if-deps-outdated": "yarn check 2> /dev/null || yarn install --check-files --production=false --frozen-lockfile",
"lint": "eslint --ext .js,.jsx . _inc extensions modules",
"lint-file": "eslint --ext .js,.jsx",
"php:autofix": "composer phpcs:fix",
"php:compatibility": "composer phpcs:compatibility",
"php:lint": "composer phpcs:lint",
"reformat-files": "./node_modules/.bin/prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json}\"",
"test-adminpage": "yarn test-client && yarn test-gui",
"test-adminpage-and-extensions-and-search": "yarn concurrently 'yarn test-adminpage' 'yarn test-extensions' 'yarn test-search'",
"test-client": "NODE_ENV=test NODE_PATH=tests:_inc/client tests/runner.js",
"test-decrypt-config": "openssl enc -md sha1 -aes-256-cbc -d -pass env:CONFIG_KEY -in ./tests/e2e/config/encrypted.enc -out ./tests/e2e/config/local-test.js",
"test-e2e": "NODE_CONFIG_DIR='./tests/e2e/config' NODE_CONFIG_ENV=test JEST_PUPPETEER_CONFIG=tests/e2e/jest-puppeteer.config.js jest --config tests/e2e/jest.config.js --runInBand --verbose",
"test-encrypt-config": "openssl enc -md sha1 -aes-256-cbc -pass env:CONFIG_KEY -in ./tests/e2e/config/local-test.js -out ./tests/e2e/config/encrypted.enc",
"test-extensions": "jest extensions",
"test-gui": "NODE_ENV=test NODE_PATH=tests:_inc/client tests/runner.js gui",
"test-modules": "NODE_ENV=test NODE_PATH=tests:_inc/client tests/runner.js modules",
"test-search": "yarn concurrently 'yarn test-search-scripts' 'yarn test-search-size'",
"test-search-scripts": "jest modules/search",
"test-search-size": "NODE_ENV=production BABEL_ENV=production yarn build-search && size-limit",
"test-spelling": "mdspell -n -a -x --en-us **/*.md",
"validate-es5": "npx eslint --parser-options=ecmaVersion:5 --no-eslintrc --no-ignore",
"version-packages": "bash ./bin/version-packages.sh",
"watch": "yarn build && yarn gulp watch"
},
"husky": {
"hooks": {
"pre-commit": "node bin/pre-commit-hook.js",
"prepare-commit-msg": "node bin/prepare-commit-msg.js",
"post-checkout": "./bin/post-merge-checkout-hook.sh",
"post-merge": "./bin/post-merge-checkout-hook.sh"
}
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"resolutions": {
"**/@automattic/calypso-build/node-sass": "^4.13.1",
"**/gulp/gulp-cli/yargs/yargs-parser": "^20.0.0",
"**/lodash": "4.17.20",
"**/mkdirp/minimist": "^0.2.1",
"**/node-fetch": "^2.6.1",
"**/tar-stream/bl": "^4.0.0",
"**/terser-webpack-plugin/serialize-javascript": "^5.0.0"
},
"dependencies": {
"@automattic/calypso-build": "6.1.0",
"@automattic/calypso-color-schemes": "1.0.0",
"@automattic/custom-colors-loader": "automattic/custom-colors-loader",
"@automattic/format-currency": "1.0.0-alpha.0",
"@automattic/popup-monitor": "1.0.0",
"@automattic/request-external-access": "1.0.0",
"@automattic/social-previews": "1.1.0",
"@automattic/viewport": "1.0.0",
"@babel/core": "7.12.9",
"@babel/preset-env": "7.12.7",
"@babel/register": "7.12.1",
"@wordpress/annotations": "1.12.2",
"@wordpress/base-styles": "2.0.1",
"@wordpress/browserslist-config": "2.6.0",
"@wordpress/compose": "3.11.0",
"@wordpress/data": "4.14.2",
"@wordpress/date": "3.11.1",
"@wordpress/element": "2.18.0",
"@wordpress/i18n": "3.9.0",
"@wordpress/icons": "2.7.0",
"@wordpress/url": "2.11.0",
"axios": "0.21.0",
"babel-jest": "26.6.3",
"babel-loader": "8.2.2",
"bounding-client-rect": "1.0.5",
"cache": "2.1.0",
"classnames": "2.2.6",
"click-outside": "2.0.2",
"clipboard": "2.0.6",
"component-uid": "0.0.2",
"cookie": "0.4.1",
"copy-webpack-plugin": "5.1.2",
"create-react-class": "15.6.3",
"cross-env": "7.0.2",
"debug": "4.3.1",
"email-validator": "2.0.4",
"fancy-log": "1.3.3",
"fast-json-stable-stringify": "2.1.0",
"focus-trap": "6.2.1",
"gridicons": "3.3.1",
"gulp": "4.0.2",
"gulp-append-prepend": "1.0.8",
"gulp-autoprefixer": "7.0.1",
"gulp-clean-css": "4.3.0",
"gulp-concat": "2.6.1",
"gulp-if": "3.0.0",
"gulp-minify": "3.1.0",
"gulp-modify-css-urls": "2.0.0",
"gulp-rename": "2.0.0",
"gulp-rtlcss": "1.4.1",
"gulp-sass": "4.1.0",
"gulp-sourcemaps": "3.0.0",
"jsdom": "16.4.0",
"jsdom-global": "3.0.2",
"json-loader": "0.5.7",
"mapbox-gl": "1.13.0",
"markdown-it": "12.0.2",
"node-sass": "4.14.1",
"page": "1.7.1",
"photon": "2.1.0",
"plugin-error": "1.0.1",
"postcss-custom-properties": "10.0.0",
"preact": "10.5.7",
"progress-event": "1.0.0",
"prop-types": "15.7.2",
"q-flat": "1.0.7",
"qss": "2.0.3",
"react-pure-render": "1.0.2",
"react-redux": "6.0.1",
"react-router-dom": "5.2.0",
"react-tagsinput": "3.19.0",
"redux": "4.0.5",
"redux-thunk": "2.3.0",
"refx": "3.1.1",
"rememo": "3.0.0",
"resize-observer-polyfill": "1.5.1",
"static-site-generator-webpack-plugin": "3.4.2",
"strip": "3.0.0",
"swiper": "6.3.5",
"tinycolor2": "1.4.2",
"uglify-save-license": "0.4.1",
"url-polyfill": "1.1.12",
"uuid": "8.3.1",
"webpack": "4.44.2",
"webpack-cli": "4.2.0"
},
"devDependencies": {
"@automattic/color-studio": "2.3.1",
"@babel/plugin-transform-runtime": "7.12.1",
"@size-limit/preset-app": "4.9.0",
"@slack/web-api": "5.14.0",
"@testing-library/jest-dom": "5.11.6",
"@testing-library/preact": "2.0.0",
"@wordpress/components": "9.2.6",
"@wordpress/core-data": "2.12.3",
"@wordpress/dependency-extraction-webpack-plugin": "2.4.0",
"@wordpress/e2e-test-utils": "4.3.1",
"@wordpress/editor": "9.12.7",
"@wordpress/env": "1.6.0",
"@wordpress/eslint-plugin": "4.0.0",
"@wordpress/server-side-render": "1.8.6",
"babel-eslint": "10.1.0",
"chai": "4.2.0",
"chalk": "4.1.0",
"commander": "6.2.0",
"concurrently": "5.3.0",
"config": "3.3.3",
"css-loader": "5.0.1",
"danger": "10.5.4",
"enzyme": "3.11.0",
"eslint": "7.14.0",
"eslint-config-prettier": "6.15.0",
"eslint-config-wpcalypso": "5.0.0",
"eslint-loader": "4.0.2",
"eslint-plugin-es5": "1.5.0",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-jsdoc": "30.7.8",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-lodash": "7.1.0",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-wpcalypso": "5.0.0",
"glob": "7.1.6",
"husky": "4.3.0",
"jest": "26.6.3",
"jest-allure": "0.1.3",
"jest-puppeteer": "4.4.0",
"localtunnel": "2.0.0",
"lodash": "4.17.20",
"markdown-spellcheck": "1.3.1",
"mocha": "8.2.1",
"mockery": "2.1.0",
"nock": "13.0.5",
"node-wp-i18n": "1.2.3",
"nyc": "15.1.0",
"prettier": "npm:wp-prettier@2.0.5",
"puppeteer": "5.5.0",
"react-click-outside": "3.0.1",
"react-test-renderer": "16.13.1",
"sass-loader": "10.1.0",
"sinon": "9.2.1",
"sinon-chai": "3.5.0",
"size-limit": "4.9.0",
"style-loader": "2.0.0",
"url-loader": "4.1.1",
"winston": "3.3.3"
},
"optionalDependencies": {
"react": "16.13.1",
"react-dom": "16.13.1"
},
"engines": {
"node": "^12.18.0",
"yarn": "^1.3.2"
}
}