mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Added test server
Run npm start for demo on localhost
This commit is contained in:
3367
package-lock.json
generated
Normal file
3367
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,7 @@
|
||||
"scripts": {
|
||||
"prebuild": "grunt clean:build",
|
||||
"build": "grunt build",
|
||||
"start": "npx nodemon utils/server.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
@@ -27,11 +28,13 @@
|
||||
},
|
||||
"homepage": "https://github.com/kriffe/litegraph.js#readme",
|
||||
"devDependencies": {
|
||||
"express": "^4.16.2",
|
||||
"google-closure-compiler": "^20171112.0.0",
|
||||
"grunt": "^1.0.1",
|
||||
"grunt-closure-tools": "^1.0.0",
|
||||
"grunt-contrib-clean": "^1.1.0",
|
||||
"grunt-contrib-concat": "^1.0.1",
|
||||
"grunt-contrib-copy": "^1.0.0"
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"nodemon": "^1.14.7"
|
||||
}
|
||||
}
|
||||
|
||||
12
utils/server.js
Normal file
12
utils/server.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const express = require('express')
|
||||
const app = express()
|
||||
|
||||
// app.get('/hello', (req, res) => res.send('Hello World!'))
|
||||
|
||||
app.use('/css', express.static('css'))
|
||||
app.use('/src', express.static('src'))
|
||||
app.use('/external', express.static('external'))
|
||||
app.use('/demo', express.static('demo'))
|
||||
app.use('/', express.static('demo'))
|
||||
|
||||
app.listen(80, () => console.log('Example app listening on port 80!'))
|
||||
Reference in New Issue
Block a user