forked from particle-iot/spark-server
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpackage.json
More file actions
153 lines (153 loc) · 4.66 KB
/
package.json
File metadata and controls
153 lines (153 loc) · 4.66 KB
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
151
152
153
{
"name": "@brewskey/spark-server",
"version": "1.0.15",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/brewskey/spark-server.git"
},
"homepage": "https://github.com/brewskey/spark-server",
"bugs": "https://github.com/brewskey/spark-server/issues",
"contributors": [
{
"name": "Kenneth Lim",
"email": "kennethlimcp@gmail.com",
"url": "https://github.com/kennethlimcp"
},
{
"name": "Emily Rose",
"email": "emily@spark.io",
"url": "https://github.com/emilyrose"
},
{
"name": "John Kalberer",
"email": "john@brewskey.com",
"url": "https://github.com/jlkalberer"
}
],
"main": "./dist/exports.js",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"dist"
],
"scripts": {
"build": "npm run build:deps && tsc",
"build:deps": "npx lerna run build",
"build:all": "npm run build",
"build:clean": "rimraf ./build",
"build:watch": "tsc --watch src --watch ./packages/spark-protocol/dist --ignore data",
"lint": "eslint --fix --max-warnings 0 ./src",
"lint:check": "eslint --max-warnings 0 ./src",
"lint-staged": "lint-staged --no-hide-partially-staged",
"lint:deps": "npx lerna run lint",
"lint:check:deps": "npx lerna run lint:check",
"migrate-files-to-mongo": "ts-node ./src/scripts/migrateFilesToDatabase mongo",
"migrate-files-to-nedb": "ts-node ./src/scripts/migrateFilesToDatabase nedb",
"prettify": "prettier --write src/*/**.ts",
"prettify:deps": "npx lerna run prettify",
"start": "nodemon --watch \"src/**\" --ext \"ts,json\" --ignore \"src/**/*.test.ts\" --exec \"ts-node src/main.ts | bunyan\"",
"start:debug": "ts-node ./src/main.ts --watch src --watch ./packages/spark-protocol/dist --ignore data | bunyan",
"start:prod": "node ./dist/main.js | bunyan",
"start:warn": "ts-node ./src/main.ts --trace-warnings | bunyan",
"test": "jest",
"test:deps": "npx lerna run test",
"test:all": "npm run test:deps && npm run test",
"test:watch": "jest --watch",
"watch": "tsc --watch",
"update-firmware": "node ./node_modules/@brewskey/spark-protocol/dist/scripts/update-firmware-binaries",
"bump": "npm update spark-protocol"
},
"workspaces": [
"packages/*"
],
"lint-staged": {
"examples/**/*.js": [
"npm run prettify"
],
"src/**/*.ts": [
"npm run lint",
"npm run prettify"
]
},
"pre-commit": [
"build:all",
"lint:deps",
"prettify:deps",
"lint-staged",
"test:deps",
"test"
],
"dependencies": {
"@brewskey/spark-protocol": "^1.0.20",
"basic-auth-parser": "0.0.2",
"binary-version-reader": "^2.4.0",
"body-parser": "^1.20.2",
"bunyan": "^1.8.15",
"bunyan-middleware": "^1.0.2",
"constitute": "^1.6.2",
"cors": "^2.8.5",
"csv": "^6.3.6",
"ec-key": "^0.0.4",
"express": "^4.18.2",
"express-oauth-server": "^2.0.0",
"hogan.js": "^3.0.2",
"lodash": "^4.17.21",
"mkdirp": "^3.0.1",
"moment": "^2.30.1",
"mongodb": "^6.3.0",
"morgan": "^1.10.0",
"multer": "^1.2.1",
"nedb-core": "git+https://github.com/bnielsen1965/nedb-core.git",
"node-rsa": "^1.1.1",
"nullthrows": "^1.1.1",
"request": "^2.83.0",
"rmfr": "^2.0.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@octokit/rest": "^20.0.2",
"@types/cors": "^2.8.17",
"@types/express-bunyan-logger": "^1.3.6",
"@types/express-oauth-server": "^2.0.7",
"@types/hogan.js": "^3.0.5",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.14.202",
"@types/multer": "^1.4.11",
"@types/request": "^2.48.12",
"@types/rmfr": "^2.0.5",
"@types/sinon": "^17.0.3",
"@types/supertest": "^6.0.2",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"lerna": "^8.1.2",
"lint-staged": "^15.2.2",
"nodemon": "^3.0.3",
"pre-commit": "^1.2.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
"supertest": "^6.3.4",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"uglifyjs": "^2.4.10"
},
"optionalDependencies": {
"@nx/nx-darwin-arm64": "16.8.1",
"@nx/nx-darwin-x64": "16.8.1",
"@nx/nx-linux-x64-gnu": "16.8.1",
"@nx/nx-linux-x64-musl": "16.8.1",
"@nx/nx-win32-x64-msvc": "16.8.1"
}
}