2014-04-18 22:24:20 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var program = require('commander');
|
|
|
|
var index = require('../src/index');
|
|
|
|
|
|
|
|
program
|
|
|
|
.version('0.0.1')
|
|
|
|
.option('-i, --input [path]', 'Path to the folder with all photos/videos')
|
|
|
|
.option('-o, --output [path]', 'Output path for the static website')
|
|
|
|
.option('-p, --media-prefix [url]', 'URL prefix for all media')
|
|
|
|
.option('-s, --size [pixels]', 'Thumbnail size in pixels (square)', '100')
|
|
|
|
.parse(process.argv);
|
|
|
|
|
|
|
|
index.build({
|
|
|
|
input: program.input,
|
|
|
|
output: program.output,
|
2014-04-19 14:19:33 +00:00
|
|
|
mediaPrefix: program.mediaPrefix,
|
2014-04-18 22:24:20 +00:00
|
|
|
size: program.size
|
|
|
|
});
|