This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
227 lines (227 loc) · 9.75 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
{
"name": "smarties-core",
"version": "0.1.15",
"description": "Smarties core module",
"main": "SmartiesRunner.js",
"engines": {
"node": "14.15.1"
},
"engineStrict": true,
"nyc": {
"exclude": [
"**/*Form.js",
"**/forms/*",
"**/logger/*",
"**/internal-plugins/*-sensor/*",
"**/modules/pluginsmanager/publicapis/*",
"**/modules/camerasmanager/*",
"**/internal-plugins/rflink/*",
"**/internal-plugins/openweather/*",
"**/internal-plugins/esp*",
"**/internal-plugins/trash-reminder*",
"**/internal-plugins/sms*",
"**/internal-plugins/homebridge/*",
"**/internal-plugins/tplink-tl-mr6400/*",
"**/modules/logmanager/*",
"**/modules/backupmanager/*",
"**/internal-plugins/huawei*",
"**/internal-plugins/hue/*",
"**/internal-plugins/dropbox/*",
"**/internal-plugins/tuya-device/*",
"**/internal-plugins/*sumup*/*",
"**/internal-plugins/philips-tv/*",
"**/internal-plugins/pushme/*",
"**/internal-plugins/*huawei*/*",
"**/internal-plugins/deconz/*",
"**/internal-plugins/ifttt/*",
"**/internal-plugins/water-plant-alert",
"**/internal-plugins/bmw/*",
"**/internal-plugins/nuki/*",
"**/internal-plugins/legrand/*",
"**/internal-plugins/esp8266*",
"**/internal-plugins/somfy-io-gate/*",
"**/internal-plugins/rsync/*",
"**/internal-plugins/robonect*",
"**/internal-plugins/tasmota/*",
"**/internal-plugins/tuya/*"
],
"ignore-class-method": "stringify",
"check-coverage": true,
"per-file": true,
"cache": true,
"all": true,
"temp-directory": "/tmp/cov",
"lines": 0,
"statements": 0,
"functions": 0,
"branches": 0,
"reporter": [
"text-summary"
]
},
"scripts": {
"dev": "nodemon --config .nodemon.json --signal SIGINT SmartiesRunner.js",
"start": "node SmartiesRunner.js",
"start-docker": "env DOCKER=true node SmartiesRunner.js",
"pre-test": "rm -Rf /tmp/data && mkdir /tmp/data && cp -f ./data/config.json.default /tmp/data/config.json",
"test": "npm run pre-test && env TEST=1 NO_LOG=1 NODE_OPTIONS=\"--trace-warnings\" mocha --timeout 30000 --exit --reporter-options mochaFile=./tests-report.xml --reporter mocha-junit-reporter $(find tests -name '*.tests.js')",
"test-debug": "npm run pre-test && env TEST=1 NO_LOG=1 NODE_OPTIONS=\"--trace-warnings\" mocha --timeout 30000 --exit --reporter spec $(find tests -name '*.tests.js')",
"cov": "env COV=1 TEST=1 NO_LOG=1 nyc npm run test",
"lint": "eslint ./src/ --ext .js",
"lint-fix": "eslint ./src/ --ext .js --fix",
"doc": "documentation build ./src/** -f md -o ./doc/DOCUMENTATION.md && documentation build ./src/modules/pluginsmanager/publicapis/** -f md -o ./doc/PUBLIC-APIS.md",
"package-iot": "rm -Rf iot-packages && mkdir -p iot-packages && chmod +x ./scripts/package-iot.sh && ./scripts/package-iot.sh",
"pre-build": "npm run doc && rm -Rf ./build/* && mkdir -p ./build/plugins && mkdir -p ./build/doc && mkdir -p ./build/data && cp ./data/config.json.default ./build/data/config.json && cp -R ./data/ssl ./build/data/ && cp ./doc/PLUGIN.md ./build/doc/ && cp ./doc/PUBLIC-APIS.md ./build/doc/ && cp -R ./scripts ./build/ && cp -R ./res ./build/ && npm run package-iot",
"build": "npm run pre-build && node node_modules/pkg/lib-es5/bin.js -o ./build/smarties . && rm -Rf build/*.node && find ./node_modules -name '*.node'| grep lib | xargs cp -Rfn -t ./build/ && find ./node_modules -name '*.node'| grep target | xargs cp -Rfn -t ./build/ && find ./node_modules -name '*.node'| grep Release | xargs cp -Rfn -t ./build/",
"build-deb": "rm -Rf ./build/deb && rm -Rf /tmp/deb && cp -R ./scripts/deb /tmp/deb && sed -e s@{VERSION}@$npm_package_version@ -e s@{ARCH}@$(dpkg --print-architecture)@ -e s@{DISTRIB}@$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')@ ./scripts/deb/DEBIAN/control > /tmp/deb/DEBIAN/control && cp -R ./build/* /tmp/deb/var/smarties/ && chmod 755 /tmp/deb/DEBIAN/pre* && chmod 755 /tmp/deb/DEBIAN/post* && dpkg-deb --build /tmp/deb ./build/smarties-$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')-$(dpkg --print-architecture)-$npm_package_version.deb && rm -Rf /tmp/deb",
"postinstall": "rm -Rf ./res/ai/opencv && mkdir ./res/ai/opencv && cp -R ./node_modules/opencv-build/opencv/build/bin ./res/ai/opencv && cp -R ./node_modules/opencv-build/opencv/build/lib ./res/ai/opencv && cp -R ./node_modules/opencv-build/opencv/build/include ./res/ai/opencv",
"create-plugin": "node scripts/create-plugin.js",
"push-plugin": "node scripts/push-plugin.js"
},
"bin": "SmartiesRunner.js",
"pkg": {
"scripts": [
"./src/**/*.js",
"./scripts/create-plugin.js",
"./scripts/push-plugin.js"
],
"assets": [
"./node_modules/ngrok/bin/ngrok",
"./node_modules/localxpose/**/*",
"./node_modules/threads/lib/worker.node/slave.js",
"./**/*.json",
"./src/**/*.c",
"./src/**/*.cpp",
"./src/**/*.hpp",
"./src/**/*.h",
"./src/**/lib/*",
"./src/**/global_lib/*",
"./src/**/lib/**/*",
"./src/**/global_lib/**/*",
"./**/*.py",
"./src/modules/botengine/linux/asoundrc",
"./res/ai/*",
"./res/tiles/*",
"./res/pictures/*",
"./res/fonts/*",
"./iot-packages/*.zip"
]
},
"opencv4nodejs": {
"disableAutoBuild": 0,
"autoBuildOpencvVersion": "4.1.2",
"opencvBinDir": "./res/ai/opencv/bin/",
"opencvIncludeDir": "./res/ai/opencv/include/",
"opencvLibDir": "./res/ai/opencv/lib/"
},
"repository": {
"type": "git",
"url": "[email protected]:smarties/core-node.git"
},
"keywords": [
"smarties",
"core"
],
"author": "WoodySlum",
"license": "ISC",
"devDependencies": {
"chai": "^4.2",
"documentation": "^13.1",
"eslint": "^7.14",
"eslint-plugin-jsdoc": "^30.7",
"eslint-plugin-mocha": "^8.0",
"eslint-plugin-require-jsdoc": "^1.0",
"mocha": "^8.2",
"mocha-junit-reporter": "^2.0.0",
"nan": "^2.14.0",
"node-pre-gyp": "^0.14",
"nodemon": "^1.19",
"nyc": "^15.0",
"parse-domain": "2.1",
"pkg": "^4.4.9",
"remove-console-logs": "^0.1",
"resolve-options": "^1.1",
"sinon": "^7.5"
},
"dependencies": {
"ajv": "^6.12",
"annotation": "git://github.com/WoodySlum/node-annotation.git#master",
"audiohub": "git://github.com/WoodySlum/audiohub.git#master",
"bayes": "^1.0",
"bmw-connected-drive": "^1",
"body-parser": "^1.19",
"callsite": "^1.0",
"cloudtuya": "git://github.com/unparagoned/cloudtuya.git#master",
"color-util": "^2.2",
"columnify": "^1.5",
"compression": "^1.7.4",
"date-holidays": "^1.8",
"deep-equal": "git://github.com/WoodySlum/node-deep-equal.git#master",
"dialog-router-api": "git://github.com/WoodySlum/dialog-router-api.git#master",
"diskusage": "^1.1.3",
"dropbox-v2-api": "^2.4.32",
"es-get-iterator": "git://github.com/WoodySlum/es-get-iterator.git#master",
"exec-extra": "^2.8.0",
"express": "^4.17.1",
"extract-zip": "^2.0",
"file-on-write": "^1.1.1",
"fs-extra": "^9.0",
"fs-readdir-recursive": "^1.1.0",
"gm": "^1.23.1",
"homebridge": "^1.3.4",
"homebridge-alexa": "^0.5.34",
"homebridge-camera-ffmpeg": "^3.1.2",
"huejay": "^1.9.0",
"is-running": "^2.1",
"isomorphic-fetch": "^3.0",
"linky": "1.3.0",
"localtunnel": "^2.0",
"localxpose": "git://github.com/WoodySlum/node-localxpose.git#master",
"mac-scanner": "^1.1",
"md5-file": "^5.0",
"moment": "^2",
"moment-timezone": "^0.5",
"month-season": "^1.0",
"net-ping": "^1.2",
"netgear": "^4.2.0",
"ngrok": "^3.3.0",
"node-addon-api": "^3.0.2",
"node-datetime": "^2.1",
"node-google-timezone": "^0.1",
"node-gtts": "^2.0",
"node-gyp": "^7.1.2",
"node-ifttt-maker": "^1.0.2",
"node-machine-id": "^1.1.12",
"node-pushover": "^1",
"node-record-lpcm16": "^1.0",
"node-wit": "^6.0",
"node-witai-speech": "^1.0",
"nuki-bridge-api": "^1.7",
"object-sizeof": "^1.6",
"onvif": "github:agsh/onvif",
"opencv4nodejs": "^5",
"os-utils": "^0.0.14",
"prowler": "^0.0",
"qrcode": "^1.4.4",
"remi": "^2.0",
"remi-runner": "^1.1",
"request": "^2.88.2",
"rtsp-ffmpeg": "git://github.com/WoodySlum/rtsp-ffmpeg.git#master",
"rtsp-relay": "^1",
"serialport": "9.0",
"sha256": "^0.2",
"sqlite3": "git://github.com/mapbox/node-sqlite3.git#master",
"stack-trace": "^0.0",
"string-similarity": "^4.0",
"threads": "git://github.com/WoodySlum/threads.js.git#master",
"toposort": "^2.0",
"tuyapi": "github:codetheweb/tuyapi",
"underscore": "^1.12",
"unzipper": "^0.10",
"usb-detection": "^4.10",
"waveheader": "^0.0.2",
"which-country": "^1",
"xml2js": "^0.4",
"zip-dir": "^2.0"
}
}