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
選項咕嚕任務啓用?