File tree 4 files changed +7
-13
lines changed
4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
- var wire = require ( '../../' ) ;
1
+ var app = require ( '../../' ) ( require ( './config' ) ) ;
2
+ app . server . bootstrap ( 3000 ) ;
2
3
3
- wire ( require ( './config' ) , function ( err , app ) { // Composite root
4
- if ( err ) throw err ;
5
- app . server . bootstrap ( 3000 ) ;
6
- } ) ;
Original file line number Diff line number Diff line change 1
- module . exports . needs = [ 'express-app' , 'winston' ] ;
2
1
module . exports . fn = function ( $ ) {
3
2
var app = $ [ "express-app" ] ( ) ;
4
3
@@ -12,3 +11,4 @@ module.exports.fn = function($) {
12
11
bootstrap : bootstrap
13
12
} ;
14
13
}
14
+ module . exports . needs = [ 'express-app' , 'winston' ] ;
Original file line number Diff line number Diff line change 1
- var wire = require ( '../../' ) ;
1
+ var app = require ( '../../' ) ( require ( './config' ) ) ;
2
+ app . server . bootstrap ( 3000 ) ;
2
3
3
- wire ( require ( './config' ) , function ( err , app ) { // Composite root
4
- if ( err ) throw err ;
5
- app . server . bootstrap ( 3000 ) ;
6
- } ) ;
Original file line number Diff line number Diff line change 1
- module . exports . needs = [ 'koa' , 'winston' , 'http' ] ;
2
1
module . exports . fn = function ( $ ) {
3
2
var app = $ . koa ( ) ;
4
3
var server = $ . http . Server ( app . callback ( ) )
@@ -12,4 +11,5 @@ module.exports.fn = function($) {
12
11
return {
13
12
bootstrap : bootstrap
14
13
} ;
15
- }
14
+ }
15
+ module . exports . needs = [ 'koa' , 'winston' , 'http' ] ;
You can’t perform that action at this time.
0 commit comments