forked from mozilla/glean.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
151 lines (151 loc) · 5.32 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
151
{
"name": "@mozilla/glean",
"version": "1.1.0",
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for JavaScript environments.",
"type": "module",
"sideEffects": false,
"exports": {
"./error": "./dist/core/error/error_type.js",
"./package.json": "./package.json",
"./private/metrics/*": "./dist/core/metrics/types/*.js",
"./private/ping": "./dist/core/pings/ping_type.js",
"./plugins/*": "./dist/plugins/*.js",
"./uploader": "./dist/core/upload/uploader.js",
"./testing": "./dist/core/testing/index.js",
"./node": "./dist/entry/node.js",
"./webext": "./dist/entry/webext.js",
"./web": "./dist/entry/web.js"
},
"typesVersions": {
"*": {
"webext": [
"./dist/types/entry/webext.d.ts"
],
"node": [
"./dist/types/entry/node.d.ts"
],
"web": [
"./dist/types/entry/web.d.ts"
],
"private/ping": [
"./dist/types/core/pings/ping_type.d.ts"
],
"private/metrics/*": [
"./dist/types/core/metrics/types/*"
],
"plugins/*": [
"./dist/types/plugins/*"
],
"uploader": [
"./dist/types/core/upload/uploader.d.ts"
],
"testing": [
"./dist/types/core/testing/index.d.ts"
],
"error": [
"./dist/types/core/error/error_type.d.ts"
]
}
},
"files": [
"README.md",
"package.json",
"dist/**/*"
],
"bin": {
"glean": "./dist/cli/cli.js"
},
"scripts": {
"test": "run-s test:unit test:integration",
"test:integration": "npm run test:base -- \"tests/integration/**/*.spec.ts\" --recursive",
"pretest:integration": "../bin/parser-for-schema-testing.sh",
"test:unit": "run-s test:unit:core test:unit:platform test:unit:plugins",
"test:unit:core": "npm run test:base -- \"tests/unit/core/**/*.spec.ts\" --recursive",
"test:unit:plugins": "npm run test:base -- \"tests/unit/plugins/**/*.spec.ts\" --recursive",
"test:unit:platform": "npm run test:base -- \"tests/unit/platform/**/*.spec.ts\" --recursive --timeout 0",
"pretest:unit:platform": "cd tests/unit/platform/utils/webext/sample/ && npm install && npm run build:xpi",
"test:base": "node --experimental-modules --experimental-specifier-resolution=node --loader=ts-node/esm node_modules/mocha/lib/cli/cli.js",
"lint": "run-s lint:eslint lint:circular-deps lint:glinter",
"lint:eslint": "eslint . --ext .ts,.js,.json --max-warnings=0",
"lint:circular-deps": "madge --circular src/ --extensions ts",
"lint:glinter": "npm run cli -- glinter src/metrics.yaml src/pings.yaml --allow-reserved",
"fix": "eslint . --ext .ts,.js,.json --fix",
"build": "run-s build:no-qt build:qt",
"build:no-qt": "rm -rf dist && run-s build:cli build:lib build:types",
"build:cli": "tsc -p ./tsconfig/cli.json",
"build:lib": "tsc -p ./tsconfig/lib.json",
"build:types": "tsc -p ./tsconfig/types.json",
"build:qt": "rm -rf dist/qt && webpack --config webpack.config.qt.js && ../bin/prepare-qml-module.sh",
"build:docs": "rm -rf dist/docs && typedoc --entryPointStrategy expand ./src --out dist/docs --tsconfig tsconfig/docs.json",
"build:metrics-docs": "npm run cli -- translate src/metrics.yaml src/pings.yaml -o ../docs/reference/ --format markdown --allow-reserved",
"publish:docs": "NODE_DEBUG=gh-pages gh-pages --dotfiles --message \"[skip ci] Updates\" --dist dist/docs",
"prepublishOnly": "cp ../README.md ./README.md && run-s build:cli build:lib build:types",
"postpublish": "rm ./README.md",
"cli": "node --loader=ts-node/esm src/cli.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/glean.js.git"
},
"keywords": [
"telemetry",
"glean"
],
"author": "The Glean Team <glean-team@mozilla.com>",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/mozilla/glean.js/issues"
},
"homepage": "https://github.com/mozilla/glean.js#readme",
"devDependencies": {
"@types/assert": "^1.5.4",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.1",
"@types/selenium-webdriver": "^4.0.14",
"@types/sinon": "^10.0.0",
"@types/sqlite3": "^3.1.7",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsdoc": "^39.2.9",
"eslint-plugin-json": "^3.0.0",
"eslint-plugin-mocha": "^10.0.1",
"eslint-plugin-notice": "^0.9.10",
"fake-indexeddb": "^3.1.7",
"geckodriver": "^3.0.1",
"gh-pages": "^3.2.3",
"jsdom": "19.0.0",
"jsdom-global": "3.0.2",
"jsonschema": "^1.4.0",
"madge": "^5.0.1",
"mocha": "^9.0.2",
"nock": "^13.1.3",
"node-fetch": "^3.2.2",
"npm-run-all": "^4.1.5",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"selenium-webdriver": "^4.0.0-alpha.8",
"sinon": "^13.0.0",
"sqlite3": "^5.0.2",
"terser-webpack-plugin": "^5.2.4",
"ts-loader": "^9.0.1",
"ts-node": "^10.8.0",
"typedoc": "^0.22.3",
"typescript": "^4.3.5",
"web-ext-types": "^3.2.1",
"webpack": "^5.42.1",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"fflate": "^0.7.1",
"jose": "^4.0.4",
"tslib": "^2.3.1",
"uuid": "^8.3.2"
},
"engines": {
"node": ">=12.20.0",
"npm": ">=7.0.0"
}
}