To test the repochecker and debug into the script under vscode:
-
Clone the repository to your local machine.
Best is that the directory is on the same level than your adapter repository. -
run npm install in the repochecker directory.
-
switch to your adapter repository and create a new launch configuration:
{
"name": "Launch Program",
"program": "../iobroker.repochecker/index.js", // path to the repochecker repo
// args as entered on the commandline, arguments as a array
"args": ["https://github.com/klein0r/ioBroker.luftdaten","--local"],
"request": "launch",
"stopOnEntry": true,
"runtimeExecutable": "<path to node/node.exe>", //optional if needed
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
To test the repochecker under vscode:
-
Clone the repository to your local machine.
Best is that the directory is on the same level than your adapter repository. -
run npm install in the repochecker directory.
-
switch to your adapter repository and enter the following commandline in a new terminal
node ..\ioBroker.repochecker\index.js https://github.com/klein0r/ioBroker.luftdaten --local
The following command should be entered in the root of your repository:
npx github:oweitman/iobroker.repochecker https://github.com/oweitman/ioBroker.luftdaten --local