nodeversion12.xor greater, withts-nodeinstalled globallynpm install -g ts-node
Docker
To use the Makefile provided in this directory to translate CQL into ELM JSON:
- Navigate to the
test/unit/fixtures/elmdirectory in the command line - Put your CQL in a file (or multiple files) in the
elmdirectory, with the.cqlextension - run
makein this directory.makewill:- Start the translation service in Docker (if not already started)
- Translate all files in the
elmdirectory into ELM JSON - Place the translated JSON files into
output/
If the translation service returns any errors from translation, the parser will output errors for the first file it comes to with errors. That file, and any after it, will not be written to output/
The translation service is called with EnableAnnotations and EnableLocators set, through URL query parameters.
To stop the translation service, run make clean. This will not delete any translated JSON in output/.
package.json has a script for building all of the CQL files within the test/unit/fixtures/elm directory:
npm run build:elm-fixturesThis will translate all CQL files within the elm/ directory structure to the output/ directory. It will then clean up the translation service. The user can inspect translated files and decide whether to replace the existing fixture.