-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
139 lines (139 loc) · 5.51 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "iobroker.klf200",
"version": "1.3.5",
"description": "Controls products and scenes connected to a KLF-200 interface",
"author": {
"name": "Michael Schroeder",
"email": "[email protected]"
},
"homepage": "https://github.com/MiSchroe/ioBroker.klf200",
"license": "MIT",
"keywords": [
"KLF-200",
"VELUX",
"ioBroker"
],
"repository": {
"type": "git",
"url": "https://github.com/MiSchroe/ioBroker.klf200"
},
"engines": {
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.2.2",
"@iobroker/dm-utils": "^0.6.11",
"klf-200-api": "^5.0.2",
"net-ping": "^1.2.4",
"promise-timeout": "^1.3.0"
},
"devDependencies": {
"@alcalzone/release-script": "^3.8.0",
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^5.0.0",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.8",
"@types/debug": "^4.1.12",
"@types/deep-eql": "^4.0.2",
"@types/mocha": "^10.0.9",
"@types/node": "^18.19.40",
"@types/node-schedule": "^2.1.7",
"@types/promise-timeout": "^1.3.3",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.18.0",
"c8": "^10.1.2",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.2",
"cross-conf-env": "^1.3.0",
"cross-env": "^7.0.3",
"debug": "^4.3.6",
"deep-eql": "^5.0.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-prettier": "^5.2.1",
"gulp": "^5.0.0",
"mocha": "^10.8.2",
"mocha-junit-reporter": "^2.2.1",
"node-schedule": "^2.1.1",
"nyc": "^17.1.0",
"prettier": "^3.3.3",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.10",
"sinon": "^19.0.2",
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
},
"main": "build/main.js",
"scripts": {
"prebuild:adapter": "rimraf ./build",
"build:ts": "tsc -p tsconfig.build.json",
"build:admin": "gulp",
"build:adapter": "build-adapter typescript",
"build": "npm run build:adapter && npm run build:admin",
"watch:ts": "build-adapter typescript --watch",
"watch": "npm run watch:ts",
"test:ts": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha --config test/mocharc.custom.json src/{**/*,*}.test.ts",
"test:tstap": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha --config test/mocharc.custom.json src/{**/*,*}.test.ts --reporter tap",
"test:tsjunit": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha --config test/mocharc.custom.json src/{**/*,*}.test.ts --reporter mocha-junit-reporter",
"test:package": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha test/package --exit",
"test:packagetap": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha test/package --exit --reporter tap",
"test:packagejunit": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha test/package --exit --reporter mocha-junit-reporter",
"test:integration-debug": "cross-env DEBUG=-testing:integration:*,mockServer* mocha --config test/mocharc.integration.json --require test/mocha.debug.js test/integration.ts --exit --disable-timeouts",
"test:integration": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha --config test/mocharc.integration.json test/integration.ts --exit",
"test:integrationjunit": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha --config test/mocharc.integration.json test/integration.ts --exit --reporter mocha-junit-reporter",
"test": "npm run test:tstap && npm run test:packagetap",
"test:unit": "npm run test:ts",
"check": "tsc -p tsconfig.build.json --noEmit",
"coverage": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' c8 mocha --config test/mocharc.custom.json src/{**/*,*}.test.ts",
"coveragejunit": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' c8 --reporter=cobertura --reporter=html mocha --config test/mocharc.custom.json src/{**/*,*}.test.ts --reporter mocha-junit-reporter",
"lint": "eslint --ext .ts src",
"prepare": "npm run build",
"release": "release-script",
"translate": "translate-adapter",
"translate:src-admin": "translate-adapter --admin ./src-admin",
"deploy:container": "npm pack && cross-conf-env docker cp ./$npm_package_name-$npm_package_version.tgz iobroker:/opt/iobroker/tarballs/ && cross-conf-env docker exec iobroker npm install /opt/iobroker/tarballs/$npm_package_name-$npm_package_version.tgz --workdir /opt/iobroker && cross-conf-env docker exec iobroker iobroker upload klf200 && cross-conf-env docker exec iobroker iobroker restart klf200.0"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"src/{**/*,*}.test.ts"
],
"extension": [
".ts"
],
"require": [
"./test/mocha.setup.js",
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
},
"bugs": {
"url": "https://github.com/MiSchroe/ioBroker.klf200/issues"
},
"readmeFilename": "README.md",
"files": [
"build",
"admin",
"docs",
"img",
"io-package.json"
]
}