Declare and install beta-tester dependencies
This commit is contained in:
parent
87005ff9ba
commit
bedd27a2eb
|
@ -1,51 +0,0 @@
|
||||||
{
|
|
||||||
"name": "woocommerce-admin-test-helper",
|
|
||||||
"title": "WooCommerce Admin Test Helper",
|
|
||||||
"license": "GPL-3.0-or-later",
|
|
||||||
"version": "0.7.6",
|
|
||||||
"description": "woocommerce-admin-test-helper",
|
|
||||||
"scripts": {
|
|
||||||
"build": "wp-scripts build",
|
|
||||||
"check-engines": "wp-scripts check-engines",
|
|
||||||
"check-licenses": "wp-scripts check-licenses",
|
|
||||||
"format:js": "wp-scripts format-js",
|
|
||||||
"lint:css": "wp-scripts lint-style",
|
|
||||||
"lint:js": "wp-scripts lint-js",
|
|
||||||
"lint:md:docs": "wp-scripts lint-md-docs",
|
|
||||||
"lint:md:js": "wp-scripts lint-md-js",
|
|
||||||
"lint:pkg-json": "wp-scripts lint-pkg-json",
|
|
||||||
"packages-update": "wp-scripts packages-update",
|
|
||||||
"start": "wp-scripts start",
|
|
||||||
"test:e2e": "wp-scripts test-e2e",
|
|
||||||
"test:unit": "wp-scripts test-unit-js",
|
|
||||||
"prepare": "husky install"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
|
|
||||||
"@woocommerce/eslint-plugin": "1.1.0",
|
|
||||||
"@wordpress/prettier-config": "^1.0.1",
|
|
||||||
"@wordpress/scripts": "^13.0.3",
|
|
||||||
"husky": "^7.0.4",
|
|
||||||
"lint-staged": "^12.3.7",
|
|
||||||
"prettier": "npm:wp-prettier@^2.2.1-beta-1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@woocommerce/data": "^1.1.1",
|
|
||||||
"@wordpress/api-fetch": "^3.21.5",
|
|
||||||
"@wordpress/components": "^12.0.7",
|
|
||||||
"@wordpress/compose": "^3.24.4",
|
|
||||||
"@wordpress/data": "^4.26.7",
|
|
||||||
"@wordpress/data-controls": "^1.20.7",
|
|
||||||
"@wordpress/element": "^2.19.1",
|
|
||||||
"@wordpress/hooks": "^2.11.1"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.(t|j)s?(x)": [
|
|
||||||
"npm run format:js",
|
|
||||||
"npm run lint:js"
|
|
||||||
],
|
|
||||||
"*.scss": [
|
|
||||||
"npm run lint:css"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -13,9 +13,22 @@
|
||||||
"build_step": "pnpm run build:zip"
|
"build_step": "pnpm run build:zip"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
|
||||||
|
"@woocommerce/eslint-plugin": "workspace:*",
|
||||||
|
"@wordpress/scripts": "^13.0.3",
|
||||||
"eslint": "5.16.0",
|
"eslint": "5.16.0",
|
||||||
"uglify-js": "^3.5.3"
|
"uglify-js": "^3.5.3"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@woocommerce/data": "workspace:*",
|
||||||
|
"@wordpress/api-fetch": "^3.21.5",
|
||||||
|
"@wordpress/components": "^12.0.7",
|
||||||
|
"@wordpress/compose": "^3.24.4",
|
||||||
|
"@wordpress/data": "^4.26.7",
|
||||||
|
"@wordpress/data-controls": "^1.20.7",
|
||||||
|
"@wordpress/element": "^2.19.1",
|
||||||
|
"@wordpress/hooks": "^2.11.1"
|
||||||
|
},
|
||||||
"assets": {
|
"assets": {
|
||||||
"js": {
|
"js": {
|
||||||
"min": "assets/js/*.min.js",
|
"min": "assets/js/*.min.js",
|
||||||
|
@ -23,13 +36,25 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "composer install",
|
"postinstall": "composer install",
|
||||||
"build": "pnpm run uglify",
|
"build": "pnpm run uglify && wp-scripts build",
|
||||||
"build:zip": "./bin/build-zip.sh",
|
"build:zip": "./bin/build-zip.sh",
|
||||||
"build:dev": "pnpm run lint:js && pnpm run uglify",
|
"build:dev": "pnpm run lint:js && pnpm run build",
|
||||||
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
|
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
|
||||||
"lint": "eslint assets/js --ext=js",
|
"lint:legacy": "eslint assets/js --ext=js",
|
||||||
"lint:fix": "eslint assets/js --ext=js --fix"
|
"lint:legacy:fix": "eslint assets/js --ext=js --fix",
|
||||||
|
"check-engines": "wp-scripts check-engines",
|
||||||
|
"check-licenses": "wp-scripts check-licenses",
|
||||||
|
"format:js": "wp-scripts format-js",
|
||||||
|
"lint:css": "wp-scripts lint-style",
|
||||||
|
"lint:js": "wp-scripts lint-js",
|
||||||
|
"lint:md:docs": "wp-scripts lint-md-docs",
|
||||||
|
"lint:md:js": "wp-scripts lint-md-js",
|
||||||
|
"lint:pkg-json": "wp-scripts lint-pkg-json",
|
||||||
|
"packages-update": "wp-scripts packages-update",
|
||||||
|
"start": "wp-scripts start",
|
||||||
|
"test:e2e": "wp-scripts test-e2e",
|
||||||
|
"test:unit": "wp-scripts test-unit-js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.15.0",
|
"node": ">=10.15.0",
|
||||||
|
@ -44,8 +69,12 @@
|
||||||
"php -d display_errors=1 -l",
|
"php -d display_errors=1 -l",
|
||||||
"composer --working-dir=./plugins/woocommerce-beta-tester run-script phpcs-pre-commit"
|
"composer --working-dir=./plugins/woocommerce-beta-tester run-script phpcs-pre-commit"
|
||||||
],
|
],
|
||||||
"!(*min).js": [
|
"*.(t|j)s?(x)": [
|
||||||
"pnpm lint:fix"
|
"npm run format:js",
|
||||||
|
"npm run lint:js && pnpm lint:legacy:fix"
|
||||||
|
],
|
||||||
|
"*.scss": [
|
||||||
|
"npm run lint:css"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1646
pnpm-lock.yaml
1646
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue