The following npm scripts lint:tdd and test:tdd run the tests and lint for files that are new of differ from
their correspondent on the branch develop. These rely on the git utility and uses command line tools usually
found on *UX systems.
{
"scripts": {
"lint:tdd": "NODE_PATH=./src nodemon --exec 'git diff develop --diff-filter=d --name-only | grep \"ts$\" | tr \"\\n\" \" \" | xargs eslint --ext .ts --fix'",
"test:tdd": "NODE_PATH=./src nodemon --exec 'git diff develop --diff-filter=d --name-only | grep \"ts$\" | tr \"\\n\" \" \" | xargs lab --sourcemaps'",
},
"devDependencies": {
"@hapi/lab": "^22.0.5",
"eslint": "^7.5.0",
"nodemon": "^2.0.4"
}
}