package: update deps & build

scripts
This commit is contained in:
bordun 2020-03-24 11:17:46 +01:00
parent 987f12bdd0
commit 4816009480
2 changed files with 16 additions and 20 deletions

View file

@ -20,12 +20,12 @@
"homepage": "http://openstagecontrol.ammd.net/",
"license": "GPL-3.0",
"dependencies": {
"@babel/core": "7.8.3",
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
"@babel/polyfill": "7.8.3",
"@babel/preset-env": "7.8.3",
"@babel/core": "7.9.0",
"@babel/plugin-proposal-object-rest-spread": "7.9.0",
"@babel/polyfill": "7.8.7",
"@babel/preset-env": "7.9.0",
"ansi-html": "0.0.7",
"babel-eslint": "10.0.3",
"babel-eslint": "10.1.0",
"babelify": "10.0.0",
"bonjour": "github:jean-emmanuel/bonjour",
"browserify": "16.5.0",
@ -34,7 +34,7 @@
"cpr": "3.0.1",
"deep-extend": "0.6.0",
"electron-localshortcut": "3.2.1",
"electron-packager": "14.2.0",
"electron-packager": "14.2.1",
"electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2",
"env-paths": "2.2.0",
"eslint": "6.8.0",
@ -42,15 +42,14 @@
"file-saver": "2.0.2",
"gyronorm": "2.0.6",
"jquery": "3.4.1",
"json5": "2.1.1",
"json5": "2.1.2",
"jsondiffpatch": "0.4.1",
"keyboardjs": "github:jean-emmanuel/KeyboardJS",
"licensify": "3.1.3",
"loop-protect": "github:jean-emmanuel/loop-protect#v1.0.1",
"mathjs": "5.10.0",
"minimatch": "3.0.4",
"nanohtml": "1.9.0",
"nanoid": "2.1.10",
"nanohtml": "1.9.1",
"nanoid": "2.1.11",
"nanomorph": "5.4.0",
"node-sass": "4.13.1",
"nodemon": "2.0.2",
@ -58,9 +57,9 @@
"osc": "2.4.0",
"python-shell": "1.0.8",
"replacestream": "^4.0.3",
"sanitize-html": "1.20.1",
"sanitize-html": "1.22.1",
"scope-css": "1.2.1",
"screenfull": "5.0.1",
"screenfull": "5.0.2",
"send": "0.17.1",
"sortablejs": "1.10.2",
"source-map-support": "0.5.16",
@ -68,8 +67,8 @@
"through": "2.3.8",
"uglifyify": "5.0.2",
"webworkify": "1.5.0",
"ws": "7.2.1",
"yargs": "15.1.0"
"ws": "7.2.3",
"yargs": "15.3.1"
},
"optionalDependencies": {
"electron": "7.1.11",
@ -86,7 +85,7 @@
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
"debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png",
"build-css": "node scripts/build-css.js",
"build-js": "npm run build-launcher-js && npm run build-client-js -- --prod && npm run build-server-js",
"build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js",
"build-client-js": "node scripts/build-client.js",
"build-launcher-js": "node scripts/build-launcher.js",
"build-server-js": "node scripts/build-server.js",

View file

@ -3,7 +3,6 @@ var build = require('./build'),
babelify = require('babelify'),
nanohtml = require('nanohtml'),
watch = process.argv.includes('--watch'),
prod = process.argv.includes('--prod'),
through = require('through'),
minimatch = require('minimatch').Minimatch
@ -24,10 +23,8 @@ var transforms = [
[transformWrapper(babelify)]
]
if (prod) {
console.warn('\033[36m=> Building minified client bundle, this may take a while...\033[0m')
transforms.push([transformWrapper(require('uglifyify')), {global: true}])
}
console.warn('\033[36m=> Building compressed client scripts...\033[0m')
transforms.push([transformWrapper(require('uglifyify')), {global: true}])
var bundle = build({
input: '../src/client/index.js',