0
我们使用Bower和Grunt。PHPCS/PHPCBF with Grunt without Global Install
运行后bower install
,我得到一个bower_components/phpcs
目录。
我咕噜任务设置为这样:
phpcbf: {
application: {
src: ['*.php']
},
options: {
bin: 'bower_components/phpcs',
}
}
然而,当我运行grunt phpcbf
,我得到的错误bower_components/phpcs: is a directory.
它甚至可能没有做的梨或作曲家安装运行此?
我认为的“bin”选项是一个二进制......你能描述你的“bower_components/phpcs”的内容目录? – CyrilleGuimezanes
内容是从squizlabs/PHP_CodeSniffer.git中检出的内容 - http://new.tinygrab.com/96412a96d2520f61a33955822ac8b740c7af66018f.png – frogg3862