UNPKG

894 BJavaScriptView Raw
1//- JavaScript source code
2
3//- roll-up.js ~~
4//
5// NOTE: This file isn't just an example -- it is also used as part of the
6// QMachine project's unit tests :-)
7//
8// ~~ (c) SRW, 17 Dec 2012
9// ~~ last updated 21 Jan 2015
10
11(function () {
12 'use strict';
13
14 // Pragmas
15
16 /*jshint maxparams: 1, quotmark: single, strict: true */
17
18 /*jslint indent: 4, maxlen: 80, node: true */
19
20 /*properties argv, length, roll_up */
21
22 // Declarations
23
24 var directory, json_file;
25
26 // Definitions
27
28 directory = (process.argv.length > 2) ? process.argv[2] : 'public';
29
30 json_file = (process.argv.length > 3) ? process.argv[3] : 'katamari.json';
31
32 // Demonstration
33
34 require('../').roll_up(directory, json_file);
35
36 // That's all, folks!
37
38 return;
39
40}());
41
42//- vim:set syntax=javascript: