File tree 4 files changed +330
-14
lines changed
4 files changed +330
-14
lines changed Original file line number Diff line number Diff line change 2
2
/dist
3
3
/example /node_modules
4
4
/example /dist
5
+ /example /server /*
5
6
/** /.dumi /tmp /*
6
7
/** /.dumi /theme /*
7
- .dumi /tmp-production
8
+ / ** / .dumi /tmp-production
8
9
.DS_Store
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /* eslint-disable no-console */
3
+ const express = require ( 'express' ) ;
4
+ const path = require ( 'path' ) ;
5
+
6
+ const app = express ( ) ;
7
+
8
+ // TODO: adapt publicPath field
9
+ app . use ( express . static ( path . join ( __dirname , 'example/dist' ) ) ) ;
10
+
11
+ const port = 3001 ;
12
+
13
+ app . listen ( port , ( ) => {
14
+ console . log ( `Server is running on port ${ port } ` ) ;
15
+ } ) ;
Original file line number Diff line number Diff line change 21
21
"scripts" : {
22
22
"build" : " father build" ,
23
23
"build:docs" : " cross-env APP_ROOT=example dumi build" ,
24
+ "site" : " node app.js" ,
24
25
"dev" : " father dev" ,
25
26
"docs" : " cross-env APP_ROOT=example dumi dev" ,
26
27
"lint" : " pnpm run lint:es && pnpm run lint:css" ,
72
73
"@utopia/eslint-config-react" : " ^0.0.13" ,
73
74
"@utopia/prettier-config-base" : " ^0.0.13" ,
74
75
"cross-env" : " ^7.0.3" ,
76
+ "express" : " ^4.18.2" ,
75
77
"father" : " ^4.2.2" ,
76
78
"father-plugin-dumi-theme" : " 1.0.0-rc.1" ,
77
79
"husky" : " ^8.0.3" ,
You can’t perform that action at this time.
0 commit comments