Skip to content
代码片段 群组 项目
package.json 5.4 KB
Newer Older
{
  "name": "zap",
  "version": "0.99.1",
  "description": "Configuration tool for the Zigbee Cluster Library",
  "productName": "zap",
  "cordovaId": "",
  "capacitorId": "",
  "author": "Timotej Ecimovic <timotej.ecimovic@silabs.com>",
  "private": true,
  "main": "src-electron/main-process/electron-main.js",
    "lic": "node src-script/license-check.js --production",
    "lint": "eslint --ext .js,.vue src",
    "electron-build-dmg": "node src-script/build-dmg.js",
    "test": "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",
    "zcl-validate": "zcl/script/validate",
    "zcl-format": "zcl/script/format",
    "zap": "node src-script/zap-start.js --logToStdout",
    "backend": "electron src-electron/main-process/electron-main.js",
    "build-spa": "quasar build",
    "build": "quasar build",
    "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",
    "self-check": "electron src-electron/main-process/electron-main.js selfCheck",
    "gen": "node src-script/zap-generate.js -z ./test/zcl/zcl-test.properties -g ./test/gen-template/gen-templates.json -i ./test/resource/save-file-test-regen.zap -o ./tmp",
    "bin-linux": "./dist/electron/zap-linux-x64/zap --zcl ~/git/zap/test/zcl/zcl-test.properties --genTemplateJson ~/git/zap/test/gen-template/gen-templates.json",
    "pack": "quasar build && electron-builder --dir",
    "dist": "electron-builder",
    "linuxpack-ui": "./dist/linux-unpacked/zap --zclProperties test/zcl/zcl-test.properties --genTemplateJson test/gen-template/gen-templates.json",
    "linuxpack-check": "./dist/linux-unpacked/zap selfCheck --zclProperties test/zcl/zcl-test.properties --genTemplateJson test/gen-template/gen-templates.json",
    "linuxpack-gen": "./dist/linux-unpacked/zap generate --noUi --noServer --zclProperties test/zcl/zcl-test.properties --genTemplateJson test/gen-template/gen-templates.json --output tmp",
    "linuxpack-help": "./dist/linux-unpacked/zap -?"
  },
  "dependencies": {
  },
  "devDependencies": {
  },
  "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"
    },
    "directories": {
      "buildResources": "resource-build",
      "output": "dist"
    },
    "buildDependenciesFromSource": true,
    "nodeGypRebuild": false,
    "npmRebuild": true,
    "files": [
      "**/*",
      "!test/**/*",
      "!tmp/**/*",
      "!**/node_modules/*/{CHANGES.md,History.md,CONTRIBUTING.md,CHANGELOG.md,README.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}"
    ]