Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Remove ADL/BMM Exporter - no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoesel committed Jun 4, 2019
1 parent 869a25f commit 83e03fe
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 53 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ $ node . --help
-l, --log-level <level> the console log level <fatal,error,warn,info,debug,trace> (default: info)
-m, --log-mode <mode> the console log mode <short,long,json,off> (default: short)
-s, --skip <feature> skip an export feature <fhir,json,cimcore,json-schema,es6,model-doc,all> (default: <none>)
-a, --adl run the adl exporter (default: false)
-o, --out <out> the path to the output folder (default: out)
-c, --config <config> the name of the config file (default: config.json)
-d, --duplicate show duplicate error messages (default: false)
Expand Down
19 changes: 0 additions & 19 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const shrJSE = require('shr-json-schema-export');
const shrEE = require('shr-es6-export');
const shrFE = require('shr-fhir-export');
const shrJDE = require('shr-json-javadoc');
const shrAE = require('shr-adl-bmm-export');
const LogCounter = require('./logcounter');
const SpecificationsFilter = require('./filter');

Expand All @@ -34,7 +33,6 @@ program
.option('-l, --log-level <level>', 'the console log level <fatal,error,warn,info,debug,trace>', /^(fatal|error|warn|info|debug|trace)$/i, 'info')
.option('-m, --log-mode <mode>', 'the console log mode <short,long,json,off>', /^(short|long|json|off)$/i, 'short')
.option('-s, --skip <feature>', 'skip an export feature <fhir,json,cimcore,json-schema,es6,model-doc,all>', collect, [])
.option('-a, --adl', 'run the adl exporter (default: false)')
.option('-o, --out <out>', `the path to the output folder`, path.join('.', 'out'))
.option('-c, --config <config>', 'the name of the config file', 'config.json')
.option('-d, --duplicate', 'show duplicate error messages (default: false)')
Expand All @@ -58,9 +56,6 @@ const doES6 = program.skip.every(a => a.toLowerCase() != 'es6' && a.toLowerCase(
const doModelDoc = program.skip.every(a => a.toLowerCase() != 'model-doc' && a.toLowerCase() != 'all');
const doCIMCORE = program.skip.every(a => a.toLowerCase() != 'cimcore' && a.toLowerCase() != 'all');

// Process the ADL flag
const doADL = program.adl;

// Process the de-duplicate error flag

const showDuplicateErrors = program.duplicate;
Expand Down Expand Up @@ -103,9 +98,6 @@ if (doJSONSchema) {
if (doModelDoc) {
shrJDE.setLogger(logger.child({ module: 'shr-json-javadoc' }));
}
if (doADL) {
shrAE.setLogger(logger.child({module: 'shr-adl-export'}));
}
if (doES6) {
shrEE.setLogger(logger.child({ module: 'shr-es6-export'}));
}
Expand Down Expand Up @@ -245,17 +237,6 @@ if (doCIMCORE) {
logger.info('Skipping CIMCORE export');
}

if (doADL) {
try {
shrAE.generateADLtoPath(expSpecifications, configSpecifications, program.out);
} catch (error) {
logger.fatal('Failure in ADL export. Aborting with error message: %s', error);
failedExports.push('shr-adl-bmm-export');
}
} else {
logger.info('Skipping ADL export');
}

if (doJSON) {
if (!importCimcore) {
try {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"commander": "^2.9.0",
"fs-extra": "^7.0.0",
"mkdirp": "^0.5.1",
"shr-adl-bmm-export": "^1.0.1",
"shr-es6-export": "^6.0.0-beta.1",
"shr-expand": "^6.0.0-beta.1",
"shr-fhir-export": "^6.0.0-beta.1",
Expand Down
4 changes: 0 additions & 4 deletions pull-all
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ cd ../shr-fhir-export
echo "================= shr-fhir-export =================="
git pull

cd ../shr-adl-bmm-export
echo "================= shr-adl-bmm-export =================="
git pull

cd ../shr-cli
echo "===================== shr-cli ======================"
git pull
5 changes: 0 additions & 5 deletions rebuild-all
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ echo "================= shr-fhir-export =================="
rm -rf node_modules
yarn

cd ../shr-adl-bmm-export
echo "================= shr-adl-bmm-export =================="
rm -rf node_modules
yarn

cd ../shr-cli
echo "===================== shr-cli ======================"
rm -rf node_modules
Expand Down
5 changes: 0 additions & 5 deletions yarn-link-all
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ yarn link shr-test-helpers
yarn link shr-fhir-export
yarn link

cd ../shr-adl-bmm-export
echo "=============== shr-adl-bmm-export ================="
yarn link

cd ../shr-cli
echo "===================== shr-cli ======================"
yarn link shr-models
Expand All @@ -69,4 +65,3 @@ yarn link shr-json-schema-export
yarn link shr-json-javadoc
yarn link shr-es6-export
yarn link shr-fhir-export
yarn link shr-adl-bmm-export
5 changes: 0 additions & 5 deletions yarn-unlink-all
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

echo "===================== shr-cli ======================"
yarn unlink shr-adl-bmm-export
yarn unlink shr-fhir-export
yarn unlink shr-es6-export
yarn unlink shr-json-schema-export
Expand All @@ -11,10 +10,6 @@ yarn unlink shr-text-import
yarn unlink shr-expand
yarn unlink shr-models

cd ../shr-adl-bmm-export
echo "=============== shr-adl-bmm-export ================="
yarn unlink

cd ../shr-es6-export
echo "================== shr-es6-export =================="
yarn unlink shr-models
Expand Down
14 changes: 1 addition & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ decamelize@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"

dedent-js@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/dedent-js/-/dedent-js-1.0.1.tgz#bee5fb7c9e727d85dffa24590d10ec1ab1255305"

deep-is@~0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
Expand Down Expand Up @@ -288,7 +284,7 @@ eslint-visitor-keys@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"

eslint@^4.19.1, eslint@^4.6.1:
eslint@^4.6.1:
version "4.19.1"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.19.1.tgz#32d1d653e1d90408854bfb296f076ec7e186a300"
dependencies:
Expand Down Expand Up @@ -944,14 +940,6 @@ showdown@^1.8.6:
dependencies:
yargs "^10.0.3"

shr-adl-bmm-export@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/shr-adl-bmm-export/-/shr-adl-bmm-export-1.0.1.tgz#e4272bd97dbcf6c387eaeb9a3b7a7c8acbc9a1a3"
dependencies:
bunyan "^1.8.12"
dedent-js "^1.0.1"
eslint "^4.19.1"

shr-es6-export@^6.0.0-beta.1:
version "6.0.0-beta.1"
resolved "https://registry.yarnpkg.com/shr-es6-export/-/shr-es6-export-6.0.0-beta.1.tgz#81e4bf410bcd9508e8654e245ac097976ed29223"
Expand Down

0 comments on commit 83e03fe

Please sign in to comment.