You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
444 B

const crossEnv = require("cross-env")
const minimist = require("minimist")
const {join} = require("path")
const argv = minimist(process.argv.slice(2))
if (argv.build) {
crossEnv([
"NODE_ENV=production",
"npm run build:in"
])
} else {
crossEnv([
`STATIC=${join(__dirname, '../resource/electron/static')}`,
"PORT=3344",
"NODE_ENV=development",
"ts-node -r tsconfig-paths/register script/dev-runner --watch"
])
}