diff --git a/angular.json b/angular.json index dbbbef3..7e49192 100644 --- a/angular.json +++ b/angular.json @@ -48,14 +48,14 @@ ], "scripts":[ ], - "optimization": false + "optimization": true }, "configurations":{ "production":{ "budgets":[ { "type":"initial", - "maximumWarning":"5MB", + "maximumWarning":"15MB", "maximumError":"50MB" }, { @@ -117,4 +117,4 @@ } } } -} +} \ No newline at end of file diff --git a/newton/ipc.js b/newton/ipc.js index 32d2fce..533bf4b 100644 --- a/newton/ipc.js +++ b/newton/ipc.js @@ -41,14 +41,14 @@ const loadIPCServer = (fpath) => { }); ipcServer.listen(ipcServerPort, () => { - console.debug(`IPCServer is up on port ${ipcServerPort}`); + console.debug("IPCServer (start) : Started on port ", ipcServerPort, " ."); }); } const isIPCServerUp = async () => { const response = await fetch(`${ipcServerURL}/is-up`).catch((err) => { - console.debug(err); + console.debug("IPCServer (status) : Not up; okay to start."); return { text: () => { return "no"; @@ -78,4 +78,4 @@ module.exports = { isIPCServerUp: isIPCServerUp, sendFilesToIPC: sendFilesToIPC, } -}; +}; \ No newline at end of file diff --git a/newton/main.js b/newton/main.js index 3e4e7b9..fd10026 100644 --- a/newton/main.js +++ b/newton/main.js @@ -1,9 +1,3 @@ -try { - require('electron-reloader')(module) -} catch(error) { - console.log(error); -} - const { app, ipcMain } = require('electron'); const { newton } = require('./app'); @@ -86,4 +80,4 @@ process.on('unhandledRejection', function(error = {}) { if (error.stack != null) { console.log(error.stack); } -}); +}); \ No newline at end of file diff --git a/package.json b/package.json index 086a8bd..dea9dbc 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "scripts": { "app": "ng build --base-href ./ && electron . --trace-warnings --start-as=build", "electron-start": "electron . --trace-warnings --start-as=build", - "electron-pack": "electron-builder --dir", - "electron-dist": "electron-builder", - "electron-dist-all": "electron-builder -mwl", + "electron-pack": "ng build --base-href ./ && electron-builder --dir", + "electron-dist": "ng build --base-href ./ && electron-builder", + "electron-dist-all": "ng build --base-href ./ && electron-builder -mwl", "electron-concurrently": "concurrently 'ng serve' 'electron . --trace-warnings --start-as=ng-serve'", "ng-serve": "ng serve", "ng-build": "ng build", @@ -40,15 +40,10 @@ "postinstall": "electron-builder install-app-deps", "dependencies": { "@angular/cdk": "19.2.0", - "@angular/cli": "19.2.9", "@angular/common": "19.2.0", - "@angular/compiler": "19.2.0", "@angular/core": "19.2.0", "@angular/forms": "19.2.0", "@angular/platform-browser": "19.2.0", - "@angular/platform-browser-dynamic": "19.2.0", - "@angular/platform-server": "19.2.0", - "@angular/router": "19.2.0", "ace-builds": "1.41.0", "ace-linters": "1.5.3", "bootstrap": "5.3.6", @@ -59,7 +54,6 @@ "node-fetch": "3.3.2", "rxjs": "7.8.0", "socket.io": "4.8.1", - "tslib": "2.3.0", "uuid": "11.1.0", "zone.js": "0.15.0" }, @@ -73,13 +67,13 @@ "concurrently": "9.1.2", "electron": "36.2.0", "electron-builder": "26.0.12", - "electron-reloader": "1.2.3", "jasmine-core": "5.6.0", "karma": "6.4.0", "karma-chrome-launcher": "3.2.0", "karma-coverage": "2.2.0", "karma-jasmine": "5.1.0", "karma-jasmine-html-reporter": "2.1.0", - "typescript": "5.7.2" + "typescript": "5.7.2", + "tslib": "2.3.0" } -} +} \ No newline at end of file