Skip to content

Latest commit

 

History

History
 
 

javascript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

JavaScript stuff

Requires Node.js, at least version 15.8.0. Run

$ npm install

or

$ yarn

to download NPM-dependencies.

Most important/interesting thing is to run

$ npm start

to run all these rules on all payloads in the dgc-testdata repo.

Code is written in TypeScript, with typings serving as documentation.

Organization

  • dist/: result of compiling TypeScript code to JavaScript. Run

      $ node dist/<scriptName>.js
    

    on the CLI.

  • src/: TypeScript code. Run tsc to compile that (non-bundled) to dist/. See comments in those files to find out their purposes. Entrypoints are: run-rules-on-testData, validate-testData-dcc, and run-query.

Development

Run

$ npm run build-watch

(or $ yarn build-watch) to continually (and incrementally) compile all TypeScript code.

Run

$ npm test

(or $ yarn test) to run unit tests once.

Run

$ npm run test-watch

(or $ yarn test-watch) to run unit tests once.

For testing, make sure to build first, or build in watch-mode.