This commit is contained in:
parent
4c0488e8e9
commit
8a22a15f86
@ -11,9 +11,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:scss": "npx sass src/static/css:dist/static/css",
|
"build:scss": "npx sass src/static/css:dist/static/css",
|
||||||
"copy:html": "cp src/static/*.* dist/static",
|
"copy:html": "cp src/static/*.* dist/static",
|
||||||
"build:js:fe": "npx tsc src/static/js/*.ts --outDir dist/static/js",
|
"build": "npx tsc && npm run build:scss && npm run copy:html",
|
||||||
"build:js:be": "npx tsc --skipLibCheck src/*.ts --outDir dist",
|
|
||||||
"build": "npm run build:js:fe && npm run build:js:be && npm run build:scss && npm run copy:html",
|
|
||||||
"start": "npm run build && node dist/server.js",
|
"start": "npm run build && node dist/server.js",
|
||||||
"dev": "npm run build && npx ts-node src/server.ts"
|
"dev": "npm run build && npx ts-node src/server.ts"
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import HttpServer from './http';
|
import HttpServer from './http';
|
||||||
import IO, { ISensors } from './io';
|
import IO, { ISensors } from './io';
|
||||||
import VideoSocket from './ws';
|
import VideoSocket from './ws';
|
||||||
import * as programs from './programs.json'
|
import programs from './programs.json'
|
||||||
|
|
||||||
const HTTP_PORT = process.env.HTTP_PORT ? parseInt(process.env.HTTP_PORT, 10) : 8080;
|
const HTTP_PORT = process.env.HTTP_PORT ? parseInt(process.env.HTTP_PORT, 10) : 8080;
|
||||||
const WS_PORT = process.env.WS_PORT ? parseInt(process.env.WS_PORT, 10) : 3003;
|
const WS_PORT = process.env.WS_PORT ? parseInt(process.env.WS_PORT, 10) : 3003;
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
"skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
"skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"],
|
"include": ["src/**/*.ts", "src/**/*.json"],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules","./node_modules/@roamhq/wrtc"
|
"node_modules","./node_modules/@roamhq/wrtc"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user