-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
257 lines (257 loc) · 11.4 KB
/
Copy pathcomposer.json
File metadata and controls
257 lines (257 loc) · 11.4 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
{
"$schema": "https://getcomposer.org/schema.json",
"name": "akeeba/grafida",
"type": "project",
"description": "Grafida — a cross-platform desktop application to create and edit Joomla! articles via the Joomla Web Services API.",
"keywords": ["joomla", "desktop", "editor", "boson", "articles"],
"homepage": "https://github.com/akeeba/grafida",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Nicholas K. Dionysopoulos",
"homepage": "https://www.akeeba.com"
}
],
"require": {
"php": "^8.4",
"boson-php/http-static-provider": "^0.19",
"boson-php/runtime": "^0.19",
"boson-php/webview-ext-web-components": "^0.19",
"joomla/database": "^4.0",
"joomla/di": "^4.0",
"joomla/language": "^3.0",
"league/commonmark": "^2.4",
"symfony/html-sanitizer": "^8.1"
},
"autoload": {
"psr-4": {
"Grafida\\": "src"
}
},
"require-dev": {
"boson-php/compiler": "^0.19",
"friendsofphp/php-cs-fixer": "^3.88",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^12.4",
"symfony/dotenv": "^8.1",
"symfony/var-dumper": "^6.4|^7.0|^8.0"
},
"autoload-dev": {
"psr-4": {
"Grafida\\Tests\\": "tests",
"Grafida\\Build\\": "build/composer"
}
},
"scripts-aliases": {
"test:unit": ["unit"],
"test:integration": ["integration"],
"linter:check": ["linter", "stan"],
"phpcs:check": ["phpcs", "cs", "psr", "per"]
},
"scripts": {
"post-create-project-cmd": "boson init",
"post-install-cmd": ["@vendor:assets"],
"post-update-cmd": ["@vendor:assets"],
"vendor:assets": [
"npm install",
"Grafida\\Build\\InstallationScript::copyStatic",
"Grafida\\Build\\InstallationScript::minify"
],
"compile": "boson compile",
"build": "bash scripts/build-all.sh",
"docs:wiki": "bash scripts/sync-wiki.sh",
"build:git": "phing git",
"build:package": "phing package",
"start": "phing run",
"test": ["@test:unit", "@test:integration", "@test:feature", "@test:js"],
"test:unit": "phpunit --testsuite=unit --testdox",
"test:feature": "phpunit --testsuite=feature --testdox",
"test:integration": "phpunit --testsuite=integration --testdox",
"test:js": "node --test 'tests/js/**/*.test.mjs'",
"linter:check": "phpstan analyse --configuration phpstan.neon --memory-limit 256M",
"linter:baseline": "@linter:check --generate-baseline",
"phpcs:check": "@phpcs:fix --dry-run",
"phpcs:fix": "php-cs-fixer fix --config=.php-cs-fixer.php --allow-risky=yes --verbose --diff"
},
"scripts-descriptions": {
"vendor:assets": "Fetch the pinned front-end libraries (TinyMCE, CodeMirror, FontAwesome) via npm and copy them into their gitignored locations under assets/private/. Runs automatically after composer install/update.",
"compile": "Compile self-contained binaries for every target in boson.json (output under ./build).",
"build": "Compile and package Grafida for every platform: macOS .app/.dmg, Linux .tar.gz, Windows installer/zip, and the PHAR (artifacts in build/dist/).",
"docs:wiki": "Publish docs/ to the project's GitHub wiki (a separate repository). The same thing `phing wiki` does, and a step of `phing release`. Pass --dry-run to prepare build/wiki-repo without committing or pushing.",
"build:git": "Build the native binaries for every platform via Phing (the `git` target) — binaries only, no installers/DMG packaging. Requires Phing on the PATH.",
"build:package": "Build AND package the application for every platform via Phing (the `package` target) — macOS .app/.dmg, Linux .tar.gz, Windows installer/zip, and the PHAR into build/dist/. Requires Phing on the PATH.",
"start": "Compile the binary for THIS host (the matching git-* target) and launch it, via the Phing `run` target. Requires Phing on the PATH.",
"test:js": "Run the JavaScript unit tests (node's built-in runner; node is already a build prerequisite). Covers assets/private/js/ai/providers.js — the AI transport — which PHPUnit cannot reach because it runs in the SPA.",
"test:integration": "Run the integration suite. The LIVE AI provider tests in it are SKIPPED unless GRAFIDA_TEST_RESPONSES_ENDPOINT and GRAFIDA_TEST_RESPONSES_MODEL are set in the environment (see tests/Integration/Ai/ResponsesApiLiveTest.php)."
},
"extra": {
"copy-static": [
{
"type": "file",
"from": "node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css",
"to": "assets/private/css/fontawesome.min.css"
},
{
"type": "file",
"from": "node_modules/@fortawesome/fontawesome-free/css/solid.min.css",
"to": "assets/private/css/solid.min.css"
},
{
"type": "file",
"from": "node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2",
"to": "assets/private/webfonts/fa-solid-900.woff2"
},
{
"type": "file",
"from": "node_modules/@fortawesome/fontawesome-free/LICENSE.txt",
"to": "assets/private/webfonts/FONTAWESOME-LICENSE.txt"
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce/icons",
"to": "assets/private/js/tinymce/icons"
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce/models",
"to": "assets/private/js/tinymce/models"
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce/plugins",
"to": "assets/private/js/tinymce/plugins"
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce/skins",
"to": "assets/private/js/tinymce/skins"
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce/themes",
"to": "assets/private/js/tinymce/themes"
},
{
"type": "folder",
"from": "node_modules/tinymce",
"to": "assets/private/js/tinymce",
"names": ["tinymce.min.js"]
},
{
"type": "folder",
"clean": true,
"from": "node_modules/tinymce-i18n/langs8",
"to": "assets/private/js/tinymce/langs",
"names": ["de.js", "el.js", "es.js", "fr-FR.js", "it.js", "pt-PT.js"]
},
{
"type": "file",
"from": "node_modules/codemirror/lib/codemirror.js",
"to": "assets/private/js/codemirror/lib/codemirror.js"
},
{
"type": "file",
"from": "node_modules/codemirror/lib/codemirror.css",
"to": "assets/private/js/codemirror/lib/codemirror.css"
},
{
"type": "file",
"from": "node_modules/codemirror/mode/xml/xml.js",
"to": "assets/private/js/codemirror/mode/xml/xml.js"
},
{
"type": "file",
"from": "node_modules/codemirror/mode/javascript/javascript.js",
"to": "assets/private/js/codemirror/mode/javascript/javascript.js"
},
{
"type": "file",
"from": "node_modules/codemirror/mode/css/css.js",
"to": "assets/private/js/codemirror/mode/css/css.js"
},
{
"type": "file",
"from": "node_modules/codemirror/mode/htmlmixed/htmlmixed.js",
"to": "assets/private/js/codemirror/mode/htmlmixed/htmlmixed.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/edit/matchbrackets.js",
"to": "assets/private/js/codemirror/addon/edit/matchbrackets.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/edit/closetag.js",
"to": "assets/private/js/codemirror/addon/edit/closetag.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/fold/xml-fold.js",
"to": "assets/private/js/codemirror/addon/fold/xml-fold.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/dialog/dialog.js",
"to": "assets/private/js/codemirror/addon/dialog/dialog.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/dialog/dialog.css",
"to": "assets/private/js/codemirror/addon/dialog/dialog.css"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/search/searchcursor.js",
"to": "assets/private/js/codemirror/addon/search/searchcursor.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/search/search.js",
"to": "assets/private/js/codemirror/addon/search/search.js"
},
{
"type": "file",
"from": "node_modules/codemirror/addon/search/jump-to-line.js",
"to": "assets/private/js/codemirror/addon/search/jump-to-line.js"
},
{
"type": "file",
"from": "node_modules/codemirror/theme/material-darker.css",
"to": "assets/private/js/codemirror/theme/material-darker.css"
}
],
"minify": {
"js": [
"assets/private/js/codemirror/lib/codemirror.js",
"assets/private/js/codemirror/mode/xml/xml.js",
"assets/private/js/codemirror/mode/javascript/javascript.js",
"assets/private/js/codemirror/mode/css/css.js",
"assets/private/js/codemirror/mode/htmlmixed/htmlmixed.js",
"assets/private/js/codemirror/addon/edit/matchbrackets.js",
"assets/private/js/codemirror/addon/edit/closetag.js",
"assets/private/js/codemirror/addon/fold/xml-fold.js",
"assets/private/js/codemirror/addon/dialog/dialog.js",
"assets/private/js/codemirror/addon/search/searchcursor.js",
"assets/private/js/codemirror/addon/search/search.js",
"assets/private/js/codemirror/addon/search/jump-to-line.js"
],
"css": [
"assets/private/js/codemirror/lib/codemirror.css",
"assets/private/js/codemirror/theme/material-darker.css",
"assets/private/js/codemirror/addon/dialog/dialog.css"
]
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}