forked from project-chip/zap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
256 lines (256 loc) · 12 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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"type": "commonjs",
"name": "zap",
"version": "2022.2.28",
"description": "Configuration tool for the Zigbee Cluster Library",
"productName": "zap",
"cordovaId": "",
"capacitorId": "",
"author": {
"name": "Silicon Labs",
"email": "[email protected]",
"url": "https://www.silabs.com/support"
},
"private": true,
"homepage": "https://github.com/project-chip/zap",
"main": "dist/src-electron/main-process/electron-main.js",
"scripts": {
"lic": "node src-script/license-check.js --production",
"lint": "eslint --ext .js,.vue src src-electron src-shared src-script test",
"lintfix": "eslint --fix --ext .js,.vue src src-electron src-shared src-script test",
"electron-build-dmg": "node src-script/build-dmg.js",
"test": "node src-script/zap-versionstamp.js && jest --reporters=jest-junit --reporters=default --updateSnapshot",
"test:unit": "jest --updateSnapshot",
"test:unit:verbose": "jest --updateSnapshot --verbose false",
"test:unit:coverage": "jest --coverage",
"test:unit:watch": "jest --watch",
"test:unit:watchAll": "jest --watchAll",
"test:e2e": "node src-script/zap-uitest.js open",
"test:e2e-ci": "node src-script/zap-uitest.js run",
"postinstall": "electron-builder install-app-deps && husky install && npm rebuild canvas --update-binary",
"wpzap": "npm run build-spa && npm run build-backend && npm run dist-mac && npm run apack:mac",
"zap": "node src-script/zap-start.js --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json",
"zap-dev": "npm run build-spa && quasar dev -m electron",
"zap-devserver": "node src-script/zap-start.js server --allowCors --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json --reuseZapInstance",
"server": "node src-script/zap-start.js server --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json --reuseZapInstance",
"stop": "node src-script/zap-start.js stop --reuseZapInstance",
"status": "node src-script/zap-start.js status --reuseZapInstance",
"zaphelp": "node src-script/zap-start.js --help",
"zap-dotdot": "node src-script/zap-start.js --logToStdout --zcl ./zcl-builtin/dotdot/library.xml",
"xml-validate": "zcl-builtin/shared/script/validate",
"xml-format": "zcl-builtin/shared/script/format",
"build": "npm run build-spa && npm run build-backend",
"build-spa": "node src-script/build-spa.js",
"build-backend": "npx tsc --build ./tsconfig.json",
"postbuild-backend": "npx copyfiles './src-electron/**/*.sql' ./dist/",
"regen-ts-type": "node src-script/regen-ts-type.js",
"renderer-api-regen": "node src-script/renderer-api-regen.js",
"doc": "jsdoc src-electron src-shared -r -u docs -d ./generated-html/ README.md",
"apidoc": "jsdoc2md src-shared/**/*.js src-electron/**/*.js > docs/api.md",
"format-code": "pretty-quick",
"pretty-quick": "pretty-quick",
"self-check": "node src-script/zap-start.js selfCheck -g ./test/gen-template/zigbee/gen-templates.json",
"version-stamp": "node src-script/zap-versionstamp.js",
"package-metadata": "node src-script/zap-package-metadata.js",
"refresh-zap": "node src-script/zap-convert.js -z zcl-builtin/silabs/zcl.json test/resource/three-endpoint-device.zap -g test/gen-template/zigbee/gen-templates.json -o test/resource/three-endpoint-device.zap",
"gen": "node src-script/zap-generate.js --genResultFile --stateDirectory ~/.zap/gen -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/three-endpoint-device.zap -o ./tmp",
"gen2": "node src-script/zap-generate.js --genResultFile -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/generation-test-file-1.zap -o ./tmp",
"gen3": "node src-script/zap-generate.js --genResultFile --stateDirectory ~/.zap/gen3 -z ./zcl-builtin/dotdot/library.xml -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/generation-test-file-1.zap -o ./tmp",
"genmatter": "node src-script/zap-generate.js --genResultFile --stateDirectory ~/.zap/genmatter -z ./zcl-builtin/matter/zcl.json -g ./test/gen-template/matter/gen-test.json -i ./test/resource/matter-test.zap -o ./tmp",
"zapmatter": "node src-script/zap-start.js --logToStdout --zcl ./zcl-builtin/matter/zcl.json --gen ./test/resource/meta/gen-test.json",
"genmeta": "node src-script/zap-generate.js --genResultFile --stateDirectory ~/.zap/genmeta -z ./test/resource/meta/zcl.json -g ./test/resource/meta/gen-test.json -o ./tmp -i ./test/resource/test-meta.zap",
"zapmeta": "node src-script/zap-start.js --logToStdout --zcl ./test/resource/meta/zcl.json --gen ./test/resource/meta/gen-test.json ./test/resource/test-meta.zap",
"gentest": "node src-script/zap-generate.js --genResultFile --stateDirectory ~/.zap/gentest -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/test/gen-test.json -o ./tmp",
"gendotdot": "node src-script/zap-generate.js --genResultFile -z ./zcl-builtin/dotdot/library.xml -g ./test/gen-template/dotdot/dotdot-templates.json -o ./tmp",
"genblank": "node src-script/zap-generate.js --genResultFile -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json -o ./tmp",
"convert": "node src-script/zap-convert.js -o {basename}.zap -z ./zcl-builtin/silabs/zcl.json -g test/gen-template/zigbee/gen-templates.json ./test/resource/isc/*.isc ./test/resource/*.zap",
"convert-dl": "node src-script/zap-convert.js -o {basename}.zap -z ./zcl-builtin/silabs/zcl.json -g test/gen-template/zigbee/gen-templates.json ./test/resource/isc/ha-door-lock.isc",
"post-import": "node src-script/zap-start.js convert --postImportScript test/resource/test-script.js test/resource/three-endpoint-device.zap -o test.zap",
"analyze": "node src-script/zap-start.js analyze -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json ./test/resource/three-endpoint-device.zap -o ./tmp",
"pack": "node src-script/build-spa.js && electron-builder --dir",
"dist": "electron-builder",
"dist-all": "electron-builder -mwl",
"dist-linux": "electron-builder -l",
"publish-linux": "electron-builder -l -p always",
"dist-win": "electron-builder -w",
"dist-mac": "electron-builder -m",
"apack:win": "cp apack.json dist/win-unpacked/apack.json && cd dist/win-unpacked && zip -r ../zap_apack_win * && cd -",
"apack:mac": "cp apack.json dist/mac/apack.json && cd dist/mac && zip -ry ../zap_apack_mac * && cd -",
"apack:linux": "cp apack.json dist/linux-unpacked/apack.json && cd dist/linux-unpacked && zip -r ../zap_apack_linux *",
"linuxpack-ui": "./dist/linux-unpacked/zap --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json",
"linuxpack-check": "./dist/linux-unpacked/zap selfCheck --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json",
"linuxpack-gen": "./dist/linux-unpacked/zap generate --noUi --noServer --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json --output tmp",
"linuxpack-help": "./dist/linux-unpacked/zap -?",
"helper-api-baseline": "node src-script/gen-helper-api.js && pretty-quick"
},
"dependencies": {
"@babel/runtime": "^7.14.6",
"@types/yargs": "^15.0.5",
"axios": "^0.21.2",
"body-parser": "^1.19.0",
"bufferutil": "^4.0.3",
"bytebuffer": "^5.0.1",
"canvas": "^2.8.0",
"cookie-parser": "^1.4.5",
"core-js": "^3.15.2",
"corejs": "^1.0.0",
"crc": "^3.8.0",
"express": "^4.17.1",
"express-session": "^1.17.2",
"file-loader": "^6.2.0",
"handlebars": "^4.7.7",
"http-status-codes": "^2.1.4",
"lodash": "^4.17.21",
"node-ipc": "^9.2.1",
"pino": "^6.11.3",
"promised-handlebars": "^2.0.1",
"properties": "^1.2.1",
"source-map-support": "^0.5.19",
"sqlite3": "^5.0.2",
"toposort": "^2.0.2",
"utf-8-validate": "^5.0.5",
"uuid": "^8.3.2",
"ws": "^7.5.2",
"xml2js": "^0.4.23",
"xsdlibrary": "^1.3.6",
"yaml": "^1.10.2",
"yargs": "^17.0.1"
},
"devDependencies": {
"@babel/plugin-transform-regenerator": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@babel/runtime-corejs2": "^7.14.6",
"@quasar/app": "^2.2.10",
"@quasar/extras": "^1.10.8",
"@quasar/quasar-app-extension-testing": "^1.0.3",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^4.0.0-beta.9",
"@quasar/quasar-app-extension-testing-unit-jest": "^2.2.2",
"@types/bytebuffer": "^5.0.42",
"@types/node-ipc": "^9.2.0",
"@types/sqlite3": "^3.1.7",
"@types/underscore": "^1.11.3",
"@vue/eslint-config-standard": "^6.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"copy-webpack-plugin": "^6.3.2",
"copyfiles": "^2.4.1",
"devtron": "^1.4.0",
"electron": "^12.2.2",
"electron-builder": "^22.11.7",
"electron-debug": "^3.2.0",
"electron-devtools-installer": "^3.2.0",
"electron-installer-dmg": "^3.0.0",
"electron-packager": "^15.2.0",
"electron-rebuild": "^2.3.5",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-vue": "^7.13.0",
"file-loader": "^6.2.0",
"folder-hash": "^4.0.1",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jest-environment-jsdom": "^27.4.6",
"jest-junit": "^12.2.0",
"jest-sonar-reporter": "^2.0.0",
"jsdoc": "^3.6.6",
"jsdoc-to-markdown": "^7.0.1",
"jsdom": "^16.6.0",
"jsdom-global": "^3.0.2",
"license-checker": "^25.0.1",
"node-abi": "^2.30.0",
"node-gyp": "^8.1.0",
"node-pre-gyp": "^0.17.0",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"quasar": "^1.15.21",
"ts-loader": "^8.0.17",
"typescript": "^4.2.2",
"webpack-cli": "^4.7.2",
"webpack-node-externals": "^2.5.2"
},
"engines": {
"node": ">= 8.9.0",
"npm": ">= 5.6.0",
"yarn": ">= 1.6.0"
},
"browserslist": [
"last 1 version, not dead, ie >= 11"
],
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && jsdoc src-electron src-shared -r -d ./generated-html/ && eslint --ext .js,.vue src src-electron src-shared src-script test"
}
},
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always"
},
"build": {
"appId": "zap.id",
"mac": {
"category": "public.app-category.developer-tools",
"darkModeSupport": true,
"target": [
"dmg"
]
},
"linux": {
"category": "Development",
"target": [
"snap",
"AppImage",
"deb",
"rpm",
"tar.xz"
]
},
"win": {
"target": [
"portable"
]
},
"directories": {
"buildResources": "resource-build",
"output": "dist"
},
"nodeGypRebuild": false,
"npmRebuild": true,
"files": [
"**/*",
"dist/backend",
"dist/src-electron",
"dist/src-shared",
"!test/**/*",
"!tmp/**/*",
"!**/node_modules/*/{CHANGES.md,History.md,CONTRIBUTING.md,CHANGELOG.md,README.md,README.md~,HISTORY.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/*.d.ts",
"!**/node_modules/.bin",
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
"!.editorconfig",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
"!generated-html/**/*",
"!docs/**/*",
"!.github/**/*",
"!src/**/*",
"!**/node_modules/sqlite3/build/Release/**/*",
"!quasar*",
"!test.*",
"!src-script/**/*",
"!src-electron/**/*"
]
}
}