2013-10-31 70 views
1

我試圖讓默認的Yeoman Webapp與Assemble.io一起工作。
我跟着這個教程Using assemble.io with yeoman.io’s webapp GruntfileYeoman Webapp與彙編組合

得到它&運行(部分),第一個問題我已經是時候改變對.hbs文件作出livereload不踢英寸當我手動刷新時,我可以看到所做的更改。

這是我的Grunt file

第二個問題是 '咕嚕打造' 給了我以下錯誤:
Running "requirejs:dist" (requirejs) task { [Error: Error: Missing either an "out" or "dir" config value. If using "appDir" for a full project optimization, use "dir". If you want to optimize to one file, use "out". at Function.build.createConfig ([MY DIRECTORY]/node_modules/grunt-contrib-requirejs/node_modules/requirejs/bin/r.js:25109:19) ] originalError: [Error: Missing either an "out" or "dir" config value. If using "appDir" for a full project optimization, use "dir". If you want to optimize to one file, use "out".] }

我用Google搜索周圍&當我添加以下requirejs:DIST:選擇

appDir: '<%= yeoman.app %>/', dir: 'build'

那麼這錯誤已解決,但接下來出現:

No "concat" targets found.
Warning: Task "concat" failed.
Use --force to continue.

版本:
Yeoman 1.0.4
Node 0.10.21
Bower 1.2.7
Grunt-cli 0.1.9
Grunt 0.4.1

任何人都看到了問題?謝謝!

回答

1

請參閱this line在您的要點。它試圖在Gruntfile中調用一個名爲concat的任務,但該任務不存在。 Yeoman webapp生成器可能發生了變化,或者您可能有複製/粘貼問題或其他問題。 Gruntfile的assemble部分看起來很好。

我認爲你可以刪除concat並繼續。