mirror of https://github.com/thumbsup/thumbsup
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
564 B
JavaScript
20 lines
564 B
JavaScript
#!/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,
|
|
mediaPrefix: program.mediaPrefix,
|
|
size: program.size
|
|
});
|