0
基础上grunt.options
documentation,我期待能够以编程开始咕噜任务与force
选项打开,像这样:grunt.option(“力”,真)不工作
var grunt = require('grunt');
grunt.option('force', true);
grunt.tasks(['test']);
我的预期这相当于从命令行运行grunt test --force
。但force
选项没有被应用:
Warning: Task "karma:unit" failed. Use --force to continue.
如何以编程开始与force
选项咕噜任务启用?