This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.json
103 lines (103 loc) · 4.11 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
{
"name": "shield-studies-addon-utils",
"description": "Utilities for Mozilla Firefox study add-ons.",
"version": "6.0.0",
"author": "Mozilla",
"bin": {
"copyStudyUtils": "bin/copyStudyUtils.js",
"importPioneerOptIn": "bin/import-pioneer-opt-in.sh"
},
"bugs": {
"url": "https://github.com/mozilla/shield-studies-addon-utils/issues"
},
"dependencies": {
"ajv": "^6.5.0",
"commander": "^2.15.1",
"fs-extra": "^6.0.1",
"jose-jwe-jws": "0.1.6",
"shield-study-schemas": "^0.8.3"
},
"devDependencies": {
"assert": "^1.4.1",
"doctoc": "^1.3.1",
"eslint": "4.19.1",
"eslint-plugin-json": "^1.4.0",
"eslint-plugin-mozilla": "^0.13.0",
"eslint-plugin-no-unsanitized": "^3.0.2",
"fixpack": "^2.3.1",
"fx-runner": "^1.0.11",
"geckodriver": "^1.19.1",
"get-firefox": "^3.0.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.2",
"pre-commit": "^1.2.2",
"prettier": "^1.11.0",
"selenium-webdriver": "^3.6.0",
"web-ext": "^4.0.0",
"webext-experiment-utils": "github:mozilla/webext-experiment-utils#v0.2.0",
"webpack": "^2.6.1",
"yamljs": "^0.3.0"
},
"engines": {
"npm": "^6.1.0"
},
"files": [
"bin/copyStudyUtils.js",
"bin/import-pioneer-opt-in.sh",
"testUtils",
"webExtensionApis/study/api.js",
"webExtensionApis/study/schema.json",
"webExtensionApis/study/src/telemetry.js",
"weeUtils/documentSchema.js",
"weeUtils/generateStubApi.js",
"weeUtils/verifyWeeSchema.js",
"weeUtils/wee-schema-schema.json"
],
"homepage": "https://github.com/mozilla/shield-studies-addon-utils#readme",
"keywords": [
"addon",
"mozilla",
"normandy",
"shield",
"shield-study"
],
"license": "MPL-2.0",
"main": "src/index.js",
"pre-commit": [
"format"
],
"repository": {
"type": "git",
"url": "git://github.com/mozilla/shield-studies-addon-utils.git"
},
"scripts": {
"build": "npm run generate && cd webExtensionApis/study && webpack",
"docformat": "doctoc --title '**Contents**' docs/*.md && prettier '**/*.md' --write",
"eslint": "eslint . --ext js --ext json",
"eslint-fix": "npm run eslint -- --fix",
"fast-build": "npm run-all build:* # no pre and post checks",
"format": "prettier '**/*.{css,js,jsm,json,md}' --trailing-comma=all --ignore-path=.eslintignore --write",
"generate": "npm-run-all -s -n generate:generateSchema:* generate:verifyWeeSchema:* generate:documentSchema:* generate:generateStubApi:*",
"generate:documentSchema:study": "cd webExtensionApis/study && documentSchema schema.json > api.md",
"generate:generateSchema:study": "cd webExtensionApis/study && yaml2json schema.yaml -p > schema.json",
"generate:generateStubApi:study": "cd webExtensionApis/study && generateStubApi ./schema.json > stubApi.js",
"generate:verifyWeeSchema:study": "cd webExtensionApis/study && verifyWeeSchema schema.json",
"import-pioneer-opt-in": "bin/import-pioneer-opt-in.sh",
"lint": "npm-run-all lint:*",
"lint:eslint": "npm run eslint",
"lint:fixpack": "fixpack # cleans up package.json",
"postbuild": "if [ -z ${SKIPLINT} ]; then npm run format; fi",
"postformat": "run-p lint:fixpack eslint-fix",
"prebuild": "if [ -z ${SKIPLINT} ]; then npm run lint; fi",
"prepare": "export SKIPLINT=1 && fixpack && npm run build",
"pretest": "npm run build && npm run test-addon:bundle-utils && npm run test-addon:build && npm run import-pioneer-opt-in",
"pretest-addon": "npm run pretest",
"test": "npm run test:func",
"test-addon": "cd test-addon && web-ext run --no-reload",
"test-addon:build": "cd test-addon && web-ext build",
"test-addon:bundle-utils": "./bin/copyStudyUtils.js test-addon/src/privileged",
"test:func": "npm-run-all -pr test:func:*",
"test:func:selenium-mocha": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=test-addon/dist/shield_utils_test_add-on-1.0.0.zip GECKODRIVER_URL=http://127.0.0.1:4444 mocha test/functional/ --bail --full-trace",
"test:func:start-geckodriver-server": "geckodriver -vv 1> test/results/logs/geckodriver.log 2> test/results/logs/geckodriver.errors.log"
}
}