Newer
Older
"description": "Configuration tool for the Zigbee Cluster Library",
"productName": "zap",
"cordovaId": "",
"capacitorId": "",
"author": "Timotej Ecimovic <timotej.ecimovic@silabs.com>",
"private": true,
"homepage": "https://github.com/project-chip/zap",
"main": "src-electron/main-process/electron-main.js",
"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 --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",
"self-check": "node 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",

Timotej Ecimovic
已提交
"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",
"gen3": "node src-script/zap-generate.js -z ./zcl-builtin/dotdot/library.xml -g ./test/gen-template/zigbee/gen-templates.json -i ./test/resource/generation-test-file-1.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",
"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-all": "electron-builder -mwl",

Timotej Ecimovic
已提交
"dist-linux": "electron-builder -l",

Timotej Ecimovic
已提交
"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 -?",
"helper-api-baseline": "node src-script/gen-helper-api.js && pretty-quick"
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"promised-handlebars": "^2.0.1",
"electron-installer-dmg": "^3.0.0",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-vue": "^7.4.0",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
},
"engines": {
"node": ">= 8.9.0",
"npm": ">= 5.6.0",
"yarn": ">= 1.6.0"
},
"browserslist": [
"last 1 version, not dead, ie >= 11"
"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"
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always"
},
"build": {
"appId": "zap.id",
"mac": {
"category": "public.app-category.developer-tools",
"linux": {
"target": [
"snap",
"AppImage",
"deb",
"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/**/*",
"!**/node_modules/sqlite3/build/Release/**/*",
"!quasar*",
"!test.*",
"!src-script/**/*"