2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-15 18:12:46 +00:00
thumbsup/bin/thumbsup.js
2014-04-22 00:13:47 +10:00

24 lines
709 B
JavaScript
Executable File

#!/usr/bin/env node
var program = require('commander');
var index = require('../src/index');
program
.version('0.0.1')
.option('--input <path>', 'Path to the folder with all photos/videos')
.option('--output <path>', 'Output path for the static website')
.option('--title <text>', 'Website title')
.option('--css <file>', 'Extra CSS file for styling')
.option('--thumb-size [pixels]', 'Thumbnail size in pixels (square)')
.option('--large-size [pixels]', 'Fullscreen size in pixels (height)')
.parse(process.argv);
index.build({
input: program.input,
output: program.output,
title: program.title,
css: program.css,
thumbSize: program.thumbSize,
largeSize: program.largeSize
});