Code coverage revealed that some parts of the code could be easily tested. Added these missing test cases and removed some dead code.
44 lines
1.0 KiB
JSON
44 lines
1.0 KiB
JSON
{
|
|
"name": "maxctrl",
|
|
"version": "1.0.0",
|
|
"description": "MaxScale Administrative Client",
|
|
"repository": "https://github.com/mariadb-corporation/MaxScale",
|
|
"main": "maxctrl.js",
|
|
"scripts": {
|
|
"test": "nyc mocha --exit --timeout 15000 --slow 10000",
|
|
"preinstall": "test -f lib/version.js || cp lib/version.js.in lib/version.js"
|
|
},
|
|
"keywords": [
|
|
"maxscale"
|
|
],
|
|
"bin": {
|
|
"maxctrl": "./maxctrl.js"
|
|
},
|
|
"author": "MariaDB Corporation Ab",
|
|
"license": "SEE LICENSE IN ../LICENSE.TXT",
|
|
"dependencies": {
|
|
"cli-table": "^0.3.1",
|
|
"globby": "^8.0.2",
|
|
"inquirer": "^6.2.1",
|
|
"inquirer-command-prompt": "0.0.8",
|
|
"lodash": "^4.17.14",
|
|
"lodash-getpath": "^0.2.4",
|
|
"readline-sync": "^1.4.9",
|
|
"request": "^2.88.0",
|
|
"request-promise-native": "^1.0.7",
|
|
"yargs": "^8.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"chai": "^3.5.0",
|
|
"chai-as-promised": "^6.0.0",
|
|
"mariadb": "^2.2.0",
|
|
"mocha": "^5.2.0",
|
|
"nyc": "^15.0.0"
|
|
},
|
|
"nyc": {
|
|
"include": [
|
|
"lib/*.js"
|
|
]
|
|
}
|
|
}
|