mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(tryrequire) add from npm
This commit is contained in:
parent
102ec0731a
commit
7fe855edfe
9 changed files with 13 additions and 56 deletions
|
|
@ -5,10 +5,10 @@
|
|||
DIR_LIB = DIR + 'lib/',
|
||||
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
tryRequire = require('./tryRequire'),
|
||||
|
||||
tryRequire = require('tryrequire'),
|
||||
|
||||
express = tryRequire('express'),
|
||||
|
||||
logger = tryRequire('morgan'),
|
||||
|
||||
app = express && express();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue