123 строки
5.6 KiB
JSON
123 строки
5.6 KiB
JSON
{
|
|
"name": "jestr-pioneer-shield-study",
|
|
"description": "JESTr Pioneer Shield Study",
|
|
"version": "1.2.0",
|
|
"author": "Fredrik Wollsén <fwollsen@mozilla.org>",
|
|
"bugs": {
|
|
"url": "https://github.com/mozilla/shield-studies-addon-template/issues"
|
|
},
|
|
"dependencies": {
|
|
"date-fns": "^2.0.0-alpha.25",
|
|
"idb": "^2.0.4",
|
|
"openwpm-webext-instrumentation": "github:mozilla/openwpm-webext-instrumentation#0.3.0",
|
|
"shield-studies-addon-utils": "^5.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/chai": "^4.1.7",
|
|
"@types/firefox-webext-browser": "^63.0.0",
|
|
"@types/mocha": "^5.2.5",
|
|
"babel-core": "^6.26.3",
|
|
"babel-plugin-istanbul": "^4.1.6",
|
|
"babel-preset-env": "^1.7.0",
|
|
"chai": "^4.1.2",
|
|
"concurrently": "^3.5.1",
|
|
"doctoc": "^1.3.0",
|
|
"eslint": "^4.19.1",
|
|
"eslint-config-airbnb-base": "^11.2.0",
|
|
"eslint-plugin-import": "^2.5.0",
|
|
"eslint-plugin-json": "^1.2.0",
|
|
"eslint-plugin-mozilla": "^0.4.4",
|
|
"eslint-plugin-no-unsanitized": "^2.0.1",
|
|
"eslint-plugin-typescript": "^0.12.0",
|
|
"fixpack": "^2.3.1",
|
|
"fs-extra": "^3.0.1",
|
|
"fx-runner": "^1.0.10",
|
|
"geckodriver": "^1.16.2",
|
|
"get-firefox": "^2.0.0",
|
|
"istanbul": "^1.1.0-alpha.1",
|
|
"jshint": "^2.9.5",
|
|
"karma": "^3.1.1",
|
|
"karma-babel-preprocessor": "^7.0.0",
|
|
"karma-chai": "^0.1.0",
|
|
"karma-coverage": "^1.1.2",
|
|
"karma-coveralls": "^1.2.1",
|
|
"karma-firefox-launcher": "^1.0.1",
|
|
"karma-istanbuljs-reporter": "^0.2.0",
|
|
"karma-mocha": "^1.3.0",
|
|
"karma-mocha-reporter": "^2.2.4",
|
|
"karma-webpack": "^3.0.0",
|
|
"minimist": "^1.2.0",
|
|
"mocha": "^5.2.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^1.10.2",
|
|
"selenium-webdriver": "^3.6.0",
|
|
"sinon": "4.0.0",
|
|
"sinon-chrome": "2.2.1",
|
|
"ts-loader": "^5.2.2",
|
|
"tslint": "^5.11.0",
|
|
"tslint-eslint-rules": "^5.4.0",
|
|
"typescript": "^3.1.4",
|
|
"typescript-eslint-parser": "^20.0.0",
|
|
"web-ext": "^2.7.0",
|
|
"webext-experiment-utils": "github:mozilla/webext-experiment-utils#develop",
|
|
"webpack": "^4.1.0",
|
|
"webpack-cli": "^3.1.1",
|
|
"yamljs": "^0.3.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=8.11.1"
|
|
},
|
|
"homepage": "https://github.com/mozilla/shield-studies-addon-template",
|
|
"keywords": [
|
|
"firefox",
|
|
"mozilla",
|
|
"shield-study"
|
|
],
|
|
"license": "MPL-2.0",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mozilla/shield-studies-addon-template.git"
|
|
},
|
|
"scripts": {
|
|
"build": "web-ext build && importPioneerOptIn",
|
|
"bundle:studyUtils": "copyStudyUtils src/privileged",
|
|
"docformat": "doctoc --title '**Contents**' docs/*.md && prettier '**/*.md' --write",
|
|
"eslint": "eslint . --ext jsm,js,json",
|
|
"eslint-fix": "npm run eslint -- --fix",
|
|
"format": "prettier '**/*.{css,js,ts,json,jsm,md}' --trailing-comma=all --ignore-path=.eslintignore --write",
|
|
"generate": "npm-run-all -s -n generate:generateSchema:* generate:verifyWeeSchema:* generate:documentSchema:* generate:generateStubApi:*",
|
|
"generate:documentSchema:privacyContext": "cd src/privileged/privacyContext && documentSchema schema.json > api.md",
|
|
"generate:documentSchema:testingOverrides": "cd src/privileged/testingOverrides && documentSchema schema.json > api.md",
|
|
"generate:generateSchema:privacyContext": "cd src/privileged/privacyContext && yaml2json schema.yaml -p > schema.json",
|
|
"generate:generateSchema:testingOverrides": "cd src/privileged/testingOverrides && yaml2json schema.yaml -p > schema.json",
|
|
"generate:generateStubApi:privacyContext": "cd src/privileged/privacyContext && generateStubApi ./schema.json > stubApi.js",
|
|
"generate:generateStubApi:testingOverrides": "cd src/privileged/testingOverrides && generateStubApi ./schema.json > stubApi.js",
|
|
"generate:verifyWeeSchema:privacyContext": "cd src/privileged/privacyContext && verifyWeeSchema schema.json",
|
|
"generate:verifyWeeSchema:testingOverrides": "cd src/privileged/testingOverrides && verifyWeeSchema schema.json",
|
|
"harness_test": "npm run test:func -- --retry 2 --reporter json",
|
|
"lint": "npm-run-all lint:*",
|
|
"lint:eslint": "npm run eslint",
|
|
"lint:fixpack": "fixpack",
|
|
"lint:tslint": "tslint src/**/*.ts",
|
|
"lint:web-ext-lint": "# web-ext lint",
|
|
"postformat": "npm run eslint-fix && fixpack",
|
|
"postgenerate": "npm run format",
|
|
"prebuild": "npm-run-all bundle:* && webpack",
|
|
"prestart": "npm run pretest",
|
|
"pretest": "node test/ensure_minimum_node_version.js && npm run build",
|
|
"pretest:manual": "npm run pretest",
|
|
"prewatch": "npm-run-all bundle:*",
|
|
"sign": "echo 'TBD, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1407757'",
|
|
"start": "npm run test:manual",
|
|
"test": "npm-run-all -n test:unit # test:func",
|
|
"test:func": "npm-run-all -pr test:func:*",
|
|
"test:func:selenium-mocha": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/jestr_pioneer_shield_study-$npm_package_version.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",
|
|
"test:manual": "npm-run-all -pr test:func:start-geckodriver-server test:run-firefox",
|
|
"test:run-firefox": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/jestr_pioneer_shield_study-$npm_package_version.zip GECKODRIVER_URL=http://127.0.0.1:4444 node run-firefox.js",
|
|
"test:unit": "NODE_ENV=test karma start",
|
|
"watch": "echo \"Watch is disabled since Pioneer Opt-in add-on needs to be available in the empty profile and web-ext thus is not an option\" # concurrently 'webpack --watch' 'web-ext run'"
|
|
}
|
|
}
|