forked from BrewBlox/node-red-contrib-brewblox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
81 lines (81 loc) · 2.97 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
{
"name": "node-red-contrib-brewblox",
"version": "0.2.1",
"description": "Brewblox integration for node-red",
"scripts": {
"add-node": "node dev/add-node.js",
"schemas": "rm -rf src/nodes/schemas/*; ts-node dev/schemas.ts",
"copy:assets": "copyfiles -u 2 \"./src/nodes/**/*.{png,svg}\" \"./dist/nodes/\"",
"copy:schemas": "copyfiles -u 2 \"./src/schemas/**/*.json\" \"./dist/schemas/\"",
"copy": "yarn copy:assets && yarn copy:schemas",
"build:html": "rollup -c rollup.config.editor.js",
"build:runtime": "tsc -p tsconfig.runtime.json",
"build:runtime:watch": "tsc -p tsconfig.runtime.watch.json --watch --preserveWatchOutput",
"build": "rm -rf dist && yarn copy && yarn build:html && yarn build:runtime",
"test": "jest --forceExit --detectOpenHandles --colors",
"test:watch": "jest --forceExit --detectOpenHandles --watchAll",
"dev": "rm -rf dist && yarn copy && concurrently --kill-others --names 'COPY,EDITOR,RUNTIME,TEST' --prefix '({name})' --prefix-colors 'yellow.bold,cyan.bold,greenBright.bold,magenta.bold' 'onchange -v \"src/**/*.png\" \"src/**/*.svg\" -- yarn copy' 'yarn build:editor:watch' 'yarn build:runtime:watch' 'sleep 10; yarn test:watch'",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --ext .js,.ts . --fix"
},
"author": "BrewPi B.V.",
"license": "GPL-3.0",
"node-red": {
"nodes": {
"block-get": "./dist/nodes/block-get/block-get.js",
"block-check": "./dist/nodes/block-check/block-check.js",
"spark-state-cache": "./dist/nodes/spark-state-cache/spark-state-cache.js",
"block-change": "./dist/nodes/block-change/block-change.js"
}
},
"dependencies": {
"ajv": "^6.12.6",
"js-quantities": "^1.7.5",
"lodash": "^4.17.20",
"parse-duration": "^0.4.4",
"typescript-string-enums": "^1.0.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^6.1.0",
"@types/express": "^4.17.7",
"@types/jest": "^26.0.9",
"@types/js-quantities": "^1.6.2",
"@types/lodash": "^4.14.165",
"@types/node": "^14.0.27",
"@types/node-red": "^1.1.0",
"@types/node-red-node-test-helper": "^0.2.0",
"@types/sinon": "^9.0.4",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
"colorette": "^1.2.1",
"concurrently": "^5.3.0",
"copyfiles": "^2.3.0",
"eslint": "^7.6.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-simple-import-sort": "^5.0.3",
"glob": "^7.1.6",
"jest": "^26.2.2",
"mustache": "^4.0.1",
"node-red": "^1.1.3",
"node-red-node-test-helper": "^0.2.5",
"onchange": "^7.0.2",
"rollup": "^2.33.1",
"ts-jest": "^26.1.4",
"ts-node": "^9.0.0",
"typescript": "^3.9.7",
"typescript-json-schema": "^0.43.0"
},
"jest": {
"testEnvironment": "node",
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testMatch": [
"**/__tests__/**/*.test.ts"
]
}
}