Перейти к файлу
Fredrik Wollsén 75be2618c2 Updated ci cachebusters to ensure that latest nightly is used 2018-08-31 18:52:58 +03:00
.circleci Updated ci cachebusters to ensure that latest nightly is used 2018-08-31 18:52:58 +03:00
dist Using dist/ as build output directory 2018-04-25 09:36:30 -05:00
docs Added note about functional tests ADDON_ZIP env var 2018-07-30 09:54:02 +03:00
src Restored and ran npm run format 2018-07-30 10:02:01 +03:00
test Restored and ran npm run format 2018-07-30 10:02:01 +03:00
.babelrc Code coverage for unit tests 2018-06-09 00:34:07 -07:00
.eslintignore Restored and ran npm run format 2018-07-30 10:02:01 +03:00
.eslintrc.js Synced eslint rules with utils eslint 2018-06-21 11:28:41 +03:00
.gitignore Producing trace-level geckodriver logs in test/results/logs - for debugging failing functional tests in CI 2018-07-29 20:17:14 +03:00
LICENSE Added default license file to template 2018-03-09 23:23:16 +02:00
README.md Improved and clarified readme 2018-06-22 14:10:12 +03:00
karma.conf.js Producing trace-level geckodriver logs in test/results/logs - for debugging failing functional tests in CI 2018-07-29 20:17:14 +03:00
package-lock.json Geckodriver npm package is now fixed upstream 2018-08-31 18:52:32 +03:00
package.json Geckodriver npm package is now fixed upstream 2018-08-31 18:52:32 +03:00
web-ext-config.js Using nightly as default target for npm start and functional tests 2018-07-28 13:15:27 +03:00

README.md

Shield Studies Add-On Template

CircleCI badge Coverage Status

About This Repository

This repository is intended as an example repository containing templates and good practices for creating a Shield Study add-on for Firefox.

Important notice

We just started supporting a pure Web Extension Experiment workflow in this template with a new version, v5, of the Shield utilities. Even though support for these workflows are yet to pass official QA review, we do not recommend using the old template (for creating legacy boostrapped add-ons using Shield Utils v4) of this template. Creating a legacy boostrapped add-on with the outdated master branch will likely result in a broken Shield study add-on in recent versions of Firefox.

Instead, we recommend that you:

Example Shield add-ons using the experimental Shield API(s):

Chat with us: #shield on Slack about the latest progress and how to help us move faster away from legacy add-ons.

Aims

The aim is to bring together tools and services we've used on other Shield Study add-ons into a template/example repository, so that new projects can come along and get infrastructure together, and be up and running with code, test suites, coverage etc quickly.

Using this template will get you these things:

Bonus:

  • Consistent package.json (fixpack) and package-lock.json
  • Addon-linter
  • Runs nsp during lint

Documentation

It is intended that all parts of this repository have at least outline documentation. If you find any parts that are missing, please file an issue or create a PR.

Using this template

  1. Fork this repository, rename it to reflect your study. Make the repo end with -shield-study
  2. Make this README reflect your study (including removing all of this About This Repository section whilst keeping Seeing the add-on in action and below)
  3. Remove irrelevant example code
  4. Build your study add-on and make the docs reflect your study
  5. File issues/PRs against https://github.com/mozilla/shield-studies-addon-template/ when you come across things to improve in the template

Seeing the add-on in action

See TESTPLAN.md for more details on how to get the add-on installed and tested.

Data Collected / Telemetry Pings

See TELEMETRY.md for more details on what pings are sent by this add-on.

Analyzing data

Telemetry pings are loaded into S3 and re:dash. Sample query:

Improving this add-on

See DEV.md for more details on how to work with this add-on as a developer.