composer.json - Switch to composer-compile-lib. Add more helpers.
[civicrm-core.git] / composer.json
1 {
2 "name": "civicrm/civicrm-core",
3 "description": "Open source constituent relationship management for non-profits, NGOs and advocacy organizations.",
4 "type": "library",
5 "license": "AGPL-3.0",
6 "authors": [
7 {
8 "name": "Coleman Watts",
9 "role": "Product Manager"
10 },
11 {
12 "name": "Joshua Gowans",
13 "role": "Project Manager"
14 },
15 {
16 "name": "Mathieu Lutfy",
17 "role": "Infrastructure"
18 },
19 {
20 "name": "Tim Otten",
21 "role": "Software Architect"
22 },
23 {
24 "name": "CiviCRM Community",
25 "homepage": "https://civicrm.org"
26 }
27 ],
28 "autoload": {
29 "psr-0": {
30 "PHPUnit_": ["packages/"],
31 "Civi": "",
32 "Civi\\": ["tests/phpunit/"]
33 },
34 "psr-4": {
35 "Civi\\": [".", "Civi/", "setup/src/"]
36 }
37 },
38 "include-path": ["vendor/tecnickcom"],
39 "config": {
40 "platform": {
41 "php": "7.1"
42 }
43 },
44 "require": {
45 "php": "~7.1",
46 "cache/integration-tests": "~0.16.0",
47 "dompdf/dompdf" : "~0.8",
48 "electrolinux/phpquery": "^0.9.6",
49 "symfony/config": "~3.0 || ~4.4",
50 "symfony/polyfill-iconv": "~1.0",
51 "symfony/dependency-injection": "~3.0 || ~4.4",
52 "symfony/event-dispatcher": "~3.0 || ~4.4",
53 "symfony/filesystem": "~3.0 || ~4.4",
54 "symfony/process": "~3.0 || ~4.4",
55 "psr/log": "~1.0",
56 "symfony/finder": "~3.0 || ~4.4",
57 "tecnickcom/tcpdf" : "6.3.*",
58 "totten/ca-config": "~17.05",
59 "zetacomponents/base": "1.9.*",
60 "zetacomponents/mail": "1.9.*",
61 "marcj/topsort": "~1.1",
62 "phpoffice/phpword": "^0.15.0",
63 "pear/validate_finance_creditcard": "dev-master",
64 "civicrm/civicrm-cxn-rpc": "~0.19.01.08",
65 "pear/auth_sasl": "1.1.0",
66 "pear/net_smtp": "1.9.*",
67 "pear/net_socket": "1.0.*",
68 "pear/mail": "^1.4",
69 "guzzlehttp/guzzle": "^6.3",
70 "psr/simple-cache": "~1.0.1",
71 "cweagans/composer-patches": "~1.0",
72 "pear/log": "1.13.2",
73 "adrienrn/php-mimetyper": "0.2.2",
74 "civicrm/composer-downloads-plugin": "^2.0",
75 "league/csv": "^9.2",
76 "tplaner/when": "~3.0.0",
77 "xkerman/restricted-unserialize": "~1.1",
78 "typo3/phar-stream-wrapper": "^2 || ^3.0",
79 "brick/money": "~0.4",
80 "ext-intl": "*",
81 "pear/mail_mime": "~1.10",
82 "pear/db": "1.10",
83 "civicrm/composer-compile-lib": "~0.2 || ~1.0"
84 },
85 "scripts": {
86 "post-install-cmd": [
87 "bash tools/scripts/composer/dompdf-cleanup.sh",
88 "bash tools/scripts/composer/tcpdf-cleanup.sh",
89 "bash tools/scripts/composer/pear-exception-fix.sh",
90 "bash tools/scripts/composer/net-smtp-fix.sh",
91 "bash tools/scripts/composer/pear-mail-fix.sh",
92 "bash tools/scripts/composer/phpword-jquery.sh"
93 ],
94 "post-update-cmd": [
95 "bash tools/scripts/composer/dompdf-cleanup.sh",
96 "bash tools/scripts/composer/tcpdf-cleanup.sh",
97 "bash tools/scripts/composer/pear-exception-fix.sh",
98 "bash tools/scripts/composer/net-smtp-fix.sh",
99 "bash tools/scripts/composer/pear-mail-fix.sh",
100 "bash tools/scripts/composer/phpword-jquery.sh"
101 ]
102 },
103 "repositories": {
104 "tplaner-when-1ec099f421bff354cc5c929f83b94031423fc80": {
105 "type": "package",
106 "package": {
107 "version": "3.0.0+php53",
108 "dist": {"url": "https://github.com/tplaner/When/archive/c1ec099f421bff354cc5c929f83b94031423fc80.zip", "type": "zip"},
109 "name": "tplaner/when",
110 "type": "library",
111 "description": "Date/Calendar recursion library.",
112 "keywords": ["recurrence", "date", "time", "DateTime"],
113 "homepage": "https://github.com/tplaner/When",
114 "license": "MIT",
115 "authors": [{"name": "Tom Planer", "email": "tplaner@gmail.com"}],
116 "require": {"php": ">=5.3.0"},
117 "require-dev": {"phpunit/phpunit": "~4.0"},
118 "autoload": {"psr-4": {"When\\": "src/"}}
119 }
120 }
121 },
122 "extra": {
123 "downloads": {
124 "*": {
125 "path": "bower_components/{$id}"
126 },
127 "angular": {
128 "url": "https://github.com/angular/bower-angular/archive/v1.5.11.zip"
129 },
130 "angular-bootstrap": {
131 "url": "https://github.com/angular-ui/bootstrap-bower/archive/2.5.0.zip"
132 },
133 "angular-file-upload": {
134 "url": "https://github.com/nervgh/angular-file-upload/archive/v1.1.6.zip",
135 "ignore": ["examples"]
136 },
137 "angular-jquery-dialog-service": {
138 "url": "https://github.com/totten/angular-jquery-dialog-service/archive/v0.8.0-civicrm-1.0.zip"
139 },
140 "angular-mocks": {
141 "url": "https://github.com/angular/bower-angular-mocks/archive/v1.5.11.zip"
142 },
143 "angular-route": {
144 "url": "https://github.com/angular/bower-angular-route/archive/v1.5.11.zip"
145 },
146 "angular-sanitize": {
147 "url": "https://github.com/angular/bower-angular-sanitize/archive/v1.5.11.zip"
148 },
149 "angular-ui-sortable": {
150 "url": "https://github.com/angular-ui/ui-sortable/archive/v0.19.0.zip"
151 },
152 "angular-ui-utils": {
153 "url": "https://github.com/angular-ui/ui-utils/archive/v0.1.1.zip"
154 },
155 "angular-unsavedChanges": {
156 "url": "https://github.com/facultymatt/angular-unsavedChanges/archive/v0.1.1.zip",
157 "ignore": [".*", "node_modules", "bower_components", "test", "tests"]
158 },
159 "angular-xeditable": {
160 "url": "https://github.com/vitalets/angular-xeditable/archive/0.9.0.zip",
161 "ignore": [".*", "node_modules", "bower_components", "playground", "test", "libs", "docs", "zip", "src", "starter", "Gruntfile.js", "index.html", "jsdoc.conf.json", "package.json"]
162 },
163 "checklist-model": {
164 "url": "https://github.com/vitalets/checklist-model/archive/1.0.0.zip",
165 "ignore": [".*", "node_modules", "docs", "Gruntfile.js", "index.html", "package.json", "test"]
166 },
167 "ckeditor": {
168 "url": "https://github.com/ckeditor/ckeditor-releases/archive/4.14.0.zip"
169 },
170 "crossfilter-1.3.x": {
171 "url": "https://github.com/crossfilter/crossfilter/archive/1.3.14.zip",
172 "ignore": [".*", "node_modules", "bower_components", "src", "lib", "test", "component.json", "package.json", "index.js", "Makefile"]
173 },
174 "crossfilter2": {
175 "url": "https://github.com/crossfilter/crossfilter/archive/1.4.7.zip",
176 "ignore": [".*", "node_modules", "bower_components", "package.json", "index.js", "src", "component.json", "media", "test", "tests"]
177 },
178 "css-color-names": {
179 "url": "https://github.com/bahamas10/css-color-names/archive/v1.0.1.zip"
180 },
181 "d3": {
182 "url": "https://github.com/mbostock-bower/d3-bower/archive/v3.4.11.zip",
183 "ignore": [".DS_Store", ".git", ".gitignore", ".npmignore", ".travis.yml", "Makefile", "bin", "component.json", "index.js", "lib", "node_modules", "package.json", "src", "test"]
184 },
185 "d3-3.5.x": {
186 "url": "https://github.com/mbostock-bower/d3-bower/archive/v3.5.17.zip"
187 },
188 "datatables": {
189 "url": "https://github.com/DataTables/DataTables/archive/1.10.19.zip",
190 "ignore": ["/.*", "examples", "media/unit_testing", "composer.json", "dataTables.jquery.json", "package.json"]
191 },
192 "dc-2.1.x": {
193 "url": "https://github.com/NickQiZhu/dc.js/archive/2.1.10.zip",
194 "ignore": [".*", "style", "web", "*.json", "regression", "scripts", "spec", "src", "docs", "grunt", "Gruntfile.js", "Changelog.md", "welcome.md", "class-hierarchy.dot", "index.js", "CONTRIBUTING.md", "LICENSE_BANNER", "AUTHORS"]
195 },
196 "es6-promise": {
197 "url": "https://github.com/components/es6-promise/archive/v4.2.4.zip"
198 },
199 "ext-greenwich-bootstrap3": {
200 "url": "https://github.com/twbs/bootstrap-sass/archive/v{$version}.zip",
201 "path": "ext/greenwich/extern/bootstrap3",
202 "version": "3.4.1",
203 "ignore": ["test", "tasks", "lib"]
204 },
205 "font-awesome": {
206 "url": "https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip",
207 "ignore": ["*/.*", "*.json", "src", "*.yml", "Gemfile", "Gemfile.lock", "*.md"]
208 },
209 "marked": {
210 "url": "https://github.com/markedjs/marked/archive/v0.8.0.zip",
211 "ignore": [".*", "*.json", "*.md", "Makefile", "*/*"]
212 },
213 "google-code-prettify": {
214 "url": "https://github.com/tcollard/google-code-prettify/archive/v1.0.5.zip",
215 "ignore": ["closure-compiler", "js-modules", "tests", "yui-compressor", "Makefile", "examples", "*.html", "run_prettify*js"]
216 },
217 "jquery": {
218 "url": "https://github.com/civicrm/jquery/archive/1.12.4-civicrm-1.2.zip"
219 },
220 "jquery-ui": {
221 "url": "https://github.com/components/jqueryui/archive/1.12.1.zip"
222 },
223 "jquery-validation": {
224 "url": "https://github.com/jquery-validation/jquery-validation/archive/1.19.1.zip",
225 "ignore": [".*", "node_modules", "bower_components", "test", "demo", "lib"]
226 },
227 "jstree": {
228 "url": "https://github.com/vakata/jstree/archive/3.3.8.zip",
229 "ignore": [".*", "docs", "demo", "libs", "node_modules", "test", "libs", "jstree.jquery.json", "gruntfile.js", "package.json", "bower.json", "component.json", "LICENCE-MIT", "README.md"]
230 },
231 "lodash-compat": {
232 "url": "https://github.com/lodash/lodash-compat/archive/3.0.1.zip",
233 "ignore": [".*", "*.log", "*.md", "component.json", "package.json", "node_modules"]
234 },
235 "phantomjs-polyfill": {
236 "url": "https://github.com/conversocial/phantomjs-polyfill/archive/v0.0.2.zip"
237 },
238 "select2": {
239 "url": "https://github.com/colemanw/select2/archive/v3.5-civicrm-1.0.zip"
240 },
241 "js-yaml": {
242 "url": "https://github.com/nodeca/js-yaml/archive/3.13.1.zip",
243 "ignore": ["benchmark", "bin", "demo", "examples", "lib", "support", "test"]
244 },
245 "smartmenus": {
246 "url": "https://github.com/vadikom/smartmenus/archive/1.1.0.zip",
247 "ignore": [".gitignore", "Gruntfile.js"]
248 }
249 },
250 "patches": {
251 "adrienrn/php-mimetyper": {
252 "Update gitignore to ensure that sites that manage via git don't miss out on the important db.json file": "https://patch-diff.githubusercontent.com/raw/adrienrn/php-mimetyper/pull/15.patch"
253 },
254 "cache/integration-tests": {
255 "Allow adding tests": "https://github.com/php-cache/integration-tests/commit/05f97174c09364dc10c084a38ba0cfd5124f4cec.patch",
256 "Support PHPUnit 6+": "https://github.com/php-cache/integration-tests/commit/1ec7362962185df91d3d749bc3fa7e7b99cb9fc7.patch",
257 "Add tests for binary data round trip": "https://github.com/php-cache/integration-tests/commit/89cd7068e83aa776774bfc44f6bcba858c085616.patch"
258 },
259 "electrolinux/phpquery": {
260 "PHP7.4 Fix for array access using {} instead of []": "https://raw.githubusercontent.com/civicrm/civicrm-core/fe45bdfc4f3e3d3deb27e3d853cdbc7f616620a9/tools/scripts/composer/patches/php74_array_access_fix_phpquery.patch"
261 },
262 "pear/db": {
263 "Apply CiviCRM Customisations for the pear:db package": "https://raw.githubusercontent.com/civicrm/civicrm-core/a48a43c2b5f6d694fff1cfb99d522c5d9e2459a0/tools/scripts/composer/pear_db_civicrm_changes.patch"
264 },
265 "pear/mail": {
266 "Apply CiviCRM Customisations for CRM-1367 and CRM-5946": "https://raw.githubusercontent.com/civicrm/civicrm-core/36319938a5bf26c1e7e2110a26a65db6a5979268/tools/scripts/composer/patches/pear-mail.patch"
267 },
268 "pear/mail_mime": {
269 "Apply patch for CRM-3133 wordwrap body to be 750 characters to apply with RFC 2821": "https://raw.githubusercontent.com/civicrm/civicrm-core/74e25f27bb3be32519657539afe8a285c6c99a08/tools/scripts/composer/patches/mail_mime_crm_3133.patch"
270 },
271 "pear/net_smtp": {
272 "Add in CiviCRM custom error message for CRM-8744": "https://raw.githubusercontent.com/civicrm/civicrm-core/a6a0ff13d2a155ad962529595dceaef728116f96/tools/scripts/composer/patches/net-smtp-patch.patch"
273 },
274 "phpoffice/common": {
275 "Fix handling of libxml_disable_entity_loader": "https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/phpoffice-common-xml-entity-fix.patch"
276 },
277 "phpoffice/phpword": {
278 "Fix handling of libxml_disable_entity_loader": "https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/phpword-libxml-fix-global-handling.patch"
279 },
280 "zetacomponents/mail": {
281 "CiviCRM Custom Patches for ZetaCompoents mail": "https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/civicrm-custom-patches-zetacompoents-mail.patch"
282 }
283 },
284 "compile-includes": ["ext/greenwich/composer.compile.json"],
285 "compile-whitelist": ["civicrm/composer-compile-lib"]
286 }
287 }