-
Notifications
You must be signed in to change notification settings - Fork 32
/
package.json
66 lines (66 loc) · 2.59 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-subscriptions-core",
"title": "WooCommerce Subscriptions Core",
"author": "Automattic",
"license": "GPL-3.0-or-later",
"version": "7.7.2",
"description": "",
"homepage": "https://github.com/Automattic/woocommerce-subscriptions-core",
"main": "Gruntfile.js",
"config": {
"translate": true,
"version_replace_paths": ["includes/"]
},
"repository": {
"type": "git",
"url": "https://github.com/Automattic/woocommerce-subscriptions-core.git"
},
"bugs": {
"url": "https://github.com/Automattic/woocommerce-subscriptions-core/issues"
},
"scripts": {
"postinstall": "is-ci || composer install",
"prepare": "is-ci || husky install",
"archive": "composer archive --file=$npm_package_name --format=zip",
"build": "npm run build:js && npm run archive",
"build:js": "wp-scripts build assets/src/js/index.js",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format-js",
"format": "npm run format:js && npm run format:css",
"format:css": "npm run format:provided '**/*.scss' '**/*.css'",
"format:provided": "prettier --write",
"lint": "npm run lint:js && npm run lint:css && npm run lint:php",
"lint:css": "wp-scripts lint-style assets/css",
"lint:js": "wp-scripts lint-js",
"lint:js-fix": "wp-scripts lint-js --fix",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"start": "wp-scripts start assets/src/js/index.js",
"test:unit": "wp-scripts test-unit-js",
"test:php": "./vendor/bin/phpunit",
"makepot": "wp i18n make-pot . languages/woocommerce-subscriptions.pot",
"prearchive": "rm -rf woocommerce-subscriptions-core && rm -rf woocommerce-subscriptions-core.zip",
"postarchive": "unzip woocommerce-subscriptions-core.zip -d woocommerce-subscriptions-core && rm woocommerce-subscriptions-core.zip && zip -r woocommerce-subscriptions-core.zip woocommerce-subscriptions-core && rm -rf woocommerce-subscriptions-core"
},
"engines": {
"node": "^16.17.1",
"npm": "^8.15.0"
},
"devDependencies": {
"@woocommerce/dependency-extraction-webpack-plugin": "1.1.0",
"@woocommerce/eslint-plugin": "1.0.0-beta.0",
"@wordpress/scripts": "^12.6.1",
"exec": "^0.1.2",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"promised-exec": "~1.0.1",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-wordpress": "17.0.0",
"semver": "^4.1.0"
},
"dependencies": {
"@wordpress/dependency-extraction-webpack-plugin": "^3.0.1",
"@wordpress/plugins": "^2.24.2"
}
}