forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
150 lines (150 loc) · 8.81 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
{
"name": "Jetpack_Monorepo",
"private": true,
"description": "[Jetpack](https://jetpack.com/) is a set of WordPress plugins 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": {
"build": "yarn install-if-deps-outdated && yarn clean && yarn build-php && yarn build-packages && yarn build-jetpack",
"build-concurrently": "yarn install-if-deps-outdated && yarn clean && yarn concurrently 'yarn build-php' 'yarn build-packages' 'yarn build-jetpack-concurrently'",
"build-jetpack": "cd projects/plugins/jetpack && yarn build",
"build-jetpack-backup": "cd projects/plugins/backup && yarn build",
"build-packages": "echo 'Deprecated: Please use the command: jetpack build packages' && yarn jetpack build packages",
"build-php": "composer install --ignore-platform-reqs",
"build-production": "yarn distclean && yarn install --production=false && yarn build-production-php && yarn build-production-packages && yarn build-production-jetpack",
"build-production-concurrently": "yarn distclean && yarn install --production=false && yarn concurrently 'yarn build-production-php' 'yarn build-production-packages' 'yarn build-production-jetpack-concurrently'",
"build-production-jetpack": "cd projects/plugins/jetpack && yarn build-production",
"build-production-jetpack-concurrently": "cd projects/plugins/jetpack && yarn build-production-concurrently",
"build-production-packages": "yarn jetpack build packages --production && yarn validate-es5 -- ./projects/packages/tracking/",
"build-production-php": "COMPOSER_MIRROR_PATH_REPOS=1 composer install -o --no-dev --classmap-authoritative --prefer-dist",
"clean": "yarn clean-jetpack && yarn clean-composer",
"clean-composer": "rm -rf vendor/",
"clean-jetpack": "cd projects/plugins/jetpack && yarn clean",
"cli-install": "cd tools/cli && yarn install",
"cli-link": "yarn jetpack cli link",
"cli-setup": "yarn cli-install && yarn cli-link",
"cli-unlink": "yarn jetpack cli unlink",
"distclean": "rm -rf node_modules && yarn clean-composer && yarn distclean-jetpack",
"distclean-jetpack": "cd projects/plugins/jetpack && yarn distclean",
"docker:build": "docker run -it --rm -v \"${PWD}:/usr/src/app\" -w /usr/src/app \"node:$(cat .nvmrc)\" yarn build",
"docker:build-image": "docker build -t automattic/jetpack-wordpress-dev tools/docker",
"docker:clean": "yarn docker:compose down --rmi all -v && rm -rf tools/docker/wordpress/* tools/docker/wordpress/.htaccess tools/docker/wordpress-develop/* tools/docker/logs/* tools/docker/data/mysql/*",
"docker:compose": "yarn docker:env && yarn docker:compose-volumes && yarn docker:compose-extras && docker-compose -f tools/docker/docker-compose.yml -f tools/docker/compose-volumes.built.yml -f tools/docker/compose-extras.yml",
"docker:compose-extras": "[ -f tools/docker/compose-extras.yml ] || cp tools/docker/compose-extras.yml.sample tools/docker/compose-extras.yml",
"docker:compose-volumes": "[ -f tools/docker/compose-volumes.yml ] || cp tools/docker/compose-volumes.yml.sample tools/docker/compose-volumes.yml; bash ./tools/compose-volumes.sh tools/docker/compose-volumes.yml > tools/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( 'tools/docker/.env', { flags: 'a' } );\"",
"docker:install": "yarn docker:compose exec wordpress bash -c \"/var/scripts/install.sh\"",
"docker:jt-config": "[ -f ./tools/docker/bin/jt/config.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in tools/docker/README.md.'; exit; }; ./tools/docker/bin/jt/config.sh",
"docker:jt-down": "[ -f ./tools/docker/bin/jt/tunnel.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in tools/docker/README.md.'; exit; }; ./tools/docker/bin/jt/tunnel.sh break",
"docker:jt-up": "[ -f ./tools/docker/bin/jt/tunnel.sh ] || { echo 'Tunneling scripts are not installed. See the section \"Jurassic Tube Tunneling Service\" in tools/docker/README.md.'; exit; }; ./tools/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 tools/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: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 install --check-files --production=false --frozen-lockfile",
"lint": "yarn lint-file .",
"lint-changed": "tools/eslint-changed.js --ext .js,.jsx --git",
"lint-file": "eslint --ext .js,.jsx",
"lint-required": "node -e \"const fs = require('fs'); fs.copyFileSync('.eslintignore','.eslintignore-required'); const w=fs.createWriteStream('.eslintignore-required',{flags:'a'}); w.write('\\n# tools/eslint-excludelist.json\\n'); w.end(JSON.parse(fs.readFileSync('tools/eslint-excludelist.json','utf8')).join('\\n')+'\\n')\" && yarn lint --max-warnings=0 --ignore-path .eslintignore-required",
"php:autofix": "composer phpcs:fix",
"php:compatibility": "composer phpcs:compatibility",
"php:lint": "composer phpcs:lint",
"reformat-files": "yarn prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json}\"",
"test-spelling": "mdspell -n -a -x --en-us **/*.md",
"validate-es5": "npx eslint --parser-options=ecmaVersion:5 --no-eslintrc --no-ignore",
"version-packages": "bash ./tools/version-packages.sh"
},
"husky": {
"hooks": {
"pre-commit": "node tools/git-hooks/pre-commit-hook.js",
"prepare-commit-msg": "node tools/git-hooks/prepare-commit-msg.js",
"post-checkout": "./tools/git-hooks/post-merge-checkout-hook.sh",
"post-merge": "./tools/git-hooks/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",
"**/ini": "^1.3.7",
"**/lodash": "4.17.21",
"**/node-fetch": "^2.6.1",
"**/node-notifier": "^8.0.1",
"**/tar-stream/bl": "^4.0.0",
"**/terser-webpack-plugin/serialize-javascript": "^5.0.0"
},
"dependencies": {
"simple-git": "2.37.0"
},
"devDependencies": {
"@babel/core": "7.12.10",
"@babel/plugin-transform-runtime": "7.12.15",
"@babel/preset-env": "7.12.13",
"@babel/preset-react": "7.12.10",
"@babel/register": "7.12.10",
"@wordpress/components": "9.2.6",
"@wordpress/eslint-plugin": "7.4.0",
"@wordpress/i18n": "3.9.0",
"babel-eslint": "10.1.0",
"chai": "4.3.4",
"commander": "7.2.0",
"concurrently": "6.0.2",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"eslint": "7.25.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-wpcalypso": "6.1.0",
"eslint-loader": "4.0.2",
"eslint-plugin-es5": "1.5.0",
"eslint-plugin-inclusive-language": "1.2.1",
"eslint-plugin-jest": "24.3.6",
"eslint-plugin-jsdoc": "32.3.3",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-lodash": "7.2.0",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-wpcalypso": "5.0.0",
"glob": "7.1.6",
"husky": "4.3.8",
"jetpack-cli": "file:tools/cli",
"jsdom": "16.4.0",
"jsdom-global": "3.0.2",
"mocha": "8.2.1",
"moment": "2.29.1",
"nock": "13.0.7",
"parse-diff": "0.8.1",
"prettier": "npm:[email protected]",
"sinon": "9.2.4",
"sinon-chai": "3.5.0"
},
"optionalDependencies": {
"react": "16.13.1",
"react-dom": "16.13.1"
},
"engines": {
"node": "^14.16.0",
"yarn": "^1.3.2"
}
}