|
@ -12,13 +12,13 @@ |
|
|
], |
|
|
], |
|
|
"scripts": { |
|
|
"scripts": { |
|
|
"build": "snowpack build", |
|
|
"build": "snowpack build", |
|
|
"dev": "snowpack dev", |
|
|
"dev": "NODE_ENV=development concurrently --kill-others --success first \"snowpack dev\" \"nodemon .\"", |
|
|
"prepublishOnly": "snowpack build", |
|
|
"prepublishOnly": "snowpack build", |
|
|
|
|
|
"lint": "eslint src/**/*.ts", |
|
|
"start": "NODE_ENV=production node .", |
|
|
"start": "NODE_ENV=production node .", |
|
|
"lint": "eslint --ext .ts,.js .", |
|
|
|
|
|
"contributor": "all-contributors", |
|
|
"contributor": "all-contributors", |
|
|
"test": "mocha -r babel-register-ts src/**/*.spec.ts", |
|
|
"test": "mocha -r babel-register-ts src/**/*.spec.ts", |
|
|
"clean": "bash build.sh --clean" |
|
|
"clean": "rm -rf build yarn-error.log" |
|
|
}, |
|
|
}, |
|
|
"repository": { |
|
|
"repository": { |
|
|
"type": "git", |
|
|
"type": "git", |
|
@ -56,24 +56,37 @@ |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
"snowpack": { |
|
|
"snowpack": { |
|
|
"install": [ |
|
|
"installOptions": { |
|
|
"@fortawesome/fontawesome-svg-core", |
|
|
"sourceMap": true, |
|
|
"@fortawesome/free-solid-svg-icons", |
|
|
"installTypes": true |
|
|
"file-type", |
|
|
}, |
|
|
"lodash", |
|
|
"mount": { |
|
|
"socket.io-client", |
|
|
"src/client": "/client", |
|
|
"toastify-js", |
|
|
"src/assets": "/assets" |
|
|
"xterm", |
|
|
}, |
|
|
"xterm-addon-fit" |
|
|
|
|
|
], |
|
|
|
|
|
"exclude": [ |
|
|
"exclude": [ |
|
|
"**" |
|
|
"src/server/**/*.ts", |
|
|
|
|
|
"src/*.ts" |
|
|
], |
|
|
], |
|
|
"plugins": [ |
|
|
"plugins": [ |
|
|
[ |
|
|
[ |
|
|
"@snowpack/plugin-run-script", |
|
|
"@snowpack/plugin-run-script", |
|
|
{ |
|
|
{ |
|
|
"cmd": "bash build.sh", |
|
|
"cmd": "tsc -p tsconfig.browser.json --noEmit", |
|
|
|
|
|
"watch": "$1 --watch" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
"@snowpack/plugin-run-script", |
|
|
|
|
|
{ |
|
|
|
|
|
"cmd": "sass src/assets/scss:build/assets/css --load-path=node_modules -s compressed --no-source-map", |
|
|
|
|
|
"watch": "$1 --watch" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
"@snowpack/plugin-run-script", |
|
|
|
|
|
{ |
|
|
|
|
|
"cmd": "tsc -p tsconfig.node.json", |
|
|
"watch": "$1 --watch" |
|
|
"watch": "$1 --watch" |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
@ -88,6 +101,7 @@ |
|
|
"file-type": "^12.3.0", |
|
|
"file-type": "^12.3.0", |
|
|
"fs-extra": "^8.1.0", |
|
|
"fs-extra": "^8.1.0", |
|
|
"helmet": "^3.20.1", |
|
|
"helmet": "^3.20.1", |
|
|
|
|
|
"json5": "^2.1.3", |
|
|
"lodash": "^4.17.19", |
|
|
"lodash": "^4.17.19", |
|
|
"node-pty": "^0.9.0", |
|
|
"node-pty": "^0.9.0", |
|
|
"node-sass-middleware": "^0.11.0", |
|
|
"node-sass-middleware": "^0.11.0", |
|
|