-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
66 lines (66 loc) · 3.09 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
{
"name": "woocommerce-gateway-amazon-payments-advanced",
"description": "Amazon Pay Gateway for WooCommerce",
"version": "2.5.3",
"title": "WooCommerce Gateway Amazon Pay",
"repository": {
"type": "git",
"url": "git+https://github.com/woocommerce/woocommerce-gateway-amazon-payments-advanced.git"
},
"license": "GPL-2.0",
"config": {
"js": {
"min": "assets/js/**/*.min.js assets/js/*.min.js",
"js": "assets/js/**/*.js assets/js/*.js"
},
"styles": {
"css": "assets/css/*.css",
"sass": "assets/css/*.scss",
"cssfolder": "assets/css/"
},
"webpack": {
"js": "src/js/",
"css": "src/sass/"
},
"wp_org_slug": "woocommerce-gateway-amazon-payments-advanced",
"woorelease": {
"wp_org_slug": "woocommerce-gateway-amazon-payments-advanced"
}
},
"scripts": {
"postinstall": "composer install",
"test:php": "./vendor/bin/phpunit",
"lint:php": "composer phpcs",
"fix:php": "composer phpcbf",
"lint:js": "cross-var wp-scripts lint-js $npm_package_config_webpack_js",
"fix:js": "cross-var wp-scripts format $npm_package_config_webpack_js",
"lint:css": "cross-var wp-scripts lint-style $npm_package_config_webpack_css",
"fix:css": "cross-var wp-scripts lint-style $npm_package_config_webpack_css --fix",
"i18n": "npm run i18n:makepot && npm run i18n:merge",
"i18n:makepot": "./vendor/bin/wp i18n make-pot . languages/woocommerce-gateway-amazon-payments-advanced.pot --exclude=node_modules,bin,tests,docs,docker",
"i18n:merge": "php bin/update-pot-file-references.php languages/woocommerce-gateway-amazon-payments-advanced.pot",
"watch": "wp-scripts start",
"archive": "cross-var rimraf $npm_package_config_wp_org_slug.zip vendor/ node_modules/ build/**/*.js.map && composer install --no-dev --optimize-autoloader && npm install --only=prod --ignore-scripts && composer archive --file=$npm_package_config_wp_org_slug --dir=$npm_package_config_wp_org_slug --format=zip",
"postarchive": "rimraf vendor/ node_modules/ && npm install",
"build:assets": "wp-scripts build",
"build": "npm run build:assets && npm run i18n && npm run archive && npm run postpackage",
"package": "npm run build && npm run archive",
"postpackage": "cross-var unzip -q $npm_package_config_wp_org_slug/$npm_package_config_wp_org_slug.zip -d $npm_package_config_wp_org_slug && rimraf $npm_package_config_wp_org_slug/$npm_package_config_wp_org_slug.zip && zip -q -r $npm_package_config_wp_org_slug.zip $npm_package_config_wp_org_slug -qq && rimraf -rf $npm_package_config_wp_org_slug"
},
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/runtime-corejs3": "^7.22.3",
"@emotion/babel-plugin": "^11.11.0",
"@wordpress/scripts": "^26.4.0",
"babel-plugin-add-module-exports": "^1.0.4",
"copy-webpack-plugin": "^11.0.0",
"cross-var": "^1.1.0",
"glob": "^10.2.5",
"rimraf": "^5.0.1",
"webpack-remove-empty-scripts": "^1.0.3"
},
"dependencies": {
"@wordpress/i18n": "^4.33.0"
}
}