forked from project-chip/zap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
191 lines (191 loc) · 7.47 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
{
"name": "zap",
"version": "0.99.1",
"featureLevel": 4,
"description": "Configuration tool for the Zigbee Cluster Library",
"productName": "zap",
"cordovaId": "",
"capacitorId": "",
"author": "Timotej Ecimovic <[email protected]>",
"private": true,
"homepage": "https://github.com/project-chip/zap",
"main": "src-electron/main-process/electron-main.js",
"scripts": {
"lic": "node src-script/license-check.js --production",
"lint": "eslint --ext .js,.vue src",
"electron-build-dmg": "node src-script/build-dmg.js",
"test": "node src-script/zap-versionstamp.js && jest --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",
"postinstall": "electron-builder install-app-deps",
"zap": "node src-script/zap-start.js --logToStdout --gen ./test/gen-template/zigbee/gen-templates.json",
"zaphelp": "node src-script/zap-start.js --help",
"zapc": "node src-script/zap-start.js --logToStdout --gen ./test/gen-template/chip/gen-templates.json",
"zap-dotdot": "node src-script/zap-start.js --logToStdout --zcl ./zcl-builtin/dotdot/library.xml",
"build-spa": "node src-script/build-spa.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": "electron src-electron/main-process/electron-main.js selfCheck -g ./test/gen-template/zigbee/gen-templates.json",
"version-stamp": "node src-script/zap-versionstamp.js",
"gen": "node src-script/zap-generate.js -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/three-endpoint-device.zap -o ./tmp",
"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",
"gen2": "node src-script/zap-generate.js -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/generation-test-file-1.zap -o ./tmp",
"genchip": "node src-script/zap-generate.js -z ./zcl-builtin/silabs/zcl.json -g ./test/gen-template/chip/gen-test.json -i ./test/resource/chip/chip_test.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.info.dist dist/win-unpacked/apack.info && cd dist/win-unpacked && zip -r ../zap_apack_win * && cd -",
"apack:mac": "cp apack.info.dist dist/mac/apack.info && cd dist/mac && zip -ry ../zap_apack_mac * && cd -",
"apack:linux": "cp apack.info.dist dist/linux-unpacked/apack.info && 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 -?"
},
"dependencies": {
"axios": "^0.20.0",
"body-parser": "^1.19.0",
"bufferutil": "^4.0.2",
"bytebuffer": "^5.0.1",
"canvas": "^2.6.1",
"cookie-parser": "^1.4.5",
"core-js": "^3.6.5",
"corejs": "^1.0.0",
"crc": "^3.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.2",
"express": "^4.17.1",
"express-session": "^1.17.1",
"handlebars": "^4.7.6",
"http-status-codes": "^2.1.4",
"pino": "^6.7.0",
"promised-handlebars": "^2.0.1",
"properties": "^1.2.1",
"sqlite3": "^5.0.0",
"utf-8-validate": "^5.0.3",
"ws": "^7.4.0",
"xml2js": "^0.4.23",
"yaml": "^1.10.0",
"yargs": "^16.1.0"
},
"devDependencies": {
"@babel/plugin-transform-regenerator": "^7.12.1",
"@babel/runtime-corejs2": "^7.12.5",
"@quasar/app": "^2.1.6",
"@quasar/extras": "^1.9.10",
"@quasar/quasar-app-extension-testing": "^1.0.0",
"@quasar/quasar-app-extension-testing-unit-jest": "^1.1.0-beta.7",
"@vue/eslint-config-standard": "^5.1.2",
"babel-eslint": "^10.1.0",
"devtron": "^1.4.0",
"electron": "^9.3.3",
"electron-builder": "^22.9.1",
"electron-debug": "^3.1.0",
"electron-devtools-installer": "^3.1.1",
"electron-installer-dmg": "^3.0.0",
"electron-packager": "^15.1.0",
"electron-rebuild": "^1.11.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.15.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-vue": "^6.2.2",
"file-loader": "^6.2.0",
"folder-hash": "^3.3.3",
"husky": "^4.3.0",
"jest": "^26.6.3",
"jest-sonar-reporter": "^2.0.0",
"jsdoc": "^3.6.6",
"jsdoc-to-markdown": "^6.0.1",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
"license-checker": "^25.0.1",
"lodash": "^4.17.20",
"node-abi": "^2.19.1",
"node-gyp": "^7.1.2",
"node-pre-gyp": "^0.15.0",
"prettier": "^2.1.2",
"pretty-quick": "^3.1.0",
"quasar": "^1.14.3"
},
"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/"
}
},
"prettier": {
"semi": false,
"singleQuote": true
},
"build": {
"appId": "zap.id",
"mac": {
"category": "public.app-category.developer-tools",
"target": [
"tar.gz"
]
},
"linux": {
"target": [
"snap",
"AppImage",
"deb",
"rpm",
"tar.xz"
]
},
"win": {
"target": [
"portable"
]
},
"directories": {
"buildResources": "resource-build",
"output": "dist"
},
"nodeGypRebuild": false,
"npmRebuild": true,
"files": [
"**/*",
"!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/**/*"
]
}
}