-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
69 lines (69 loc) · 2.86 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
{
"name": "@particle/device-os-protobuf",
"version": "2.6.1",
"description": "Particle Device OS Protobuf Definitions",
"main": "src/index.js",
"types": "src/index.d.ts",
"scripts": {
"build": "npm run build:pbjs && npm run build:docs",
"build:pbjs": "mkdir -p src/pbjs-generated && npm run build:pbjs:module && npm run build:pbjs:json && npm run build:types",
"build:pbjs:module": "pbjs control/*.proto cloud/*.proto -p nanopb -t static-module -o src/pbjs-generated/definitions.js --no-delimited --no-convert --no-verify",
"build:pbjs:ts": "pbts src/pbjs-generated/definitions.js -o src/pbjs-generated/definitions.d.ts",
"build:pbjs:json": "pbjs control/*.proto cloud/*.proto -t json -o src/pbjs-generated/definitions.json --no-delimited --no-convert --no-verify",
"build:types": "npm run clean:types && npm run build:pbjs:ts && tsc --project ./tsconfig.json",
"build:java": "cd control && protoc --java_out=../java/ cellular.proto cloud.proto common.proto config.proto extensions.proto network.proto storage.proto wifi_new.proto",
"build:docs:protobuf": "docker run --rm -v $(pwd)/docs:/out -v $(pwd)/control:/protos pseudomuto/protoc-gen-doc --doc_opt=markdown,protobuf.md cellular.proto cloud.proto common.proto config.proto extensions.proto network.proto storage.proto wifi_new.proto",
"build:docs": "documentation build src/index.js --github --format md --shallow --output docs/reference.md",
"clean:types": "rm ./src/index.d.ts || true",
"prepare": "npm run build:pbjs",
"test": "mocha './src/**/*.test.js' --color",
"test:ci": "npm run lint && npm run test && npm run coverage",
"coverage": "nyc --check-coverage --exclude src/pbjs-generated/*.js --exclude 'src/**/*.test.js' -- mocha --forbid-only 'src/**/*.test.js'",
"lint": "eslint . --ext .js --ignore-path .gitignore --ignore-pattern src/pbjs-generated/*.js",
"lint:fix": "npm run lint -- --fix",
"version": "npm run build:docs && git add docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/particle-iot/firmware-protobuf.git"
},
"keywords": [
"particle",
"firmware",
"deviceos",
"protobuf"
],
"contributors": [
"Sergey Polyakov <[email protected]>",
"Joe Goggins <[email protected]>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/particle-iot/firmware-protobuf/issues"
},
"homepage": "https://github.com/particle-iot/firmware-protobuf#readme",
"engines": {
"node": ">=16.x",
"npm": "8.x"
},
"files": [
"cloud",
"control",
"nanopb",
"src"
],
"dependencies": {
"protobufjs": "^6.11.2"
},
"devDependencies": {
"chai": "^4.3.4",
"documentation": "^13.2.5",
"eslint": "^8.6.0",
"eslint-config-particle": "^2.5.0",
"jsdoc": "^3.6.10",
"mocha": "^9.1.4",
"nyc": "^15.1.0",
"sinon": "^12.0.1",
"typescript": "^4.5.5"
}
}