Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
107 lines (107 loc) · 3.84 KB
/
Copy pathpackage.json
File metadata and controls
107 lines (107 loc) · 3.84 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "newspack-intelligence",
"version": "0.13.0",
"private": true,
"description": "AI-driven team intelligence digest built on newspack-nodes.",
"author": "Automattic",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "npm run clean && node scripts/build.mjs",
"watch": "npm run clean && node scripts/build.mjs --watch",
"clean": "rm -rf build",
"release:archive": "./build-release.sh",
"fix:js": "eslint --fix --no-error-on-unmatched-pattern 'src/**/*.{js,jsx}' 'scripts/**/*.mjs'",
"fix:php": "./vendor/bin/phpcbf",
"fix:scss": "stylelint --customSyntax postcss-scss --fix 'src/**/*.scss'",
"format": "prettier --write 'src/**/*.{js,jsx,scss,json}'",
"format:js": "prettier --write 'src/**/*.{js,jsx}'",
"lint:js": "eslint --no-error-on-unmatched-pattern 'src/**/*.{js,jsx}' 'scripts/**/*.mjs' && node scripts/lint-comments.mjs . && node scripts/lint-contract.mjs",
"lint:php": "./vendor/bin/phpcs && php scripts/lint-comments.php .",
"lint:phpstan": "vendor/bin/phpstan analyse -c phpstan-deadcode.neon --memory-limit=2G --no-progress",
"lint:deadcode:js": "knip --no-progress",
"lint:scss": "stylelint --customSyntax postcss-scss 'src/**/*.scss'",
"lint:shell": "shellcheck scripts/pre-push scripts/pre-push.local scripts/*.sh",
"make-pot": "wp i18n make-pot . languages/newspack-intelligence.pot --domain=newspack-intelligence --exclude=node_modules,build,vendor,tests,release",
"test:js": "jest --passWithNoTests",
"test:js:coverage": "jest --passWithNoTests --coverage --collectCoverageFrom='src/**/*.{js,jsx}' --coverageReporters=json-summary --coverageReporters=text",
"lint:types": "tsc -p tsconfig.check.json --pretty false",
"lint:deadcode": "npm run lint:phpstan"
},
"dependencies": {
"@noble/hashes": "^2.2.0",
"@wordpress/api-fetch": "7.40.1",
"@wordpress/block-library": "9.40.2",
"@wordpress/blocks": "15.13.1",
"@wordpress/components": "32.2.1",
"@wordpress/element": "6.40.1",
"@wordpress/i18n": "6.13.1",
"@wordpress/icons": "11.7.1",
"d3": "^7.8.5"
},
"devDependencies": {
"@babel/parser": "^7.29.8",
"@babel/preset-env": "^7.29.5",
"@babel/preset-react": "^7.28.5",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^19.8.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.2",
"@wordpress/eslint-plugin": "^24.5.0",
"@wordpress/prettier-config": "^4.46.0",
"@wordpress/stylelint-config": "^23.38.0",
"babel-jest": "^30.4.1",
"esbuild": "^0.28.0",
"eslint": "^8.57.1",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"knip": "^6.31.0",
"lint-staged": "^15.5.2",
"postcss-scss": "^4.0.9",
"prettier": "npm:wp-prettier@^3.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rtlcss": "^4.3.0",
"sass": "^1.99.0",
"stylelint": "^16.26.1",
"typescript": "^6.0.3"
},
"lint-staged": {
"*.{js,jsx}": [
"eslint",
"node scripts/reorder-node-methods.js --check",
"node scripts/lint-comments.mjs",
"node scripts/lint-contract.mjs",
"sh -c 'npm run lint:deadcode:js --silent'",
"sh -c 'npm run lint:types --silent'"
],
"includes/**/*.php": [
"php scripts/reorder-node-methods.php --check"
],
"src/**/*.{js,jsx}": [
"node scripts/reorder-node-methods.js --check"
],
"*.scss": "stylelint --customSyntax postcss-scss",
"*.php": [
"./vendor/bin/phpcs",
"php scripts/reorder-node-methods.php --check",
"sh -c 'npm run lint:phpstan --silent'",
"php scripts/lint-comments.php",
"node scripts/lint-contract.mjs",
"php scripts/fix-blank-lines.php"
],
"*.sh": "shellcheck",
"scripts/pre-push": "shellcheck",
"scripts/pre-push.local": "shellcheck"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"overrides": {
"@typescript-eslint/typescript-estree": {
"minimatch": "^9.0.7"
},
"@babel/runtime": "^7.26.10",
"@babel/core": "^7.29.6",
"js-yaml": "^4.2.0"
}
}