-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
117 lines (117 loc) · 5.17 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
{
"name": "homebridge-cmd4",
"description": "Exec Plugin for Homebridge supporting all accessorys and characteristics",
"version": "8.0.1",
"license": "MIT",
"author": {
"name": "John Talbot"
},
"repository": {
"type": "git",
"url": "git://github.com/ztalbot2000/homebridge-cmd4.git"
},
"homepage": "https://github.com/ztalbot2000/homebridge-cmd4#readme",
"changelog": "https://github.com/ztalbot2000/homebridge-cmd4/blob/master/ChangeLog.md",
"bugs": {
"url": "https://github.com/ztalbot2000/homebridge-cmd4/issues",
"email": "[email protected]"
},
"dependencies": {
"chalk": "^4.1.0",
"command-exists": "^1.2.9",
"fakegato-history": ">=0.6.5",
"github-version-checker": ">=2.2.0",
"latest-version": "^5.1.0",
"moment": "*"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"chai": "^4.2.0",
"commander": "^8.2.0",
"commitlint-plugin-function-rules": "^1.1.20",
"eslint": "^7.17.0",
"generate-changelog": "^1.8.0",
"husky": "^4.3.8",
"link-checker": "^1.4.2",
"markdown-link-check": "^3.8.6",
"mocha": "^8.0.1",
"node-persist": "^0.0.11",
"sinon": "^9.2.4",
"which": "^2.0.2"
},
"directories": {
"test": "test",
"lib": "lib",
"utils": "utils",
"docs": "docs"
},
"engines": {
"homebridge": "^1.8.0 || ^2.0.0-beta.0",
"node": "^18.20.4 || ^20.15.1"
},
"keywords": [
"homebridge-plugin",
"homebridge",
"exec",
"command",
"switch",
"light",
"door",
"thermostat",
"security",
"temperature",
"virtual",
"Eve",
"Homekit",
"siri",
"home",
"Eve"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test test/cmd4Constants",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"scripts": {
"debug": "DEBUG=* homebridge --debug --plugin-path .",
"pretest": "printf ' test is only done in a development environment\n';sleep 2 ",
"testDebug": "node_modules/.bin/mocha --require async-dump.js --file test/mocha-setup --ignore test/versionChecker.js",
"test": "node_modules/.bin/mocha --file test/mocha-setup --ignore test/versionChecker.js",
"singleTest": "node_modules/.bin/mocha --bail --file test/mocha-setup --ignore test/versionChecker.js",
"allTests": "node_modules/.bin/mocha --bail --file test/mocha-setup $( cat test/allTests )",
"sanityTests": "node_modules/.bin/mocha --bail --file test/mocha-setup $( cat test/sanityTests )",
"_Note0": "Excluded from commit as may fail for probing GitHub to much",
"testMarkDown": "markdown-link-check ./README.md && markdown-link-check ./CHANGELOG.md && markdown-link-check ./docs/AdvancedTroubleShooting.md && markdown-link-check ./docs/Developers.md",
"testAutoGeneratedDocLinks": "link-checker docs/autoGenerated/CMD4_AccessoryDescriptions.html",
"commitTests": "npm run test && npm run testMarkDown",
"_Note": "Excluded only because they sometimes fail, but pass alone. ",
"testCmd4Accessory": "node_modules/.bin/mocha --file test/mocha-setup test/Cmd4Accessory.js",
"testVersionChecker": "node_modules/.bin/mocha --file test/mocha-setup test/versionChecker.js",
"lint": "eslint --ext .js *.js utils/*.js lib/*.js tools/* test/*.js",
"postinstall": "node postinstall.js",
"_Note01": "Auto change the version based on the commit history. ",
"_Note02": "Where: ",
"_Note03": "To trigger a version update ",
"_Note04": " npm run release ",
"_Note05": " ",
"_Note06": "To trigger a patch update (1.0.0 → 1.0.1) ",
"_Note07": " git commit -m 'fix: …' ",
"_Note08": "To trigger a minor update (1.0.0 → 1.1.0) ",
"_Note09": " git commit -m 'feat: …' ",
"_Note10": "To trigger a major update (1.0.0 → 2.0.0) ",
"_Note11": " A BREAKING CHANGE: in the commit body ",
"_Note12": " ",
"_Note13": "As a summary, generate-changelog will do ",
"_Note14": " * Bumps the version in package.json ",
"_Note15": " * Updates CHANGELOG.md ",
"_Note16": " ",
"release": "tools/generateChangeLog",
"_Note17": " ",
"_Note18": "Overide default behaviour with: ",
"release:patch": "tools/generateChangeLog --type patch --cleanup",
"release:minor": "tools/generateChangeLog --type minor --cleanup",
"release:major": "tools/generateChangeLog --type major --cleanup"
}
}