所以我正在做一个教程(关于linting的章节),我得到了这些错误
jakefile.js failed
4: task("default", ["lint"]);
'task' is not defined.
7: task("lint", [],function(){
'task' is not defined.
6: desc("Lint everything");
'desc' is not defined.
9: var files = new jake.FileList();
'jake' is not defined.
和'修复'是将以下内容放在jakefile.js
的顶部/*global desc, task, jake, fail, complete */
,而
这是什么奇怪的事?
杰克docs我发现没有提到这是一种特殊的jake语法。
但它肯定不是常规JavaScript ......它是特殊的lint语法吗?