-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 3.36 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 3.36 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
{
"name": "facebook-for-woocommerce",
"version": "3.7.0",
"author": "Meta",
"homepage": "https://woocommerce.com/products/facebook/",
"license": "GPL-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/facebookincubator/facebook-for-woocommerce.git"
},
"bugs": {
"url": "https://wordpress.org/support/plugin/facebook-for-woocommerce"
},
"devDependencies": {
"@playwright/test": "^1.51.1",
"@wordpress/env": "^9.10.0",
"@wordpress/scripts": "^30.17.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jquery": "^3.7.1",
"webpack": "^5.105.0",
"webpack-cli": "^6.0.1",
"babel-loader": "^10.0.0",
"css-loader": "^7.1.2",
"style-loader": "^4.0.0",
"file-loader": "^6.2.0",
"url-loader": "^4.1.1",
"mini-css-extract-plugin": "^2.9.2",
"clean-webpack-plugin": "^4.0.0"
},
"overrides": {
"rimraf": "^6.0.1",
"glob": {
".": "9.3.5",
"minimatch": "^8.0.6"
},
"@humanwhocodes/object-schema": "^2.0.3",
"@humanwhocodes/config-array": "^0.13.0",
"minimatch": "3.1.3",
"eslint": "^9.29.0",
"tar-fs": "^3.1.1"
},
"scripts": {
"prearchive": "rm -rf vendor && composer install --no-dev && composer dump-autoload -o",
"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",
"prebuild": "composer install",
"build:dev": "rm -f facebook-for-woocommerce.zip 2> /dev/null && npm run build:assets && npm run i18n",
"build": "npm run build:dev",
"postbuild": "npm run archive",
"i18n": "WP_CLI_PHP_ARGS='-d memory_limit=2048M' ./vendor/bin/wp i18n make-pot ./ i18n/languages/$npm_package_name.pot --slug=$npm_package_name --domain=$npm_package_name --exclude=bin,data,node_modules,tests,vendor",
"generate:category_attribute_json": "php bin/GenerateCategoryAttributeMapping.php",
"lint:php": "vendor/bin/phpcs -p -s --colors",
"lint:php:summary": "vendor/bin/phpcs --colors --report=summary",
"build:assets": "NODE_ENV=production wp-scripts build",
"start": "wp-scripts start",
"test:php": "composer test-unit",
"test:js": "jest",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug"
},
"woorelease": {
"wp_org_slug": "facebook-for-woocommerce",
"version_replace_paths": [
"./"
],
"use_gh_release_notes": true
},
"engines": {
"node": ">=22 <=24",
"npm": ">=10"
},
"description": "[](https://github.com/woocommerce/facebook-for-woocommerce/actions/workflows/php-coding-standards.yml)",
"main": "webpack.config.js",
"directories": {
"test": "tests"
},
"jest": {
"testEnvironment": "jsdom",
"testMatch": [
"**/tests/js/**/*.test.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/tests/e2e/"
],
"collectCoverageFrom": [
"assets/js/**/*.js",
"!assets/js/**/*.min.js",
"!**/node_modules/**"
],
"coverageDirectory": "coverage",
"coverageReporters": ["json-summary", "lcov", "html", "text"]
}
}