File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 55
55
"test:js:watch" : " jest --watch" ,
56
56
"test:php" : " cd packages/core-php && composer run test" ,
57
57
"test" : " npm-run-all --parallel test:*" ,
58
+ "serve" : " node server.js" ,
58
59
"watch:icons" : " lerna exec --scope @bolt/components-icons -- yarn run watch"
59
60
},
60
61
"dependencies" : {
61
62
"sassdoc" : " ^2.5.0"
62
63
},
63
64
"devDependencies" : {
64
65
"editorconfig-checker" : " ^1.3.3" ,
66
+ "express" : " ^4.16.3" ,
65
67
"husky" : " ^0.14.3" ,
66
68
"jest" : " ^23.5.0" ,
67
69
"lerna" : " ^3.2.1" ,
Original file line number Diff line number Diff line change
1
+ const express = require ( 'express' ) ;
2
+ const { join } = require ( 'path' ) ;
3
+ const app = express ( ) ;
4
+
5
+ const port = process . env . PORT || 3123 ;
6
+
7
+ app . use ( express . static ( join ( __dirname , './www' ) ) ) ;
8
+
9
+ app . listen ( port , ( ) => {
10
+ console . log ( `Express listening on http://localhost:${ port } ` ) ;
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments