-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpackage.json
More file actions
88 lines (88 loc) · 4.53 KB
/
Copy pathpackage.json
File metadata and controls
88 lines (88 loc) · 4.53 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
{
"name": "gravity-pdf",
"private": true,
"dependencies": {
"algoliasearch": "^5.35.0",
"classnames": "^2.3.1",
"history": "^5.3.0",
"lodash.debounce": "^4.0.8",
"object-to-formdata": "^4.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.2",
"react-instantsearch": "^7.16.2",
"react-redux": "^9.1.2",
"react-router": "^6.27.0",
"react-router-dom": "^6.27.0",
"redux": "^5.0.1",
"redux-saga": "^1.1.3",
"redux-watch": "^1.2.0",
"reselect": "^5.1.1",
"sprintf-js": "^1.1.2"
},
"devDependencies": {
"@babel/core": "^7.27",
"@babel/plugin-transform-modules-commonjs": "^7.27",
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@chromatic-com/playwright": "^0.13.1",
"@playwright/test": "^1.55.0",
"@redux-devtools/extension": "^3.3.0",
"@wordpress/e2e-test-utils": "^11.29.0",
"@wordpress/e2e-test-utils-playwright": "^1.29.0",
"@wordpress/env": "^11.0.0",
"@wordpress/eslint-plugin": "^22.11.0",
"@wordpress/scripts": "^31.8.0",
"babel-jest": "^29.7.0",
"babel-plugin-inline-json-import": "^0.3.2",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"chromatic": "^16.3.0",
"css.escape": "^1.5.1",
"enzyme": "^3.11.0",
"eslint": "^8.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import-x": "^4.16.1",
"filenamify": "^6.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-enzyme": "^7.1.2",
"jquery": "^3.6.0",
"potomatic": "^1.0.1",
"prettier": "^3.6.2",
"prop-types": "^15.8.1",
"puppeteer-core": "^24.17.0",
"redux-mock-store": "^1.5.4",
"typescript": "5.3.3"
},
"scripts": {
"start": "yarn wp-env start && yarn dev:hot",
"dev": "WP_DEVTOOL=inline-source-map wp-scripts start --webpack-src-dir=./src/assets/js --webpack-no-externals",
"dev:build": "yarn dev -- --no-watch",
"build": "wp-scripts build --webpack-src-dir=./src/assets/js --webpack-no-externals",
"check-licenses": "wp-scripts check-licenses --prod --gpl2",
"format": "wp-scripts format ./src/assets ./tests/js-unit ./tests/playwright && yarn lint:js --fix && yarn lint:css --fix",
"lint:css": "wp-scripts lint-style ./src/assets/**/*.scss ./src/assets/**/*.pcss",
"lint:js": "wp-scripts lint-js ./src/assets/js ./tests/js-unit ./tests/playwright",
"wp-env": "WP_ENV_PORT=8700 wp-env --config=./tools/wp-env/development.json",
"wp-env:integration": "WP_ENV_PORT=8701 wp-env --config=./tools/wp-env/integration.json",
"wp-env:e2e": "WP_ENV_PORT=8702 wp-env --config=./tools/wp-env/e2e.json",
"test:php": "yarn wp-env:integration run wordpress env PHP_IDE_CONFIG=serverName=localhost /var/www/html/wp-content/plugins/gravity-pdf/vendor/bin/phpunit -- -c /var/www/html/wp-content/plugins/gravity-pdf/tools/phpunit/config.xml",
"test:php:multisite": "yarn wp-env:integration run wordpress env PHP_IDE_CONFIG=serverName=localhost /var/www/html/wp-content/plugins/gravity-pdf/vendor/bin/phpunit -- -c /var/www/html/wp-content/plugins/gravity-pdf/tools/phpunit/config-multisite.xml",
"test:e2e": "wp-scripts test-playwright --config tools/playwright/config.ts",
"test:e2e:debug": "wp-scripts test-playwright --config tools/playwright/config.ts --ui",
"test:js": "jest --verbose",
"test:js:coverage": "jest --coverage --verbose",
"test:js:watch": "jest --watchAll",
"prebuild:core-fonts": "bash tools/release/json-payload.sh https://api.github.com/repos/GravityPDF/mpdf-core-fonts/contents/ core-fonts.json",
"i10n": "yarn build && yarn i10n:make-pot && yarn i10n:update-po && yarn i10n:make-mo && yarn i10n:make-json && yarn i10n:make-php",
"i10n:make-pot": "wp i18n make-pot ./ languages/gravity-pdf.pot --include=pdf.php,api.php,gravity-pdf-updater.php,src,build --exclude=tmp,vendor,vendor_prefixed --domain=gravity-pdf --headers='{\"Report-Msgid-Bugs-To\":\"https://gravitypdf.com\"}'",
"i10n:make-json": "wp i18n make-json languages --no-purge",
"i10n:make-php": "wp i18n make-php languages",
"i10n:update-po": "wp i18n update-po languages/gravity-pdf.pot languages",
"i10n:make-mo": "wp i18n make-mo languages",
"i10n:translate": "potomatic --output-dir=./languages --po-file-prefix=gravity-pdf- --pot-file-path=./languages/gravity-pdf.pot --use-dictionary --dictionary-path=./tools/potomatic/dictionaries --target-languages=es_ES,fr_FR,de_DE,de_DE-formal,it_IT,nl_NL,ru_RU,zh_CN"
},
"resolutions": {
"cheerio": "1.0.0-rc.10"
}
}