83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"name": "@automattic/woocommerce-analytics",
|
|
"description": "WooCommerce Analytics package to track frontend events",
|
|
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/php/woocommerce-analytics",
|
|
"bugs": {
|
|
"url": "https://github.com/woocommerce/woocommerce/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/woocommerce/woocommerce.git",
|
|
"directory": "packages/php/woocommerce-analytics"
|
|
},
|
|
"license": "GPL-2.0-or-later",
|
|
"author": "Automattic",
|
|
"scripts": {
|
|
"build": "pnpm run clean && webpack",
|
|
"build:composer-package": "bash tasks/build-package.sh",
|
|
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
|
|
"build-production": "NODE_ENV=production BABEL_ENV=production pnpm run build",
|
|
"clean": "rm -rf build/",
|
|
"test": "jest --passWithNoTests",
|
|
"test-coverage": "pnpm run test --coverage",
|
|
"test:php": "composer test-php",
|
|
"test:php:ci": "pnpm test:php",
|
|
"build:ci": "pnpm run typecheck && pnpm run build-production",
|
|
"typecheck": "tsc --noEmit",
|
|
"postinstall": "XDEBUG_MODE=off composer install --quiet",
|
|
"watch": "pnpm build --watch"
|
|
},
|
|
"dependencies": {
|
|
"debug": "4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.25.7",
|
|
"@babel/preset-env": "7.25.7",
|
|
"@babel/preset-typescript": "7.25.7",
|
|
"@jest/globals": "29.5.x",
|
|
"@types/jest": "29.5.x",
|
|
"@types/jquery": "3.5.33",
|
|
"@wordpress/browserslist-config": "next",
|
|
"@wordpress/dependency-extraction-webpack-plugin": "next",
|
|
"babel-loader": "9.2.x",
|
|
"jest": "29.5.x",
|
|
"typescript": "5.7.x",
|
|
"webpack": "5.97.x",
|
|
"webpack-cli": "5.1.x"
|
|
},
|
|
"config": {
|
|
"ci": {
|
|
"tests": [
|
|
{
|
|
"name": "PHP: 8.1 WP: latest",
|
|
"testType": "unit:php",
|
|
"command": "test:php:ci",
|
|
"changes": [
|
|
"composer.json",
|
|
"composer.lock",
|
|
"**/*.php"
|
|
],
|
|
"events": [
|
|
"pull_request",
|
|
"push"
|
|
]
|
|
},
|
|
{
|
|
"name": "JS build and typecheck",
|
|
"command": "build:ci",
|
|
"changes": [
|
|
"package.json",
|
|
"src/client/**/*.ts",
|
|
"tsconfig.json",
|
|
"webpack.config.js"
|
|
],
|
|
"events": [
|
|
"pull_request",
|
|
"push"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|