我正在尝试为我正在处理的项目设置作曲家。该项目基本上是一个wordpress网站,位于一些回购。我想在下面完成的工作如下:
.htaccess
,.git
和.gitignore
从我们下载的repodir/*
仓库移至项目根目录上一级(无法正常工作)< / LI>
repodir/plugins/customplugin
文件夹移动到根目录中的wp-content/plugins/*
(不正在工作)目前正在下载所有内容,但文件分散在repo目录和packagist创建的wp内容之间,而post-install-cmd
似乎不起作用。
以前有人遇到过这个问题吗?也许有一种更清洁的方法来处理这个问题?
我感谢任何建议。
这就是我的尝试:
{
"repositories": [
{
"type": "package",
"package": {
"name": "somepackage",
"version": "1.0",
"source": {
"url": "https://github.com/somepackage/somepackage.com.git",
"type": "git",
"reference": "master"
}
}
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"somepackage": "1.0",
"wpackagist-plugin/revslider": "*",
"wpackagist-theme/storefront": "2.2.5"
},
"config": {
"vendor-dir": "/"
},
"scripts": {
"post-install-cmd": [
"mv ./repodir/.git ./*",
"mv ./repodir/.gitignore ./*",
"mv ./repodir/.htaccess ./*",
"mv ./repodir/wp-content/plugins/plugindir ./wp-content/plugins/*"
]
}
}