我正在使用 angular-fullstack yeoman 生成器,代码构建在我设置的另一台机器上。我最近买了一台新的 Mac 并克隆了我的 repo,但我无法用它来构建发行版。
当我尝试使用构建分发代码时
grunt build
它使 cdnify:dist 任务失败,并出现错误“致命错误:未定义构建器”
我完整的 Gruntfile.js 在这里
https://gist.github.com/bodagetta/ad770f7782b52a9e8fb0
这是终端的相关输出
Running "concat:generated" (concat) task
File .tmp/concat/app/vendor.css created.
File .tmp/concat/app/app.css created.
File .tmp/concat/app/vendor.js created.
File .tmp/concat/app/app.js created.
Running "ngAnnotate:dist" (ngAnnotate) task
>> 2 files successfully generated.
Running "copy:dist" (copy) task
Created 197 directories, copied 1028 files
Running "cdnify:dist" (cdnify) task
Going through dist/public/index.html to update script refs
Fatal error: builder is not defined
Execution Time (2015-05-17 17:31:09 UTC)
loading tasks 75ms ▇▇ 1%
clean:dist 97ms ▇▇ 2%
concurrent:dist 1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16%
wiredep:target 197ms ▇▇▇▇▇ 3%
useminPrepare:html 144ms ▇▇▇ 2%
ngtemplates:main 95ms ▇▇ 2%
concat:generated 145ms ▇▇▇ 2%
ngAnnotate:dist 1.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 19%
copy:dist 1.6s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 25%
cdnify:dist 1.6s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 26%
Total 6.3s