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.
thumbsup/bin/thumbsup.js

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,
10 years ago
mediaPrefix: program.mediaPrefix,
size: program.size
});