Generate a styleguide consist of "broccoli-html-editor" modules.
var Broccoli = require('broccoli-html-editor');
var BroccoliStuleGuideGen = require('broccoli-styleguide-generator');
var broccoli = new Broccoli();
broccoli.init({
/* 中略 */
}, function(){
var broccoliStyleGuideGen = new BroccoliStuleGuideGen({
"siteTitle": "Broccoli Sample",
"gpiBridge": function(api, options, callback){
// Brccoli の GPI への接続方法を実装してください。
broccooli.gpi(api, options, callback);
}
});
broccoliStyleGuideGen.generate(
'/path/to/dist/',
function(result){
console.log('done!');
}
);
});
MIT License
- Tomoya Koyanagi tomk79@gmail.com
- website: https://www.pxt.jp/
- Twitter: @tomk79 https://twitter.com/tomk79/