Alex A. Naanou a19391d085 reworking cli...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2018-12-11 17:18:02 +03:00

63 lines
1.4 KiB
JavaScript
Executable File

#!/usr/bin/env node
/**********************************************************************
*
* ImageGrid.CLI entry point...
*
*
**********************************************************************/
//var DEBUG = DEBUG != null ? DEBUG : true
require('v8-compile-cache')
// NOTE: this fixes several issues with lib/util conflicting with stuff...
// XXX this might also pose some other issues within the repl, needs
// testing...
require('repl')
require('./cfg/requirejs')
nodeRequire =
global.nodeRequire =
require
require =
requirejs =
global.requirejs =
require('requirejs')
//---------------------------------------------------------------------
// XXX need to automate this...
var core = require('features/core')
var base = require('features/base')
var cli = require('features/cli')
var meta = require('features/meta')
/*********************************************************************/
// NOTE: this is here to simplify importing...
var ImageGridFeatures =
module.ImageGridFeatures =
core.ImageGridFeatures
//---------------------------------------------------------------------
// setup actions and start...
ImageGridFeatures
.setup([
'imagegrid-testing',
'imagegrid-commandline',
])
.start()
/**********************************************************************
* vim:set ts=4 sw=4 : */