我有一个composer.json
像这样的文件:
{
"require": {
"components/jquery": "*",
"ajbdev/requirejs": "dev-master"
}
}
但我只想得到ajbdev/requirejs/require.js
文件。我怎样才能用 Composer 做到这一点?
编辑:
正如@dev-null-dweller 建议的那样,以下对我有用,但它是最好的解决方案吗?
{
"require": {
"components/jquery": "*"
},
"scripts": {
"post-autoload-dump": "rm -rf vendor/ajbdev && mkdir vendor/ajbdev && mkdir vendor/ajbdev/requirejs && wget -q --no-check-certificate -O vendor/ajbdev/requirejs/require.js https://raw.github.com/ajbdev/requirejs/master/require.js"
}
}