generated from monoflow-ayvu/monoflow-script-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
150 lines (150 loc) · 4.06 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
{
"name": "monoflow-script-lock",
"version": "0.12.0",
"description": "Script para bloqueio e desbloqueio de equipamentos. Não bloqueia nem desbloqueia sozinho. Precisa de outro script para mudar o estado. Compatível com Pikin IO, Monoflow IO e proximamente Teltonika",
"settingsSchema": {
"display": "form",
"settings": {
"pdf": {
"id": "1ec0f8ee-6685-5d98-a847-26f67b67d6f0",
"src": "https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0"
}
},
"components": [
{
"label": "Objetivo",
"widget": "choicesjs",
"tooltip": "Objetivos para ativar/desativar quando bloquear/desbloquear o dispositivo.",
"tableView": true,
"multiple": true,
"defaultValue": [
"MONOFLOW_RELAY_1"
],
"data": {
"values": [
{
"label": "Monoflow Relay 1",
"value": "MONOFLOW_RELAY_1"
},
{
"label": "Monoflow Relay 2",
"value": "MONOFLOW_RELAY_2"
},
{
"label": "Monoflow Buzzer",
"value": "MONOFLOW_BUZ_1"
},
{
"label": "Teltonika Output 0",
"value": "TELTONIKA_OUTPUT_0"
},
{
"label": "Teltonika Output 1",
"value": "TELTONIKA_OUTPUT_1"
},
{
"label": "Teltonika Output 2",
"value": "TELTONIKA_OUTPUT_2"
},
{
"label": "Teltonika Output 3",
"value": "TELTONIKA_OUTPUT_3"
},
{
"label": "Teltonika Output 4",
"value": "TELTONIKA_OUTPUT_4"
}
]
},
"key": "target",
"type": "select",
"input": true
},
{
"type": "button",
"label": "Submit",
"key": "submit",
"disableOnInvalid": true,
"input": true,
"tableView": false
}
]
},
"license": "EULA",
"private": true,
"scripts": {
"build": "webpack --mode production",
"watch": "webpack --mode production --watch",
"build-copy": "yarn build && (cat dist/bundle.js | pbcopy) && du -sh dist/*.js",
"size": "npm run build && size-limit",
"deploy": "node .scripts/deploy.js",
"deploy-force": "node .scripts/deploy.js --force",
"minor": "npm run build && bump minor --commit --tag --push --all",
"release": "npm run build && bump major --commit --tag --push --all",
"test": "jest"
},
"browserslist": [
"ie 6"
],
"size-limit": [
{
"path": "dist/bundle.js",
"limit": "100 kb",
"gzip": false
}
],
"devDependencies": {
"@babel/core": "7.21.3",
"@babel/plugin-transform-arrow-functions": "7.20.7",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.21.0",
"@jsdevtools/version-bump-prompt": "6.1.0",
"@size-limit/preset-big-lib": "8.2.4",
"@types/commander": "2.12.2",
"@types/firebase": "3.2.1",
"@types/jest": "29.4.4",
"@types/lodash": "4.14.191",
"@types/uuid": "9.0.1",
"babel-loader": "9.1.2",
"brotli-webpack-plugin": "1.1.0",
"commander": "10.0.0",
"compression-webpack-plugin": "10.0.0",
"graphql": "16.6.0",
"graphql-request": "5.2.0",
"inquirer": "9.1.4",
"jest": "29.5.0",
"mobx-keystone": "1.4.1",
"semver": "7.3.8",
"size-limit": "8.2.4",
"ts-loader": "9.4.2",
"typed-emitter": "2.1.0",
"typescript": "4.9.5",
"webpack": "5.85.1",
"webpack-cli": "5.0.1"
},
"dependencies": {
"@fermuch/monoutils": "0.2.0",
"@fermuch/telematree": "9.23.0",
"cross-fetch": "3.1.5",
"firebase": "9.17.2",
"lodash": "4.17.21",
"mobx": "6.8.0"
},
"jest": {
"moduleFileExtensions": [
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
"node"
],
"setupFilesAfterEnv": [
"<rootDir>/private/jest/setup.ts"
]
}
}