如何为某个需要的包设置安装路径在composer.phar?
How to set a installation path in composer.phar for a certain required package?
我已经为 TYPO3 CMS 8 设置了一个需求列表,并希望添加 ck 编辑器以供一般使用(也在扩展中)。
...
"require": {
"helhum/typo3-console": "^4.9.3 || ^5.2",
"typo3/cms-about": "^8.7.10",
"typo3/cms-belog": "^8.7.10",
"typo3/cms-beuser": "^8.7.10",
"typo3/cms-context-help": "^8.7.10",
"typo3/cms-documentation": "^8.7.10",
"typo3/cms-felogin": "^8.7.10",
"typo3/cms-fluid-styled-content": "^8.7.10",
"typo3/cms-form": "^8.7.10",
"typo3/cms-func": "^8.7.10",
"typo3/cms-impexp": "^8.7.10",
"typo3/cms-info": "^8.7.10",
"typo3/cms-info-pagetsconfig": "^8.7.10",
"typo3/cms-rte-ckeditor": "^8.7.10",
"typo3/cms-setup": "^8.7.10",
"typo3/cms-sys-note": "^8.7.10",
"typo3/cms-t3editor": "^8.7.10",
"typo3/cms-tstemplate": "^8.7.10",
"typo3/cms-viewpage": "^8.7.10",
"typo3/cms-wizard-crpages": "^8.7.10",
"typo3/cms-wizard-sortpages": "^8.7.10",
"typo3-ter/extension-builder": "^8.10.2",
"typo3-ter/realurl": "^2.4.0",
"ckeditor/ckeditor": "4.*"
},
...
"extra": {
"typo3/cms": {
"web-dir": "public"
},
"helhum/typo3-console": {
"comment": "This option is not needed ay more for helhum/typo3-console 5.x",
"install-extension-dummy": false
}
},
...
如何将 ckeditor 软件包的安装路径更改为 /public/vendor/
路径而不是一般的 /vendor
路径?我需要这个,因为我的 Apache 直接植根于 /public
文件夹。
为什么不把所有供应商都放到 public/vendor?
供应商目录
默认为供应商。您可以将依赖项安装到不同的
目录,如果你想。 $HOME 和 ~ 将替换为您的家
vendor-dir 中的目录路径和下面的所有 *-dir 选项。
我正在使用符号 link 将 vendor/ckeditor/ckeditor
放入我的 TYPO3 CMS 扩展程序中,例如 resources/public/ckeditor
.
我已经为 TYPO3 CMS 8 设置了一个需求列表,并希望添加 ck 编辑器以供一般使用(也在扩展中)。
...
"require": {
"helhum/typo3-console": "^4.9.3 || ^5.2",
"typo3/cms-about": "^8.7.10",
"typo3/cms-belog": "^8.7.10",
"typo3/cms-beuser": "^8.7.10",
"typo3/cms-context-help": "^8.7.10",
"typo3/cms-documentation": "^8.7.10",
"typo3/cms-felogin": "^8.7.10",
"typo3/cms-fluid-styled-content": "^8.7.10",
"typo3/cms-form": "^8.7.10",
"typo3/cms-func": "^8.7.10",
"typo3/cms-impexp": "^8.7.10",
"typo3/cms-info": "^8.7.10",
"typo3/cms-info-pagetsconfig": "^8.7.10",
"typo3/cms-rte-ckeditor": "^8.7.10",
"typo3/cms-setup": "^8.7.10",
"typo3/cms-sys-note": "^8.7.10",
"typo3/cms-t3editor": "^8.7.10",
"typo3/cms-tstemplate": "^8.7.10",
"typo3/cms-viewpage": "^8.7.10",
"typo3/cms-wizard-crpages": "^8.7.10",
"typo3/cms-wizard-sortpages": "^8.7.10",
"typo3-ter/extension-builder": "^8.10.2",
"typo3-ter/realurl": "^2.4.0",
"ckeditor/ckeditor": "4.*"
},
...
"extra": {
"typo3/cms": {
"web-dir": "public"
},
"helhum/typo3-console": {
"comment": "This option is not needed ay more for helhum/typo3-console 5.x",
"install-extension-dummy": false
}
},
...
如何将 ckeditor 软件包的安装路径更改为 /public/vendor/
路径而不是一般的 /vendor
路径?我需要这个,因为我的 Apache 直接植根于 /public
文件夹。
为什么不把所有供应商都放到 public/vendor?
供应商目录
默认为供应商。您可以将依赖项安装到不同的 目录,如果你想。 $HOME 和 ~ 将替换为您的家 vendor-dir 中的目录路径和下面的所有 *-dir 选项。
我正在使用符号 link 将 vendor/ckeditor/ckeditor
放入我的 TYPO3 CMS 扩展程序中,例如 resources/public/ckeditor
.