Wukong [悟空]
Next-gen for pluggable Static Site Generator, using generators via co and co-ware.
Koa and Metalsmith inspired.
In Wukong (likes in Metalsmith)
// files's middlewares // file's middlewares ;
APIs
File
path: String mode: Number // oct contents: String metadata: Object buffer: Buffer ...
Files
Before
'wukong.js' 'reset.css' ...
After
File File ...
createFile()
Create a File instance.
use(*plugin, [type])
Add a middleware for the file
object.
type
: before/after
build([*callback])
Start to build files.
run(file, files, *callback)
Run a set of file
, files
through the middleware stack
metadata([metadata])
Get/set metadata.
site([path])
Get/set site.
source([path])
Get/set source.
destination([path])
Get/set destination.
join([path...])
Join the current dir
Plugins
License
MIT