b29a7219f2 | ||
---|---|---|
.circleci | ||
bin | ||
dist | ||
docs | ||
src | ||
test | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
LICENSE | ||
README.md | ||
karma.conf.js | ||
package-lock.json | ||
package.json | ||
web-ext-config.js |
README.md
Shield Studies Add-On Template
Important notice
We are moving to WebExtensions
This is a work in progress branch for supporting a pure WebExtension workflow in this template.
The latest template depends on version 5 of shield-studies-addon-utils (also work in progress), so until it has been published via npm, you will need to check it out manually and use npm link:
git clone https://github.com/mozilla/shield-studies-addon-utils -b develop
cd shield-studies-addon-utils
npm link
cd ../shield-studies-addon-template # or wherever you have checked out this template repository
npm link shield-studies-addon-utils
Note: After the above, the template's modules/shield-studies-addon-utils folder will be a symlink to your locally checked out shield-studies-addon-utils repository.
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.
This repository is based on WebExtensions, which are the way forward for extensions in Firefox.
Aims
The aim is to bring together tools and services we've used on other Shield Study add-ons (e.g. dataleak-pioneer-shield-study) into a template/example repository, so that new projects can come along and get a infrastructure together quickly, and be up and running with code, test suites, coverage etc quickly.
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
- Fork this repository, rename it to reflect your study. Make the repo end with
-shield-study
- Make this README reflect your study (including removing all of this
About This Repository
section, keepingSeeing the add-on in action
and below) - Build your study add-on and make the docs reflect your study
- 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
Measure:
- Button (BrowserAction) usage.
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.