File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ require ( "fs" ) . readFile ( "config.json" , function ( err , data ) {
2+ if ( err ) {
3+ throw new Error ( err ) ;
4+ }
5+
6+ require ( "../lib/node-devserver" ) . apply ( null , JSON . parse ( data . toString ( ) ) ) . listen ( 8080 ) ;
7+ } ) ;
Original file line number Diff line number Diff line change 11{
2- "name" : " devserver" ,
3- "version" : " 0.1.1" ,
4- "description" : " Simple local development server" ,
5- "author" : {
6- "name" : " Mikael Karon" ,
7- "email" : " mikael@karon.se"
8- },
9- "repository" : {
10- "type" : " git" ,
11- "url" : " http://github.com/mikaelkaron/node-devserver.git"
12- },
13- "dependencies" : {
14- "cli" : " 0.4.x" ,
15- "async" : " 0.1.x" ,
16- "connect" : " 2.5.x" ,
17- "http-proxy" : " 0.8.x" ,
18- "pause" : " 0.0.x" ,
19- "send" : " 0.1.x" ,
20- "xregexp" : " 2.0.x"
21- },
22- "main" : " ./lib/node-devserver" ,
23- "bin" : " ./bin/node-devserver"
2+ "name" :" devserver" ,
3+ "version" :" 0.2.0" ,
4+ "description" :" Simple local development server" ,
5+
6+ "author" :{
7+ "name" :" Mikael Karon" ,
8+ "email" :" mikael@karon.se" ,
9+ "url" :" https://github.com/mikaelkaron"
10+ },
11+
12+ "bugs" :{
13+ "url" :" https://github.com/mikaelkaron/node-devserver/issues"
14+ },
15+
16+ "repository" :{
17+ "type" :" git" ,
18+ "url" :" http://github.com/mikaelkaron/node-devserver.git"
19+ },
20+
21+ "dependencies" :{
22+ "connect" :" 2.5.x" ,
23+ "cli" :" 0.4.x" ,
24+ "http-proxy" :" 0.8.x" ,
25+ "pause" :" 0.0.x" ,
26+ "send" :" 0.1.x" ,
27+ "xregexp" :" 2.0.x"
28+ },
29+
30+ "directories" :{
31+ "lib" :" ./lib" ,
32+ "bin" :" ./bin" ,
33+ "example" :" ./example"
34+ },
35+
36+ "main" :" ./lib/node-devserver"
2437}
You can’t perform that action at this time.
0 commit comments