-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
148 lines (148 loc) · 4.42 KB
/
package.json
File metadata and controls
148 lines (148 loc) · 4.42 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "ai-agent-for-wp",
"version": "1.8.2",
"private": true,
"license": "GPL-2.0-or-later",
"scripts": {
"build": "wp-scripts build",
"postbuild": "node scripts/add-strict-types.js && npm run archive",
"prearchive": "composer install --no-dev -o",
"archive": "node scripts/archive.js",
"postarchive": "true || composer install",
"start": "wp-scripts start",
"lint:js": "wp-scripts lint-js src/",
"lint:js:fix": "wp-scripts lint-js src/ --fix",
"lint:css": "wp-scripts lint-style 'src/**/*.css'",
"lint:css:fix": "wp-scripts lint-style 'src/**/*.css' --fix",
"lint:php": "composer phpcs",
"lint:php:fix": "composer phpcbf",
"lint": "npm run lint:js && npm run lint:css && npm run lint:php",
"test:js": "wp-scripts test-unit-js",
"test:unit": "wp-scripts test-unit-js",
"test:e2e": "wp-scripts test-e2e",
"test:e2e:playwright": "playwright test",
"test:e2e:playwright:ui": "playwright test --ui",
"test:e2e:playwright:debug": "playwright test --debug",
"test:php": "wp-env run tests-wordpress bash -c 'cd /var/www/html/wp-content/plugins/gratis-ai-agent && php vendor/bin/phpunit'",
"test:php:testdox": "wp-env run tests-wordpress bash -c 'cd /var/www/html/wp-content/plugins/gratis-ai-agent && php vendor/bin/phpunit --testdox'",
"test:php:coverage": "wp-env run tests-wordpress bash -c 'cd /var/www/html/wp-content/plugins/gratis-ai-agent && php -d pcov.enabled=1 vendor/bin/phpunit --coverage-text'",
"wp-env": "wp-env",
"wp-env:start": "wp-env start",
"wp-env:stop": "wp-env stop",
"wp-env:clean": "wp-env clean all",
"prepare": "husky",
"postprepare": "node -e \"const f='.husky/_/husky.sh',fs=require('fs');if(fs.existsSync(f)){const c=fs.readFileSync(f,'utf8');if(!c.startsWith('#!'))fs.writeFileSync(f,'#!/usr/bin/env sh\\n'+c);}\"",
"size": "size-limit"
},
"devDependencies": {
"@playwright/test": "^1.58.2",
"@size-limit/file": "^12.0.1",
"@wordpress/e2e-test-utils-playwright": "^1.41.0",
"@wordpress/env": "^10.39.0",
"@wordpress/scripts": "^31.6.0",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"react-dom": "^18.3.1",
"size-limit": "^12.0.1"
},
"dependencies": {
"@codemirror/commands": "^6.10.3",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.11",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/lang-php": "^6.0.2",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/lang-rust": "^6.0.2",
"@codemirror/lang-sql": "^6.10.0",
"@codemirror/lang-yaml": "^6.1.2",
"@codemirror/language": "^6.12.2",
"@codemirror/state": "^6.6.0",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.40.0",
"@wordpress/api-fetch": "^7.36.0",
"@wordpress/components": "^30.7.0",
"@wordpress/compose": "^7.34.0",
"@wordpress/data": "^10.34.0",
"@wordpress/dom-ready": "^4.38.0",
"@wordpress/element": "^6.34.0",
"@wordpress/i18n": "^6.7.0",
"@wordpress/icons": "^11.1.0",
"@wordpress/notices": "^5.35.0",
"chart.js": "^4.5.1",
"html2canvas": "^1.4.1",
"react": "^18.3.1",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1"
},
"overrides": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@wp-playground/blueprints": {
"ajv": "^8.18.0"
},
"@wp-playground/cli": {
"ajv": "^8.18.0"
},
"@wp-playground/tools": {
"ajv": "^8.18.0"
},
"@typescript-eslint/typescript-estree": {
"minimatch": "^9.0.7"
},
"markdownlint-cli": {
"minimatch": "^3.1.5"
},
"flatted": "^3.4.0",
"immutable": "^5.1.5",
"serialize-javascript": "^7.0.4",
"svgo": "^3.3.3",
"webpack-dev-server": "^5.2.3",
"yauzl": "^3.2.1"
},
"lint-staged": {
"src/**/*.{js,jsx}": [
"wp-scripts lint-js --fix"
],
"src/**/*.css": [
"wp-scripts lint-style --fix"
],
"**/*.php": [
"bash -c 'vendor/bin/phpcbf \"$@\"; ec=$?; [ $ec -le 1 ] || exit $ec' --",
"vendor/bin/phpcs"
]
},
"size-limit": [
{
"name": "admin-page",
"path": "build/admin-page.js",
"limit": "400 KB",
"gzip": true
},
{
"name": "floating-widget",
"path": "build/floating-widget.js",
"limit": "400 KB",
"gzip": true
},
{
"name": "screen-meta",
"path": "build/screen-meta.js",
"limit": "400 KB",
"gzip": true
},
{
"name": "unified-admin",
"path": "build/unified-admin.js",
"limit": "500 KB",
"gzip": true
},
{
"name": "benchmark-page",
"path": "build/benchmark-page.js",
"limit": "100 KB",
"gzip": true
}
]
}