silverstripe / vendor-plugin-helper
帮助将供应商模块链接到公共webroot
1.0.0
2017-09-25 22:36 UTC
Requires
- composer/composer: ^1.5
- silverstripe/vendor-plugin: ^1.0
- symfony/console: ^3.3
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-08-29 04:09:17 UTC
README
在供应商目录中安装SilverStripe模块时,可能还需要确保某些模块资源暴露给webroot,因为默认情况下,'vendor' URL前缀被阻止通过web访问。
另请参阅:供应商插件
此实用程序允许设置这些路径,如果通过在安装中使用--no-plugins
禁用了vendor-plugin
。
有关此插件的信息,请参阅vendor-plugin github页面
安装
composer global require silverstripe/vendor-plugin-helper
echo 'export PATH=$PATH:~/.composer/vendor/bin/' >> ~/.bash_profile
命令
这两个命令都很相似:一个将供应商模块创建为符号链接,另一个将资源复制。默认情况下,用作公共webroot的根目录是resources
。
vendor-plugin-helper copy /path/to/www
vendor-plugin-helper link /path/to/www
可选参数
--target
链接资源的顶级文件夹。默认为resources