-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
135 lines (135 loc) · 3.08 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
{
"name": "@nrchkb/mihome",
"version": "1.0.0-dev.26",
"description": "Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more",
"repository": {
"type": "git",
"url": "git+https://github.com/NRCHKB/node-mihome.git"
},
"main": "dist/index.js",
"engines": {
"node": ">=14"
},
"keywords": [
"xiaomi",
"mi",
"miio",
"miot",
"mihome",
"mijia",
"aqara",
"yeelight",
"nrchkb"
],
"contributors": [
{
"name": "Tadeusz Wyrzykowski",
"email": "[email protected]",
"url": "https://github.com/Shaquu"
}
],
"license": "MIT",
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^14",
"@types/node-fetch": "^2.6.2",
"@types/node-red": "^1.2.1",
"@types/yargs": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.18.0",
"babel-eslint": "^10.1.0",
"jsonschema": "^1.4.1",
"mocha": "^10.0.0",
"node-fetch-retry": "^2.0.0",
"node-json-minify": "^3.0.0",
"prettier": "^2.7.1",
"ts-node": "^10.8.1",
"typescript": "^4.7.4"
},
"dependencies": {
"@nrchkb/logger": "^1.3.3",
"debug": "^4.3.4",
"node-fetch": "^2.6.7",
"yargs": "^17.5.1"
},
"bugs": {
"url": "https://github.com/NRCHKB/node-mihome/issues"
},
"homepage": "https://github.com/NRCHKB/node-mihome#readme",
"bin": {
"nrchkb-mihome": "dist/cli/index.js"
},
"scripts": {
"test": "mocha --require ts-node/register src/**/*.spec.ts",
"prettier": "prettier --write src/**/*.ts",
"prettier:scripts": "prettier --write scripts/**/*.ts",
"build": "npm run validate && npm run clean && tsc && npm run copy-files",
"dev": "ts-node src/cli/index.ts",
"clean": "npx rimraf@3 dist/",
"cache": "ts-node scripts/generate-cache.ts",
"validate": "ts-node scripts/validate.ts",
"copy-files": "npx copyfiles@2 -u 1 src/**/GITKEEP dist/"
},
"files": [
"/dist"
],
"babel": {
"presets": [
"@babel/preset-typescript"
]
},
"prettier": {
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"endOfLine": "lf"
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"@typescript-eslint/no-var-requires": [
"off"
]
}
}
}