| 1 |
{ |
| 2 |
"name": "@automattic/woocommerce-analytics", |
| 3 |
"description": "WooCommerce Analytics package to track frontend events", |
| 4 |
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/php/woocommerce-analytics", |
| 5 |
"bugs": { |
| 6 |
"url": "https://github.com/woocommerce/woocommerce/issues" |
| 7 |
}, |
| 8 |
"repository": { |
| 9 |
"type": "git", |
| 10 |
"url": "https://github.com/woocommerce/woocommerce.git", |
| 11 |
"directory": "packages/php/woocommerce-analytics" |
| 12 |
}, |
| 13 |
"license": "GPL-2.0-or-later", |
| 14 |
"author": "Automattic", |
| 15 |
"scripts": { |
| 16 |
"build": "pnpm run clean && webpack", |
| 17 |
"build:composer-package": "bash tasks/build-package.sh", |
| 18 |
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger", |
| 19 |
"build-production": "NODE_ENV=production BABEL_ENV=production pnpm run build", |
| 20 |
"clean": "rm -rf build/", |
| 21 |
"test": "jest --passWithNoTests", |
| 22 |
"test-coverage": "pnpm run test --coverage", |
| 23 |
"test:php": "composer test-php", |
| 24 |
"test:php:ci": "pnpm test:php", |
| 25 |
"build:ci": "pnpm run typecheck && pnpm run build-production", |
| 26 |
"typecheck": "tsc --noEmit", |
| 27 |
"postinstall": "XDEBUG_MODE=off composer install --quiet", |
| 28 |
"watch": "pnpm build --watch" |
| 29 |
}, |
| 30 |
"dependencies": { |
| 31 |
"debug": "4.4.3" |
| 32 |
}, |
| 33 |
"devDependencies": { |
| 34 |
"@babel/core": "catalog:tooling", |
| 35 |
"@babel/preset-env": "catalog:tooling", |
| 36 |
"@babel/preset-typescript": "catalog:tooling", |
| 37 |
"@jest/globals": "29.5.x", |
| 38 |
"@types/jest": "29.5.x", |
| 39 |
"@types/jquery": "3.5.33", |
| 40 |
"@wordpress/browserslist-config": "next", |
| 41 |
"@wordpress/dependency-extraction-webpack-plugin": "next", |
| 42 |
"babel-loader": "9.2.x", |
| 43 |
"jest": "29.5.x", |
| 44 |
"typescript": "5.7.x", |
| 45 |
"webpack": "catalog:tooling", |
| 46 |
"webpack-cli": "5.1.x" |
| 47 |
}, |
| 48 |
"config": { |
| 49 |
"ci": { |
| 50 |
"tests": [ |
| 51 |
{ |
| 52 |
"name": "PHP: 8.1 WP: latest", |
| 53 |
"testType": "unit:php", |
| 54 |
"command": "test:php:ci", |
| 55 |
"changes": [ |
| 56 |
"composer.json", |
| 57 |
"composer.lock", |
| 58 |
"**/*.php" |
| 59 |
], |
| 60 |
"events": [ |
| 61 |
"pull_request", |
| 62 |
"push" |
| 63 |
] |
| 64 |
}, |
| 65 |
{ |
| 66 |
"name": "JS build and typecheck", |
| 67 |
"command": "build:ci", |
| 68 |
"changes": [ |
| 69 |
"package.json", |
| 70 |
"src/client/**/*.ts", |
| 71 |
"tsconfig.json", |
| 72 |
"webpack.config.js" |
| 73 |
], |
| 74 |
"events": [ |
| 75 |
"pull_request", |
| 76 |
"push" |
| 77 |
] |
| 78 |
} |
| 79 |
] |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
|