Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#263) - Support for CHT Core 4.11 #264

Merged
merged 25 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
declare -A cht_versions=(
["cht-core-4-6"]="4.6.0"
["cht-core-4-8"]="4.8.1"
)

exit_on_error() {
Expand Down Expand Up @@ -36,7 +36,8 @@ for version in "${!cht_versions[@]}"; do
fi

kennsippell marked this conversation as resolved.
Show resolved Hide resolved
git clone https://github.com/medic/cht-core.git build/"$version"
(cd build/"$version" && git reset --hard "${cht_versions[$version]}")
(cd build/"$version" && git checkout 4.8.1-FR-improved-contact-summary-targets)
kennsippell marked this conversation as resolved.
Show resolved Hide resolved
(cd build/"$version" && git reset --hard)
(cd build/"$version" && git clean -df)

(cd build/"$version" && npm ci)
Expand Down
1 change: 1 addition & 0 deletions cht-bundles/all-chts-bundle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
'4.6': require('../dist/cht-core-4-6/cht-core-bundle.dev'),
'4.8': require('../dist/cht-core-4-8/cht-core-bundle.dev'),
};
12 changes: 12 additions & 0 deletions cht-bundles/cht-core-4-8/bundle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
ddocs: require('../../build/cht-core-4-8-ddocs.json'),
RegistrationUtils: require('../../build/cht-core-4-8/shared-libs/registration-utils'),
CalendarInterval: require('../../build/cht-core-4-8/shared-libs/calendar-interval'),
RulesEngineCore: require('../../build/cht-core-4-8/shared-libs/rules-engine'),
ContactTypesUtils: require('../../build/cht-core-4-8/shared-libs/contact-types-utils'),
RulesEmitter: require('../../build/cht-core-4-8/shared-libs/rules-engine/src/rules-emitter'),
nootils: require('../../build/cht-core-4-8/node_modules/cht-nootils'),
Lineage: require('../../build/cht-core-4-8/shared-libs/lineage'),
ChtScriptApi: require('../../build/cht-core-4-8/shared-libs/cht-script-api'),
convertFormXmlToXFormModel: require('../../build/cht-core-4-8/api/src/services/generate-xform.js').generate,
};
6 changes: 6 additions & 0 deletions cht-bundles/cht-core-4-8/xsl-paths.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path');

module.exports = {
FORM_STYLESHEET: path.join(__dirname, '../dist/cht-core-4-8/xsl/openrosa2html5form.xsl'),
MODEL_STYLESHEET: path.join(__dirname, '../dist/cht-core-4-8/enketo-transformer/xsl/openrosa2xmlmodel.xsl'),
};
1 change: 1 addition & 0 deletions cht-bundles/webpack.config.cht-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = env => [
],
},
{
mode: 'development',
entry: [
`./build/${env.cht}/build/cht-form/main.js`,
`./build/${env.cht}/build/cht-form/polyfills.js`,
Expand Down
80,304 changes: 79,762 additions & 542 deletions dist/all-chts-bundle.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/all-chts-bundle.dev.js.map

Large diffs are not rendered by default.

Binary file added dist/cht-core-4-8/NotoSans-Bold.ttf
Binary file not shown.
Binary file added dist/cht-core-4-8/NotoSans-Regular.ttf
Binary file not shown.
Loading
Loading