forked from Artificial-Pancreas/iAPS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use original oref0 profile script (Artificial-Pancreas#805)
- Loading branch information
1 parent
91cbc7a
commit 089aef1
Showing
34 changed files
with
76 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,7 @@ fastlane/FastlaneRunner | |
|
||
ConfigOverride.xcconfig | ||
|
||
branch.txt | ||
branch.txt | ||
package-lock.json | ||
node_modules | ||
oref0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"scripts": { | ||
"build": "webpack --config ./scripts/webpack.config.js" | ||
}, | ||
"devDependencies": { | ||
"webpack-cli": "^5.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
const path = require('path'); | ||
const TerserPlugin = require("terser-webpack-plugin"); | ||
|
||
const libPath = process.env['OREF0_DIST_PATH'] || './lib' | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: { | ||
iob: './lib/iob/index.js', | ||
meal: './lib/meal/index.js', | ||
"determineBasal": './lib/determine-basal/determine-basal.js', | ||
"glucoseGetLast": './lib/glucose-get-last.js', | ||
"basalSetTemp": './lib/basal-set-temp.js', | ||
autosens: './lib/determine-basal/autosens.js', | ||
profile: './lib/profile/index.js', | ||
"autotunePrep": './lib/autotune-prep/index.js', | ||
"autotuneCore": './lib/autotune/index.js' | ||
iob: path.resolve(libPath, 'iob/index.js'), | ||
meal: path.resolve(libPath, 'meal/index.js'), | ||
determineBasal: path.resolve(libPath, 'determine-basal/determine-basal.js'), | ||
glucoseGetLast: path.resolve(libPath, 'glucose-get-last.js'), | ||
basalSetTemp: path.resolve(libPath, 'basal-set-temp.js'), | ||
autosens: path.resolve(libPath, 'determine-basal/autosens.js'), | ||
profile: path.resolve(libPath, 'profile/index.js'), | ||
autotunePrep: path.resolve(libPath, 'autotune-prep/index.js'), | ||
autotuneCore: path.resolve(libPath, 'autotune/index.js') | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
path: path.resolve(__dirname, '..', 'FreeAPS', 'Resources', 'javascript', 'bundle'), | ||
filename: (pathData) => { | ||
return pathData.chunk.name.replace(/[A-Z]/g, function(match) { | ||
return '-' + match.toLowerCase(); | ||
}) + '.js'; | ||
}, | ||
libraryTarget: 'var', | ||
library: 'freeaps_[name]' | ||
library: { | ||
type: 'var', | ||
name: 'freeaps_[name]' | ||
} | ||
}, | ||
optimization: { | ||
minimize: true, | ||
minimizer: [new TerserPlugin()], | ||
minimizer: [new TerserPlugin({ | ||
extractComments: false, | ||
parallel: true, | ||
terserOptions: { | ||
format: { | ||
comments: false, | ||
}, | ||
}, | ||
})], | ||
}, | ||
}; |