1
我以grunt开头。 我想从CLI执行几个php文件。从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.