UNPKG

patriot

Version:

Patriot command-line interface and node.js library.

32 lines (26 loc) 586 B
/*! * Module dependencies. */ var patriot = require('../main'); /** * $ patriot build * * Build a specific platform. Eventually, it should support building multiple * platforms. * * Options: * * - `argv` {Object} is an optimist object. * - `callback` {Function} is a completion callback. * - `e` {Error} is null unless there was an error. */ module.exports = function (argv, callback) { // options var data = { folder: argv.folder || argv.f }; // build patriot.build(data, function (e, data) { callback(e, data); }); };