-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 4.53 KB
/
Copy pathpackage.json
File metadata and controls
118 lines (118 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
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
{
"name": "reddit-for-woocommerce",
"title": "Reddit for WooCommerce",
"description": "Reddit for WooCommerce",
"version": "1.0.3",
"author": "The WordPress Contributors",
"license": "GPL-3.0+",
"keywords": [
"WooCommerce",
"Reddit"
],
"repository": {
"type": "git",
"url": "git@github.com:woocommerce/reddit-for-woocommerce.git"
},
"bugs": {
"url": "https://github.com/woocommerce/reddit-for-woocommerce/issues"
},
"config": {
"wp_org_slug": "reddit-for-woocommerce"
},
"dependencies": {
"@woocommerce/components": "^12.3.0",
"@woocommerce/currency": "^4.3.0",
"@woocommerce/navigation": "^8.2.0",
"@woocommerce/number": "^2.5.0",
"@woocommerce/tracks": "^1.4.0",
"@wordpress/api-fetch": "^7.26.0",
"@wordpress/base-styles": "^6.2.0",
"@wordpress/components": "^29.12.0",
"@wordpress/compose": "^7.26.0",
"@wordpress/data": "^10.26.0",
"@wordpress/element": "^6.26.0",
"@wordpress/hooks": "^4.26.0",
"@wordpress/i18n": "^5.26.0",
"@wordpress/icons": "^10.31.0",
"@wordpress/url": "^4.26.0",
"classnames": "^2.5.1",
"gridicons": "^3.4.2",
"lodash": "^4.17.21"
},
"devDependencies": {
"@playwright/test": "^1.53.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@woocommerce/dependency-extraction-webpack-plugin": "^4.0.0",
"@woocommerce/e2e-utils-playwright": "^0.4.0",
"@woocommerce/eslint-plugin": "^2.3.0",
"@wordpress/env": "^10.26.0",
"@wordpress/jest-preset-default": "^12.26.0",
"@wordpress/prettier-config": "^4.26.0",
"@wordpress/scripts": "^30.19.0",
"ajv": "^8.17.1",
"axios": "^1.7.2",
"bundlewatch": "^0.4.0",
"dotenv": "^17.0.0",
"eslint": "^8.57.1",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-import": "^2.29.1",
"jest": "^30.0.4",
"jest-environment-jsdom": "^30.0.4",
"mini-css-extract-plugin": "^2.9.0",
"path-browserify": "^1.0.1",
"prettier": "npm:wp-prettier@^3.0.3",
"react": "^18",
"react-dom": "^18",
"stylelint-config-standard-scss": "^15.0.1",
"typescript": "^5.5.4",
"woocommerce-grow-jsdoc": "git+https://github.com/woocommerce/grow#jsdoc-v1"
},
"overrides": {
"@woocommerce/eslint-plugin": {
"@wordpress/eslint-plugin@<18.1.0": "^18.1.0"
},
"@woocommerce/components": {
"@woocommerce/csv-export@<1.9.0": "^1.9.0"
}
},
"scripts": {
"prebuild": "composer install --no-dev",
"build": "NODE_ENV=production wp-scripts build --webpack-src-dir=js/src",
"postbuild": "npm run archive",
"archive": "composer archive --file=$npm_package_name --format=zip",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"doc:tracking": "woocommerce-grow-jsdoc ./js/src",
"format": "wp-scripts format",
"i18n": "WP_CLI_PHP_ARGS='-d memory_limit=2048M' ./vendor/bin/wp i18n make-pot ./ languages/$npm_package_name.pot --slug=$npm_package_name --domain=$npm_package_name --exclude=bin,data,js/src,node_modules,tests,vendor",
"lint": "npm run lint:php && npm run lint:js && npm run lint:css",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:php": "vendor/bin/phpcs",
"packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip",
"env": "wp-env",
"env:start": "wp-env start",
"env:clean": "wp-env clean",
"env:stop": "wp-env stop",
"env:destroy": "wp-env destroy",
"postenv:start": "bash ./tests/e2e/bin/initialize.sh",
"test:e2e": "npx playwright test --config tests/e2e/playwright.config.js",
"test:unit": "php vendor/bin/phpunit -c phpunit.xml.dist",
"test:unit:wp-env:setup": "docker exec -u root $(docker ps --filter name=tests-cli -q) apk add --no-cache subversion git && npx wp-env run tests-cli --env-cwd=wp-content/plugins/reddit-for-woocommerce bash -c 'WP_TESTS_DIR=/tmp/wordpress-tests-lib bash tests/phpunit/bin/install-wp-tests.sh wordpress_test root password tests-mysql latest nightly'",
"test:unit:wp-env": "npx wp-env run tests-cli --env-cwd=wp-content/plugins/reddit-for-woocommerce bash -c 'WP_TESTS_DIR=/tmp/wordpress-tests-lib php vendor/bin/phpunit -c phpunit.xml.dist'",
"test:js": "wp-scripts test-unit-js --coverage",
"test:js:watch": "npm run test:js -- --watch",
"start": "wp-scripts start --webpack-src-dir=js/src"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"engines": {
"node": "^20",
"npm": "^10 || ^9"
}
}