File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 2
2
"author" : " Brian Gonzalez" ,
3
3
"name" : " jquery.adaptive-backgrounds" ,
4
4
"description" : " A simple jQuery plugin to extract the dominant color of an image and apply it to the background of its parent element." ,
5
- "version" : " 1.0.1 " ,
5
+ "version" : " 1.0.2 " ,
6
6
"repository" : {
7
7
"url" : " http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/"
8
8
},
9
9
"main" : " ./dist/jquery.adaptive-backgrounds.min" ,
10
- "dependencies" : {},
11
10
"devDependencies" : {
11
+ "express" : " ^4.8.5" ,
12
+ "serve-index" : " ^1.1.6"
12
13
},
13
- "optionalDependencies" : {},
14
14
"engines" : {
15
15
"node" : " *"
16
16
}
Original file line number Diff line number Diff line change
1
+ var express = require ( 'express' ) ;
2
+ var serveIndex = require ( 'serve-index' ) ;
3
+ var app = express ( ) ;
4
+
5
+ // var index = serveIndex('public/ftp', {'icons': true})
6
+
7
+ app . use ( express . static ( __dirname ) ) ;
8
+ app . use ( '/' , serveIndex ( __dirname , { 'icons' : true } ) ) ;
9
+
10
+ var port = 11111 ;
11
+ console . log ( ' ** Serving static content on port ' + port ) ;
12
+ app . listen ( process . env . PORT || 11111 ) ;
You can’t perform that action at this time.
0 commit comments