更新:用户错误-TYPO!!grunt contrib咖啡错误查找文件&写入目的地
Update: USER ERROR - TYPO !! grunt-contrib-coffee error finding file & writing to destination
在我的Gruntfile.js中,我将咖啡任务配置为这样,并且src/
目录中存在一个文件script.coffee
:
coffee: {
dist: {
files: [{
/* FIX: exapand: true, */
expand: true,
cwd: 'src/',
src: '**/*.coffee',
dest: 'lib/',
ext: '.js'
}]
}
}
运行grunt coffee
时,我得到以下错误:
Running "coffee:dist" (coffee) task
>> Source file "script.coffee" not found.
>> Destination (lib/) not written because compiled files were empty.
script.coffee
的内容只是测试coffeescript配置的一些代码,当我从命令行运行coffee -c script.coffee
时,它会完美编译。
脚本。咖啡用于记录:
# A bubble sort implementation, sorting the given array in-place.
bubble_sort = (list) ->
for i in [0...list.length]
for j in [0...list.length - i] when list[j] > list[j + 1]
[list[j], list[j+1]] = [list[j + 1], list[j]]
list
# Test the function.
console.log bubble_sort([3, 2, 1]).join(' ') is '1 2 3'
console.log bubble_sort([9, 2, 7, 0, 1]).join(' ') is '0 1 2 7 9'
我在其他地方有其他项目使用相同的配置。。。我可以;我想不通这个问题。。。
有人有什么见解吗?
您在files: [{ exapand: true ... }]
中有一个拼写错误,应该是expand: true
。
相关文章:
- 错误处理try&catch+回调
- jquery 1.8.0语法错误,无法识别的表达式:>
- Jcrop&画布:裁剪区域的大小很奇怪;500内部服务器错误
- PHP&jQuery联系人表单错误
- jQuery:语法错误,无法识别的表达式:.Marketing&通讯
- HTML5拖拽&drop正在抛出undefined不是函数错误
- HTML&JavaScript未捕获引用错误:未定义addTable
- 更新:用户错误-TYPO!!grunt contrib咖啡错误查找文件&写入目的地
- 简单滑块语法&其他可能的错误
- 猫鼬&成员,记录被拒绝的原因:类型错误
- Firefox加载项验证提供了document.write&innerHTML错误
- Ember.js&Q单位:“;类型错误:对象#<对象>没有方法'getHandler'
- rails应用程序中的AJAX请求错误:xhr.send((options.hasContent&&op
- 在CKEditor&ASP.NET 4,对上载iframe错误的响应
- JavaScript未在IE7&8个,没有错误
- Ajax表单提交&Javascript确认错误
- 运行时错误&时间复杂性问题:最小化值|(A[0]+..+A[P-1])-(A[P]+..+A[N-1])|
- Selenium StaleElementReferenceException错误&页面加载完整代码不是常量.点
- Chrome中的错误&Safari在向下滚动时向导航添加一个粘性固定类,使其滚动到顶部
- 语法错误&函数未定义