私はうなり声から始めています。CLIからいくつかのphpファイルを実行したいと思います。
だから私はgrunt-shellをインストールしました
npm install --save-dev grunt-shell
今、私はこのgruntfileを持っています:
module.exports = function(grunt) {
grunt.initConfig({
shell: {
php: {
multiple: {
command: [
'php -f /home/leandro/oskar.php',
'php -f /home/leandro/oskar2.php'
].join('&')
}
}
}
});
grunt.registerTask('default', ['shell:php']);
};
タスクを呼び出すすべての組み合わせを試しましたが、出力は常に次のとおりです。
Warning: Task "shell:php" not found. Use --force to continue.
Aborted due to warnings.