2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-17 15:25:50 +00:00
thumbsup/bin/thumbsup.js

20 lines
564 B
JavaScript
Raw Normal View History

#!/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,
size: program.size
});