我从咕噜开始。我想从CLI执行几个php文件。
所以我用npm install --save-dev grunt-shell安装了grunt-shell
现在我有了这个文件:
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.
发布于 2016-02-13 10:13:38
嗯,我是从Grunt开始的,似乎节点的package.json是必需的。它与它一起工作!)
https://stackoverflow.com/questions/35376535
复制相似问题