我用yeoman yeogurt生成器來啓動我的項目。 生成的grunt文件使用(據我所知)include-all和grunt-jit來加載模塊。添加jekyll到yeogurt生成的gruntjs設置後堆棧溢出
我想要做的是將jekyll的建築物添加到此文件中。爲此,我安裝了grunt-jekyll。後來我在咕嚕/配置/編譯創建了一個簡單的配置文件/並添加以下內容:
// Configuration for jekyll task(s)
// Compiles the blog
'use strict';
var taskConfig = function(grunt) {
grunt.config.set('jekyll', {
options: { // Universal options
bundleExec: true,
src : '<%= jekyll %>'
},
dist: { // Target
options: { // Target options
dest: '<%= dist %>/blog',
config: '_config.yml,_config.build.yml'
}
}
});
};
module.exports = taskConfig;
創建這個文件後,我測試過,如果咕嚕仍然通過運行「咕嚕打造」和原來的工作,它沒有。我收到以下錯誤:
Running "useminPrepare:html" (useminPrepare) task
Going through dist/index.html to update the config
Looking for build script HTML comment blocks
Fatal error: Maximum call stack size exceeded
我不知道爲什麼我得到這個錯誤,因爲我並沒有告訴咕嚕做哲基爾任何事情(除了加載它),所以我不希望任何事情都變了。刪除文件使我的咕嚕設置功能沒有錯誤。
添加傑奇:DIST類似的錯誤,但正確的模塊中的咕嚕/任務/ build.js結果:
Running "jekyll:dist" (jekyll) task
Warning: Maximum call stack size exceeded Use --force to continue.
我不知道是否有幫助,但這裏是一些額外的信息我的設置:
- 節點v0.12.2
- 咕嚕:v0.4.5
- 咕嚕-CLI:v0.1.13
- 使用:玉石,SA SS,儀表盤
- gruntfile:https://gist.github.com/Boelensman1/95bb3ec7298377c8c4c9
- 的package.json:https://gist.github.com/Boelensman1/1f0c97a7d7720f9e2be4
- .yo-rc.json:https://gist.github.com/Boelensman1/cef88cb2cb925faa355d
- build.js:https://gist.github.com/Boelensman1/5f55c251648b881e3f2d
我想我犯了一個錯誤我jekyll配置文件,但我不知道在哪裏。如果有人能幫助我,將不勝感激。