我正在构建自己的Wordpress Skeleton”应用程序”。在此应用程序中, 我具有以下文件:
- composer
- composer.json
- index.php
- wp-config.php
- wp-content
- WordPress(由作曲家组成)
这是此仓库的composer.json:https://raw.github.com/Gizburdt/Wordpress-Conductor/master/composer.json
问题是:Gizburdt / scaffold安装在供应商文件夹中, 而不是wp-content / themes /文件夹中。这是来自Gizburdt / scaffold的composer.json:https://raw.github.com/Gizburdt/Wordpress-Scaffold/master/composer.json
请帮忙!
#1
通过覆盖json包中的wordpress-plugin或wordpress-theme类型的包, 你将覆盖作曲者/安装者所做的”魔术”。
代替这个:
{
"type": "package", "package": {
"name": "gizburdt/scaffold", "version": "dev-master", "source": {
"url": "https://github.com/Gizburdt/Wordpress-Scaffold.git", "type": "git", "reference": "origin/master"
}
}
},
将其安装为VCS repo类型-然后它将从Wordpress-Scaffold项目中的composer.json中正确读取类型:
{
"type": "vcs", "url": "https://github.com/Gizburdt/Wordpress-Scaffold.git"
},
评论前必须登录!
注册