Skip to content

Commit

Permalink
feat(application): add support for dynamic application configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinTh committed Aug 3, 2023
1 parent 692816a commit 4b58ab0
Show file tree
Hide file tree
Showing 56 changed files with 4,229 additions and 736 deletions.
35 changes: 25 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"copy": "node api-copy.js",
"secret": "node api-secret.js",
"prebuild": "npm run copy && npm run secret && cross-env NODE_ENV=production webpack --mode production",
"build:win": "npm run prebuild && build --tasks win-x64 --concurrent --mirror https://dl.nwjs.io/ . && npm run cp:bin:win",
"cp:bin:win": "cross-var cpy ./bin ./dist/$npm_package_name_$npm_package_version_winx64",
"copy:win": "cross-var cpy ./bin ./dist/$npm_package_name_$npm_package_version_winx64",
"build:win": "npm run prebuild && build --tasks win-x64 --concurrent --mirror https://dl.nwjs.io/ . && npm run copy:win",
"make:win": "node win-compile.js",
"checksum:win": "cross-var \"checksum -a sha256 ./release/winx64/$npm_package_name_$npm_package_version_winx64.exe > ./release/winx64/$npm_package_name_$npm_package_version_winx64.sha256sum\"",
"publish:win": "npm run make:win && npm run checksum:win",
"cp:bin:mac": "cross-var 'cpy ./bin \"./dist/$npm_package_name_$npm_package_version_macx64/MyoRatio.app/Contents/Resources/app.nw\"'",
"copy:mac": "cross-var 'cpy ./bin \"./dist/$npm_package_name_$npm_package_version_macx64/MyoRatio.app/Contents/Resources/app.nw\"'",
"chmod:mac": "cross-var 'chmod -R 755 \"./dist/$npm_package_name_$npm_package_version_macx64/MyoRatio.app/Contents/Resources/app.nw/bin\"'",
"build:mac": "npm run prebuild && build --tasks mac-x64 --concurrent --mirror https://dl.nwjs.io/ . && npm run cp:bin:mac && npm run chmod:mac",
"build:mac": "npm run prebuild && build --tasks mac-x64 --concurrent --mirror https://dl.nwjs.io/ . && npm run copy:mac && npm run chmod:mac",
"rename-dmg": "cross-var 'mv \"./release/macx64/MyoRatio $npm_package_version.dmg\" ./release/macx64/$npm_package_name_$npm_package_version_macx64.dmg'",
"checksum:mac": "cd ./release/macx64 && cross-var 'checksum -a sha256 $npm_package_name_$npm_package_version_macx64.dmg > $npm_package_name_$npm_package_version_macx64.sha256sum'",
"publish:mac": "mkdir -p ./release/macx64 && cross-var 'create-dmg \"./dist/$npm_package_name_$npm_package_version_macx64/MyoRatio.app\" ./release/macx64' && npm run rename-dmg && npm run checksum:mac",
Expand Down Expand Up @@ -55,7 +55,7 @@
"chromium-args": "--disable-raf-throttling",
"build": {
"appId": "ca.liaralab.myoratio",
"nwVersion": "0.76.0",
"nwVersion": "0.77.0",
"nwFlavor": "normal",
"packed": false,
"targets": [],
Expand Down Expand Up @@ -132,7 +132,7 @@
"html-webpack-plugin": "^5.5.1",
"innosetup-compiler": "^6.2.0",
"mini-css-extract-plugin": "^2.7.5",
"nw": "^0.77.0",
"nw": "^0.77.0-sdk",
"path-browserify": "^1.0.1",
"pre-commit": "^1.2.2",
"prettier": "^3.0.0",
Expand All @@ -152,7 +152,9 @@
"chart.js": "^3.9.1",
"chartjs-plugin-crosshair": "^1.2.0",
"dayjs": "^1.11.9",
"slim-select": "^2.6.0",
"sweetalert2": "^11.7.16",
"uuid": "^9.0.0",
"yup": "^1.2.0"
}
}
22 changes: 11 additions & 11 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "MyoRatio-Dev",
"main": "http://localhost:4000",
"node-remote": "http://localhost/*",
"window": {
"title": "MyoRatio Dev",
"icon": "./assets/icons/app.png",
"height": 720,
"width": 1280,
"resizable": true,
"position": "center"
}
"name": "MyoRatio-Dev",
"main": "http://localhost:4000",
"node-remote": "http://localhost/*",
"window": {
"title": "MyoRatio Dev",
"icon": "./assets/icons/app.png",
"height": 720,
"width": 1280,
"resizable": true,
"position": "center"
}
}
Loading

0 comments on commit 4b58ab0

Please sign in to comment.